Skip to content

Latest commit

 

History

History
68 lines (44 loc) · 1.85 KB

README.md

File metadata and controls

68 lines (44 loc) · 1.85 KB

ROS2 launch checker

Tests

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_executables 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.

Installation

pip3 install .

Execution

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

Testing

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.

Acknowledgements

rosin_logo

Supported by ROSIN - ROS-Industrial Quality-Assured Robot Software Components. More information: rosin-project.eu

eu_flag

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement no. 732287.