![]() |
NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
#include <op_state.h>

Public Member Functions | |
| virtual | ~OpState () |
| virtual OpState * | StartupState (std::string const &cmd_id="") |
| virtual OpState * | HandleCmd (ff_msgs::CommandStampedPtr const &cmd) |
| OpState * | HandleCmd (ff_msgs::CommandStampedPtr const &cmd, bool &completed, bool &successful) |
| virtual OpState * | HandleResult (ff_util::FreeFlyerActionState::Enum const &state, std::string const &result_response, std::string const &cmd_id, Action const &action) |
| virtual OpState * | HandleWaitCallback () |
| virtual OpState * | HandleGuestScienceAck (ff_msgs::AckStampedConstPtr const &ack) |
| 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) |
| std::string | GenerateActionFailedMsg (ff_util::FreeFlyerActionState::Enum const &state, Action const &action, std::string const &action_result="") |
| std::string | GetActionString (Action const &action) |
| virtual bool | PausePlan (ff_msgs::CommandStampedPtr const &cmd) |
| OpState * | TransitionToState (unsigned char id) |
| std::string const & | name () const |
| unsigned char const & | id () const |
Protected Member Functions | |
| OpState (std::string const &name, unsigned char id) | |
| void | SetExec (Executive *const exec) |
| void | SetPlanStatus (bool successful, std::string err_msg="") |
Protected Attributes | |
| const std::string | name_ |
| unsigned const char | id_ |
| Executive * | exec_ |
Friends | |
| class | OpStateRepo |
OpState class must be derived from for each operating state and added to the OpStateRepo, allowing explicit state specific behavior
|
inlinevirtual |
|
protected |
|
virtual |
Reimplemented in executive::OpStatePlanExec.
| std::string executive::OpState::GenerateActionFailedMsg | ( | ff_util::FreeFlyerActionState::Enum const & | state, |
| Action const & | action, | ||
| std::string const & | action_result = "" |
||
| ) |
| std::string executive::OpState::GetActionString | ( | Action const & | action | ) |
|
virtual |
| OpState * executive::OpState::HandleCmd | ( | ff_msgs::CommandStampedPtr const & | cmd, |
| bool & | completed, | ||
| bool & | successful | ||
| ) |
|
virtual |
Reimplemented in executive::OpStatePlanExec, executive::OpStateReady, and executive::OpStateFault.
|
virtual |
Reimplemented in executive::OpStateFault, executive::OpStatePlanExec, and executive::OpStateTeleop.
|
virtual |
Reimplemented in executive::OpStatePlanExec.
|
inline |
|
inline |
|
virtual |
Reimplemented in executive::OpStatePlanExec.
|
protected |
|
protected |
|
virtual |
Reimplemented in executive::OpStatePlanExec.
| OpState * executive::OpState::TransitionToState | ( | unsigned char | id | ) |
|
friend |
|
protected |
|
protected |
|
protected |