ElevatorStateMachine.hh
std::unique_ptr< ElevatorStateMachinePrivate > dataPtr
Public data pointer.
Definition: ElevatorStateMachine.hh:131
This library is part of the Ignition Robotics project.
Elevator state machine frontend. Defines the transition table and initial state of the state machine.
Definition: ElevatorStateMachine.hh:77
Event that signifies there is a new target that needs to be enqueued.
Definition: EventsImpl.hh:35
Event that signifies the cabin has reached the target floor level.
Definition: EventsImpl.hh:71
Event that signifies the door at the target floor level has been closed.
Definition: EventsImpl.hh:60
~ElevatorStateMachineDef()
Destructor.
Event that signifies the door at the target floor level has been opened.
Definition: EventsImpl.hh:54
transition_table< in< events::EnqueueNewTarget, actions::EnqueueNewTarget< true >, guards::IsInState< IdleState > >, in< events::EnqueueNewTarget, actions::EnqueueNewTarget< false >, guards::IsInState< CloseDoorState > > > internal_transitions
Transition transition table.
Definition: ElevatorStateMachine.hh:107
transition_table< tr< IdleState, events::NewTarget, OpenDoorState, actions::NewTarget, guards::CabinAtTarget >, tr< IdleState, events::NewTarget, MoveCabinState, actions::NewTarget, not_< guards::CabinAtTarget > >, tr< OpenDoorState, events::DoorOpen, WaitState, none, none >, tr< WaitState, events::Timeout, CloseDoorState, none, none >, tr< CloseDoorState, events::DoorClosed, IdleState, none, guards::NoQueuedTarget >, tr< CloseDoorState, events::DoorClosed, MoveCabinState, none, not_< guards::NoQueuedTarget > >, tr< MoveCabinState, events::CabinAtTarget, OpenDoorState, actions::CabinAtTarget, none > > transitions
Transition table.
Definition: ElevatorStateMachine.hh:128
ElevatorStateMachineDef(const std::shared_ptr< ElevatorCommonPrivate > &_system)
Constructor.
Definition: ElevatorStateMachineImpl.hh:118
State at which the elevator is moving the cabin to the target floor.
Definition: StatesImpl.hh:195
State at which the elevator is waiting with a door open.
Definition: StatesImpl.hh:165
Guard that checks whether the state machine is in a given state.
Definition: ElevatorStateMachine.hh:70
Action that cleans up the target queue when a new target is processed.
Definition: ActionsImpl.hh:60
Event that signifies a new target will be processed.
Definition: EventsImpl.hh:48
Action that cleans up the target queue when the cabin reaches the target floor level.
Definition: ActionsImpl.hh:80
State at which the elevator is closing a door.
Definition: StatesImpl.hh:143
ignition::gazebo::IGNITION_GAZEBO_VERSION_NAMESPACE::systems::ElevatorStateMachineDef::OpenDoorState
State at which the elevator is opening a door.
Definition: StatesImpl.hh:118
::afsm::state_machine< ElevatorStateMachineDef > ElevatorStateMachine
Elevator state machine backend.
Definition: ElevatorStateMachine.hh:135
Action that enqueues a new target in the target queue.
Definition: ElevatorStateMachine.hh:61
Guard that checks whether the cabin is at the target floor level.
Definition: GuardsImpl.hh:53
State at which the elevator is idling.
Definition: StatesImpl.hh:40
Guard that checks whether the target queue is empty.
Definition: GuardsImpl.hh:66
STL class.
Event that signifies the door at the target floor level has remained open for the required amount of ...
Definition: EventsImpl.hh:66