ROS2 packages are made of different artifacts, and there are some name matchings among those files that can fail. This script aims to verify them.
Given a ROS2 package, it checks that all the node_executable
s on any launch
files are correctly defined either in a CMakeLists.txt
file or in the
setup.py
file. If there is any mismatch, name suggestions are provided.
WARNING: this script executes files called setup.py
. Use under your
own risk.
pip3 install .
Requires a path to the root of a ROS2 package (i.e. where the package.xml
file is placed). Accepts an optional argument --verbose
or -v
to display
more details.
This script runs with python 3.
Simple version:
python3 -m ros2_launch_checker my_great_ros2_package/
Verbose version:
python3 -m ros2_launch_checker my_great_ros2_package/ --verbose
Some tests are included. In the root folder, run the following:
python3 -m unittest discover -b
The -b
option supresses the standard input logging information.
Supported by ROSIN - ROS-Industrial Quality-Assured Robot Software Components. More information: rosin-project.eu
This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement no. 732287.