Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you want to use ROS parameters in your C++ code, you need to explicitly read those parameters into a variable.

I'd suggest you go through the ROS C++ parameters tutorial

If you want to use ROS parameters in your C++ code, you need to explicitly read those parameters into a variable.

I'd suggest you go through the ROS C++ parameters tutorial

When you declare a parameter with a <param> tag in a launch file, you're creating a private parameter within that node's namespace, so you should also read through the tutorial on private namespaces: Accessing Private Names from a NodeHandle (roscpp)