Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Params appear broken in ROS2?

According to https://index.ros.org/doc/ros2/Tutorials/Node-arguments/#parameters, if I have a properly formatted parameters yaml file, and I call ros2 run with __params:= pointing to that file, I should see the parameters defined in that file listed when I run ros2 param list, correct?

I'm doing this, but the only parameter I see when running that command is use_sim_time, which appears whether or not I pass the parameters.

The parameter file is getting parsed, I know this because if I don't have ros__parameters in there or some other inappropriate syntax it will complain and exit without running the node.

I'm on Ubuntu 18.04 on ROS Dashing. Is there any other useful info about my setup that I could provide?

I'm also a little confused on the expected node name within the parameters file. Does it need to match exactly the node name I provide when I call ros2 run? That is what I've been doing, but it doesn't seem to make any difference.