Useful Commands
Create Workspace
A ROS2 project workspace has a standard structure. First, we create the root directory of the workspace
Then, we go to the workspace directory and create a build directory
Create C++ Package
Go to the workspace root directory and use the pkg create
command. For instance
Create Python Package
Go to the workspace root directory and use the pkg create
command. For instance
Build Workspace
To build the workspace, we use the following command:
The first command checks missing dependencies and the second command build the whole workspace. To build a specific package, use the following command:
How to specify the namespace and node name in the command line?
How to check URDF file
To validate a URDF, you can use the following command:
How to turn on the debug info when launch the stack?
Use the -d
option. For example:
Last updated