"Could not find requested resource in ament index" - When loading component into a container
EDIT: Revised to be more general for others to reference if needed and formating to be skimmable.
Hi all,
I'm relatively new to implementing composition for nodes. So far, all the legacy packages we use internally have been converted without issues. But my latest project won't load after it is compiled. What I've tried so far:
ros2 run <package> <component_executable>
... - Worksros2 component types | grep <package>
- Component is in outputros2 component standalone <package> <component::plugin>
- Worksros2 component load <container> <package> <component::plugin>
- DOES NOT WORK
I get the error message:
"Could not find requested resource in ament index"
I'm at a bit of a loss as to why it isn't working.
I have registered the component with the macro in my code. My class is inherited from Node and only accepts the NodeOptions in the constructor.
Any help would be greatly appreciated. Thank you.
Running in osrf/ros:humble-desktop Docker container.
Update: I have continued testing. I can run the component in standalone mode, but not load it into a container