ros2nodl¶
ros2nodl is a ros2cli extension that adds a ros2 nodl command group for working with NoDL documents from the
command line.
For what a NoDL document declares, see NoDL Concepts.
For the Python API that backs this command, see the nodl_schema package.
Commands¶
Running ros2 nodl with no verb prints help. The available verbs:
ros2 nodl validate [files...]¶
Validate one or more NoDL documents against the NoDL schema. With no arguments, it reads a document from standard input.
# Validate files
ros2 nodl validate my_node.nodl.yaml other_node.nodl.yaml
# Validate from stdin
cat my_node.nodl.yaml | ros2 nodl validate
The command exits non-zero and prints the validation error if a document does not conform to the schema, so it composes cleanly into shell pipelines and CI checks.
Relationship to other packages¶
ros2 nodl validate is a thin CLI wrapper over nodl_schema’s validator.
For programmatic validation or for building tools on top of the typed data model, depend on nodl_schema directly.
For registering a node’s NoDL document with the ament index from a CMake package, see the ament_nodl package.