NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
op_state_ready.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The Astrobee platform is licensed under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with the
8  * License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */
18 
19 #ifndef EXECUTIVE_OP_STATE_READY_H_
20 #define EXECUTIVE_OP_STATE_READY_H_
21 
22 #include "executive/op_state.h"
24 #include <string>
25 
26 namespace executive {
27 class OpStateReady : public OpState {
28  public:
30 
31  OpState* HandleCmd(ff_msgs::CommandStampedPtr const& cmd);
32 
33  // Guest Science Ack
34  OpState* HandleGuestScienceAck(ff_msgs::AckStampedConstPtr const& ack);
35 
36  protected:
37  explicit OpStateReady(std::string const& name, unsigned char id) :
38  OpState(name, id) {}
39 
40  private:
41  // allow creation only by repo
42  friend class OpStateRepo;
43 };
44 } // namespace executive
45 #endif // EXECUTIVE_OP_STATE_READY_H_
executive::OpStateReady::HandleGuestScienceAck
OpState * HandleGuestScienceAck(ff_msgs::AckStampedConstPtr const &ack)
Definition: op_state_ready.cc:197
executive::OpStateReady::~OpStateReady
~OpStateReady()
Definition: op_state_ready.h:29
executive::OpStateRepo
Definition: op_state_repo.h:43
executive::OpStateReady::OpStateReady
OpStateReady(std::string const &name, unsigned char id)
Definition: op_state_ready.h:37
executive::OpStateReady
Definition: op_state_ready.h:27
op_state.h
executive::OpState::id
unsigned char const & id() const
Definition: op_state.h:82
executive::OpState::name
std::string const & name() const
Definition: op_state.h:81
executive
Definition: executive.h:87
executive::OpStateReady::HandleCmd
OpState * HandleCmd(ff_msgs::CommandStampedPtr const &cmd)
Definition: op_state_ready.cc:24
op_state_repo.h
executive::OpState
Definition: op_state.h:45