Link Search Menu Expand Document

Changing a few default settings

Sometimes you want to change the simulation to be more appropriate with your ideal scenario, for example the world, or the sensor used.

Change the world

The default world in the simulation is the LASER laboratory.

Captura de tela de 2022-02-14 10-17-51

But as long as you have the .world file in the “world” folder, you can use that file as the world. To do so use world:=(name of the world file) at the end of the roslaunch command. For example:

roslaunch robot_description spawn.launch world:=warehouse

Change the laser sensor

There are 2 options for a laser sensor in the simulation. The regular lidar sensor, and the rplidar, the last one being the default one. To change that, go to the spawn.launch file and change the values of the sensors arguments from true to false and vice versa.

Captura de tela de 2022-02-14 10-48-12