This repository contains the files of the worlds created for the presentation of the work. The obstacles were positioned in different configurations so that the solution proposed by the group could have been tested and validated. When launching turtlebot3_world.launch.py, one of the worlds will be randomly chosen as well as the position of the robot. The python-sdformat library is used to read the sdl file. Thus, the position of the cylinders is collected and a check is made to ensure that the robot never starts in a place already occupied by an obstacle.
git clone https://github.com/autonomous-robots/worlds_gazebo.git
cd worlds_gazebo
cp worlds/g2w1.world ~/../../opt/ros/humble/share/turtlebot3_gazebo/worlds/
cp worlds/g2w2.world ~/../../opt/ros/humble/share/turtlebot3_gazebo/worlds/
cp worlds/g2w3.world ~/../../opt/ros/humble/share/turtlebot3_gazebo/worlds/
cp worlds/g2w4.world ~/../../opt/ros/humble/share/turtlebot3_gazebo/worlds/
cp -r models/g2w1 ~/../../opt/ros/humble/share/turtlebot3_gazebo/models/
cp -r models/g2w2 ~/../../opt/ros/humble/share/turtlebot3_gazebo/models/
cp -r models/g2w3 ~/../../opt/ros/humble/share/turtlebot3_gazebo/models/
cp -r models/g2w4 ~/../../opt/ros/humble/share/turtlebot3_gazebo/models/
cp launch/turtlebot3_world.launch.py ~/../../opt/ros/humble/share/turtlebot3_gazebo/launch/
pip install -r requirements.sdf
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py