Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Fix that:

my_node.param<std::string>("/source",source, "camera/rgb/image");

to (no "/"!)

my_node.param<std::string>("source",source, "camera/rgb/image");

If your my_node nodehandle is a private nodehandle, it will load the different private parameters.

Given that this looks like a parameter for a topic, there are probably better ways to do this that do not require loading parameters at all.