-
Notifications
You must be signed in to change notification settings - Fork 97
Path Tracer Tutorial
Nate Koenig edited this page Oct 26, 2021
·
6 revisions
Log files produced from a simulation run can be used to generate a top-down view of the world along with visualization of each robot's path through the world over time.
- Install the Ignition Fortress version of the SubT Simulator.
- Put the
path_tracer
executable in your PATHexport PATH=$PATH:~/subt_ws/install/lib/subt_ign
- Make sure you have your simulation run logs files downloaded and unpacked.
- Run the path generator script
cd ~/subt_ws/src/subt/subt_ign/scripts ./generate_trajectory.bash LOG_FILE_PATH OUTPUT_PATH WORLD_NAME "CAMERA_POSITION"
- LOG_FILE_PATH should be set to the directory containing the
gazebo
directory from your simulation run. Thegazebo
directory should contain thestate.tlog
andevents.yml
files. - OUTPUT_PATH should be set to the directory where the trajectory video will be saved.
- WORLD_NAME is the name of the world, such as
final_event_01
. - CAMERA_POSITION is the "x y z" position to place the camera used to record the video. Make sure to include the quotes around the position. The following is a list of positions that work well for a few worlds:
- final_prelim_01 "163 30 310"
- final_prelim_02 "140 -100 400"
- final_prelim_03 "90 0 260"
- final_event_01 "195 0 317"
- final_event_02 "91 32 300"
- final_event_03 "247 0 421"
- final_event_04 "161 140 382"
- final_event_05 "30 30 100"
- final_event_06 "79 95 367"
- final_event_07 "100 -60 410"
- final_event_08 "25 58 180"
- LOG_FILE_PATH should be set to the directory containing the