|
NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
Go to the documentation of this file.
19 #ifndef EXECUTIVE_OP_STATE_H_
20 #define EXECUTIVE_OP_STATE_H_
26 #include <ff_msgs/ArmAction.h>
27 #include <ff_msgs/CommandArg.h>
28 #include <ff_msgs/CommandConstants.h>
29 #include <ff_msgs/ControlState.h>
30 #include <ff_msgs/DockAction.h>
31 #include <ff_msgs/MotionAction.h>
36 using ff_msgs::CommandConstants;
56 std::string
const& result_response,
57 std::string
const& cmd_id,
63 ff_msgs::AckStampedConstPtr
const& ack);
65 virtual void AckCmd(std::string
const& cmd_id,
66 uint8_t completed_status = ff_msgs::AckCompletedStatus::OK,
67 std::string
const& message =
"",
68 uint8_t status = ff_msgs::AckStatus::COMPLETED);
73 std::string
const& action_result =
"");
77 virtual bool PausePlan(ff_msgs::CommandStampedPtr
const& cmd);
82 unsigned char const&
id()
const {
return id_;}
87 void SetPlanStatus(
bool successful, std::string err_msg =
"");
90 unsigned char const id_;
100 #endif // EXECUTIVE_OP_STATE_H_
virtual bool PausePlan(ff_msgs::CommandStampedPtr const &cmd)
Definition: op_state.cc:193
virtual OpState * HandleResult(ff_util::FreeFlyerActionState::Enum const &state, std::string const &result_response, std::string const &cmd_id, Action const &action)
Definition: op_state.cc:85
std::string GetActionString(Action const &action)
Definition: op_state.cc:152
std::unique_ptr< OpState > OpStatePtr
Definition: op_state.h:98
Executive * exec_
Definition: op_state.h:91
Action
Definition: executive_action_client.h:29
Definition: op_state_repo.h:43
const std::string name_
Definition: op_state.h:89
virtual void AckCmd(std::string const &cmd_id, uint8_t completed_status=ff_msgs::AckCompletedStatus::OK, std::string const &message="", uint8_t status=ff_msgs::AckStatus::COMPLETED)
Definition: op_state.cc:104
OpState(std::string const &name, unsigned char id)
Definition: op_state.cc:24
virtual OpState * HandleCmd(ff_msgs::CommandStampedPtr const &cmd)
Definition: op_state.cc:43
std::string GenerateActionFailedMsg(ff_util::FreeFlyerActionState::Enum const &state, Action const &action, std::string const &action_result="")
Definition: op_state.cc:114
Enum
Definition: ff_action.h:41
void SetExec(Executive *const exec)
Definition: op_state.cc:37
OpState * TransitionToState(unsigned char id)
Definition: op_state.cc:200
void SetPlanStatus(bool successful, std::string err_msg="")
Definition: op_state.cc:217
virtual ~OpState()
Definition: op_state.h:47
Definition: executive.h:100
uint8_t state
Definition: signal_lights.h:90
unsigned char const & id() const
Definition: op_state.h:82
virtual OpState * HandleGuestScienceAck(ff_msgs::AckStampedConstPtr const &ack)
Definition: op_state.cc:98
std::string const & name() const
Definition: op_state.h:81
Definition: executive.h:87
virtual OpState * StartupState(std::string const &cmd_id="")
Definition: op_state.cc:30
virtual OpState * HandleWaitCallback()
Definition: op_state.cc:93
unsigned const char id_
Definition: op_state.h:90
Definition: op_state.h:45