tier4_simulated_clock_rviz_plugin#
Purpose#
This plugin allows publishing and controlling the simulated ROS time.
Output#
Name | Type | Description |
---|---|---|
/clock |
rosgraph_msgs::msg::Clock |
the current simulated time |
How to use the plugin#
-
Launch planning simulator with
use_sim_time:=true
.ros2 launch autoware_launch planning_simulator.launch.xml map_path:=$HOME/autoware_map/sample-map-planning vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit use_sim_time:=true
Warning If you launch the planning simulator without adding the
tier4_simulated_clock_rviz_plugin
, your simulation will not be running. You'll not even be able to place the initial and the goal poses. -
Start rviz and select panels/Add new panel.
-
Select tier4_clock_rviz_plugin/SimulatedClock and press OK.
-
Use the added panel to control how the simulated clock is published.
- Pause button: pause/resume the clock.
- Speed: speed of the clock relative to the system clock.
- Rate: publishing rate of the clock.
- Step button: advance the clock by the specified time step.
- Time step: value used to advance the clock when pressing the step button d).
- Time unit: time unit associated with the value from e).
Warning If you set the time step too large, your simulation will go haywire.