State used to move the elevator to a floor. More...
#include <ElevatorPluginPrivate.hh>

Public Member Functions | |
| MoveState (int _floor, LiftController *_ctrl) | |
| Constructor. More... | |
| virtual void | Start () |
| Used to start a state. More... | |
| virtual bool | Update () |
| Used to update a state. More... | |
Public Member Functions inherited from gazebo::ElevatorPluginPrivate::State | |
| State () | |
| Constructor. More... | |
| virtual | ~State ()=default |
| Destructor. More... | |
Public Attributes | |
| LiftController * | ctrl |
| Lift controller. More... | |
| int | floor |
| Target floor number. More... | |
Public Attributes inherited from gazebo::ElevatorPluginPrivate::State | |
| std::string | name |
| State name. More... | |
Additional Inherited Members | |
Protected Attributes inherited from gazebo::ElevatorPluginPrivate::State | |
| bool | started |
| True when started. More... | |
State used to move the elevator to a floor.
| gazebo::ElevatorPluginPrivate::MoveState::MoveState | ( | int | _floor, |
| LiftController * | _ctrl | ||
| ) |
Constructor.
| [in] | _floor | Floor index to move to. |
| [in] | _ctrl | Lift controller pointer. |
|
virtual |
Used to start a state.
Reimplemented from gazebo::ElevatorPluginPrivate::State.
|
virtual |
Used to update a state.
Reimplemented from gazebo::ElevatorPluginPrivate::State.
| LiftController* gazebo::ElevatorPluginPrivate::MoveState::ctrl |
Lift controller.
| int gazebo::ElevatorPluginPrivate::MoveState::floor |
Target floor number.