ubuntu-robotics / nodl Goto Github PK
View Code? Open in Web Editor NEWCLI and parsing utilities for the ROS 2 NoDL
License: Apache License 2.0
CLI and parsing utilities for the ROS 2 NoDL
License: Apache License 2.0
So, I have a line like this in my example:
nodl_export_node_description_file(nodl/fake_imu.nodl.xml)
This installs the file and an ament_index
marker file to:
$ tree install/
install/
├── ros2launch_security_examples
│ └── share
│ ├── ament_index
│ │ └── resource_index
│ │ ├── nodl_desc
│ │ │ └── ros2launch_security_examples
...
│ └── ros2launch_security_examples
│ ├── nodl
│ │ ├── fake_imu.nodl.xml
...
The ament_index
marker file contains:
$ cat install/ros2launch_security_examples/share/ament_index/resource_index/nodl_desc/ros2launch_security_examples
share/ros2launch_security_examples/nodl/fake_imu.nodl.xml
share/ros2launch_security_examples/nodl/imu_sink.nodl.xml
But if I run ros2 nodl
I get:
$ ros2 nodl show ros2launch_security_examples
ros2launch_security_examples has no NoDL files in its ament index.
The expected behavior is that it finds these files, but it does not.
If I move the .nodl.xml
files out of the subdirectory, then everything works:
$ ros2 nodl show ros2launch_security_examples
{'name': 'imu_sink', 'executable': 'imu_sink', 'actions': {}, 'parameters': {}, 'services': {}, 'topics': {'imu': {'name': 'imu', 'type': 'sensor_msgs/msg/Imu', 'role': <PubSubRole.SUBSCRIPTION: 'subscription'>}}}
{'name': 'fake_imu', 'executable': 'fake_imu', 'actions': {}, 'parameters': {}, 'services': {}, 'topics': {'imu': {'name': 'imu', 'type': 'sensor_msgs/msg/Imu', 'role': <PubSubRole.PUBLISHER: 'publisher'>}}}
Based on the documentation of nodl_export_node_description_file()
and the contents of the ament_index
file, I would have expected any hierarchy of directories for the nodl description files to be ok. But the python library (and therefore the cli tool) seem to expect all description files to be in the root of the package's share directory:
nodl/nodl_python/nodl/_index.py
Line 38 in 3457cbf
So is this expected behavior or maybe a bug?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.