hbp_nrp_cleserver.server.PlaybackServerLifecycle module¶
This module contains the playback server implementation of the simulation playback lifecycle
-
class
PlaybackServerLifecycle
(sim_id, server, except_hook=None)[source]¶ Bases:
hbp_nrp_commons.simulation_lifecycle.SimulationLifecycle
Implements the playback server lifecycle of a simulation playback lifecycle
-
property
done_event
¶ Gets the event that represents when the simulation is done
- Returns
An event that will be set as soon as the lifecycle is done
-
fail
(state_change)[source]¶ Reacts on failures in the simulation playback
- Parameters
state_change – The state change according to the failure
-
initialize
(state_change)[source]¶ Implements parent interface, does nothing
- Parameters
state_change – The state change that caused the playback to initialize
-
pause
(state_change)[source]¶ Pauses the simulation playback
- Parameters
state_change – The state change that caused the pause request
-
reset
(state_change)[source]¶ Implements parent interface, handles by PlaybackServer ROS service call
- Parameters
state_change –
- Returns
-
shutdown
(shutdown_event)[source]¶ Shuts down this instance of the simulation lifecycle
- Parameters
shutdown_event – The event that caused the shutdown
-
property