$\color{white}\colorbox{FE9227}{Making substantial progress and expanding understanding!}$

▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░ 25%


The first step in creating the organizational structure of a robot simulation is to create a robot_description package. This package will contain all the files required to describe and visualize the robot. These will include the xacro, meshes, config, and rviz files.

GitHub - indro-robotics/tracer_ros2 at simulation

Table of Contents

discription package2.mp4

<aside> 💡 To keep your workspace clean, create a non-package folder one level above the description folder with just the name of your robot. This will allow you to contain the description, gazebo, and control packages organized in one sub-folder.

</aside>

cd ~/humble_ws/src/
mkdir tracer

Untitled

Create package

Create the robot_description package. In this case, we will name our package tracer_description to match the name of the robot we are going to simulate.

cd ~/humble_ws/src/tracer/
ros2 pkg create --build-type ament_python tracer_description

Untitled

The package was created without any dependencies. We will add these dependencies later as we add functionality to the robot.

Add subfolders to the package

We are going to set up the folder hierarchy in the package before beginning any code. This will allow us to add the subfolders to the data_files section and save file inclusion headaches later.

cd ~/humble_ws/src/tracer/tracer_description
mkdir models launch
cd models
mkdir config meshes xacro

Untitled

Add to setup.py

Add the data_files custom definition to setup.py and add the newly created folders.