ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In regards to passing it directly to the ros2 node, you're missing the -p
to notify that this is a parameter being passed:
sh
ros2 run test_param_pkg test_node.py --ros_args -p custom_param:="my_very_custom_param"
In regards to the launch file failing, the warning Parameter file path is not a file: custom_parammy_very_custom_param
suggests that you entered the launch command incorrectly, try and run the same command again:
sh
ros2 launch test_param_pkg test_param.launch.py custom_param:="my_very_custom_param"