ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Run different map/world in a 'for loop' to evaluate navigation algorithm

asked 2022-08-08 08:48:09 -0500

ArmanAsq gravatar image

Hi all,

I want to analyze my path planner algorithm, so I must to load hundreds map in Rviz and Gazebo in a sequence and record the generated control commands. In each map, this code will record control commands for evaluating the path planning algorithm.

Is it possible to load different map/world files in a "for loop" (sequence of worlds)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-08-09 13:14:35 -0500

shonigmann gravatar image

i'm not familiar with a way to change world files using ROS tools...

A few workarounds -

  • If your "worlds" are composed of a small number of models it could be easy enough to use gazebo_ros's tools to spawn and delete models, and to reposition your robot as needed.
  • alternately, if you don't mind killing and restarting all your nodes, this should easy enough to manage with a bash or python script
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-08-08 08:48:09 -0500

Seen: 35 times

Last updated: Aug 09 '22