hbp_nrp_cleserver.server.SimulationServer module¶
Playback ROS wrapper overriding the ROSCLEServer implementation for playback
-
class
SimulationServer(sim_id, timeout, timeout_type, gzserver, notificator)[source]¶ Bases:
objectPlayback ROS server overriding the ROSCLEServer implementation for playback
-
STATUS_UPDATE_INTERVAL= 1.0¶
-
property
lifecycle¶ Gets the lifecycle instance representing the current ROSCLEServer
-
prepare_simulation(except_hook=None)[source]¶ The CLE will be initialized within this method and ROS services for starting, pausing, stopping and resetting are setup here.
- Parameters
except_hook – A handler method for critical exceptions
-
reset_simulation(request)[source]¶ Reset the playback
- Parameters
request – the ROS service request message (cle_ros_msgs.srv.ResetSimulation).
-
property
simulation_id¶ Gets the simulation id that is serviced
-
property
simulation_time¶ Gets the simulation time
-