|
Nav2 Navigation Stack - rolling
main
ROS 2 Navigation Stack
|
The validate_bt_xml_nodes.py script validates Behavior Tree node definitions by comparing C++ code implementations against their XML definitions in nav2_tree_nodes.xml.
The script ensures:
Install the required dependencies using a virtual environment in the navigation2 directory:
[!NOTE] The pip install might display warnings about missing ROS2 dependencies like:
generate-parameter-library-py requires setuptools, typeguard...These are system package dependencies and can be ignored since they're not required by the validation.
From the navigation2 root directory:
The script can be configured using config.yml file. It specifies:
nav2_bt_nodes_file_path: path to the XML file containing BT node definitionslocal_repositories: directories containing C++ code files for BT nodes to validategithub_repositories (optional): external GitHub repositories that contain BT nodes to clone and validateTo run the test suite for this validation tool, see test/README.md for detailed instructions.