ROS2 Tutorial: Unterschied zwischen den Versionen
Zeile 13: | Zeile 13: | ||
> colcon build < | > colcon build < | ||
This command, which must be executed in the ros2 ws directory for it to function, will compile your whole src directory. | |||
==== ROS2 Nodes ==== |
Version vom 15. September 2022, 12:32 Uhr
ROS Tutorial
Introduction
The Robot Operating System (ROS) is a set of software libraries and tools for building robot applications. ROS2 has different packages for setting up programmes. Usually in ROS you can create packages in CPP and Python. Here we are focused in creating in packages in Python. A python package contain different files like package.xml - which contains the meta-information, setup.py - which contains the instruction set for the package to how to compile it, </package_name – which contains all the python scripts and this directory have always the same name as the package.
For creating a ROS package, it is necessary to operate in a specific workspace called ROS2 workspace. The directory on your hard drive where your ROS2 packages are stored and accessible by ROS2 is known as the ROS2 workspace. The ROS2 workspace directory is typically referred to as ros2_ws.
For create a package, you need to work specifically in ROS2^workspace. The directory on your hard drive where your ROS2 packages are stored and accessible by ROS2 is known as the ROS2 workspace. The ROS2 workspace directory is typically referred to as ros2_ws
When you need to compile a package for it make to work. The command which can be used by ROS2 to compile is the following:
> colcon build <
This command, which must be executed in the ros2 ws directory for it to function, will compile your whole src directory.