Open wjwwood opened 3 years ago
It looks like the current implementation of _get_nodl_files_from_package_share()
would work with the usage described in ament_nodl
's README, where .nodl.xml
files are placed in the same directory as the CMakeLists.txt
file. nodl_export_node_description_file()
respects hierarchy of directories though.
So, I have a line like this in my example:
This installs the file and an
ament_index
marker file to:The
ament_index
marker file contains:But if I run
ros2 nodl
I get: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:Based on the documentation of
nodl_export_node_description_file()
and the contents of theament_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:https://github.com/ubuntu-robotics/nodl/blob/3457cbf9242738ab831f84a0360cffb175d1f415/nodl_python/nodl/_index.py#L38
So is this expected behavior or maybe a bug?