Gazebo Gazebo

API Reference

6.16.0
ElevatorStateMachineDef::MoveCabinState Struct Reference

State at which the elevator is moving the cabin to the target floor. More...

#include <StatesImpl.hh>

Public Types

using deferred_events = type_tuple< events::EnqueueNewTarget >
 This state defers EnqueueNewTargetEvent events. More...
 

Public Member Functions

 MoveCabinState (double _posEps=15e-2, double _velEps=1e-2)
 Constructor. More...
 
template<typename Event , typename FSM >
void on_enter (const Event &, FSM &_fsm)
 Sends the command that moves the cabin joint to the target floor and configures the monitor that checks the joint state. More...
 

Detailed Description

State at which the elevator is moving the cabin to the target floor.

Member Typedef Documentation

◆ deferred_events

This state defers EnqueueNewTargetEvent events.

Constructor & Destructor Documentation

◆ MoveCabinState()

MoveCabinState ( double  _posEps = 15e-2,
double  _velEps = 1e-2 
)
inline

Constructor.

Parameters
[in]_posEpsPosition tolerance when checking if the cabin has reached the target floor level
[in]_velEpsVelocity tolerance when checking if the cabin has reached the target floor level

Member Function Documentation

◆ on_enter()

void on_enter ( const Event &  ,
FSM &  _fsm 
)
inline

Sends the command that moves the cabin joint to the target floor and configures the monitor that checks the joint state.

Parameters
[in]_fsmState machine to which the state belongs

References std::bind(), std::endl(), and ignmsg.


The documentation for this struct was generated from the following file: