NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
executive::OpStatePlanExec Class Reference

#include <op_state_plan_exec.h>

Inheritance diagram for executive::OpStatePlanExec:
Inheritance graph

Public Member Functions

 ~OpStatePlanExec ()
 
OpStateStartupState (std::string const &cmd_id)
 
OpStateHandleCmd (ff_msgs::CommandStampedPtr const &cmd)
 
OpStateHandleResult (ff_util::FreeFlyerActionState::Enum const &state, std::string const &result_response, std::string const &cmd_id, Action const &action)
 
OpStateHandleWaitCallback ()
 
OpStateHandleGuestScienceAck (ff_msgs::AckStampedConstPtr const &ack)
 
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)
 
void AckPlanCmdFailed (uint8_t completed_status, std::string const &message)
 
bool PausePlan (ff_msgs::CommandStampedPtr const &cmd)
 
- Public Member Functions inherited from executive::OpState
virtual ~OpState ()
 
OpStateHandleCmd (ff_msgs::CommandStampedPtr const &cmd, bool &completed, bool &successful)
 
std::string GenerateActionFailedMsg (ff_util::FreeFlyerActionState::Enum const &state, Action const &action, std::string const &action_result="")
 
std::string GetActionString (Action const &action)
 
OpStateTransitionToState (unsigned char id)
 
std::string const & name () const
 
unsigned char const & id () const
 

Protected Member Functions

 OpStatePlanExec (std::string const &name, unsigned char id)
 
- Protected Member Functions inherited from executive::OpState
 OpState (std::string const &name, unsigned char id)
 
void SetExec (Executive *const exec)
 
void SetPlanStatus (bool successful, std::string err_msg="")
 

Friends

class OpStateRepo
 

Additional Inherited Members

- Protected Attributes inherited from executive::OpState
const std::string name_
 
unsigned const char id_
 
Executiveexec_
 

Constructor & Destructor Documentation

◆ ~OpStatePlanExec()

executive::OpStatePlanExec::~OpStatePlanExec ( )
inline

◆ OpStatePlanExec()

executive::OpStatePlanExec::OpStatePlanExec ( std::string const &  name,
unsigned char  id 
)
inlineexplicitprotected

Member Function Documentation

◆ AckCmd()

void executive::OpStatePlanExec::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 
)
virtual

Reimplemented from executive::OpState.

◆ AckPlanCmdFailed()

void executive::OpStatePlanExec::AckPlanCmdFailed ( uint8_t  completed_status,
std::string const &  message 
)

◆ HandleCmd()

OpState * executive::OpStatePlanExec::HandleCmd ( ff_msgs::CommandStampedPtr const &  cmd)
virtual

Reimplemented from executive::OpState.

◆ HandleGuestScienceAck()

OpState * executive::OpStatePlanExec::HandleGuestScienceAck ( ff_msgs::AckStampedConstPtr const &  ack)
virtual

Reimplemented from executive::OpState.

◆ HandleResult()

OpState * executive::OpStatePlanExec::HandleResult ( ff_util::FreeFlyerActionState::Enum const &  state,
std::string const &  result_response,
std::string const &  cmd_id,
Action const &  action 
)
virtual

Reimplemented from executive::OpState.

◆ HandleWaitCallback()

OpState * executive::OpStatePlanExec::HandleWaitCallback ( )
virtual

Reimplemented from executive::OpState.

◆ PausePlan()

bool executive::OpStatePlanExec::PausePlan ( ff_msgs::CommandStampedPtr const &  cmd)
virtual

Reimplemented from executive::OpState.

◆ StartupState()

OpState * executive::OpStatePlanExec::StartupState ( std::string const &  cmd_id)
virtual

Reimplemented from executive::OpState.

Friends And Related Function Documentation

◆ OpStateRepo

friend class OpStateRepo
friend

The documentation for this class was generated from the following files: