ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The compile error should just result from a missing & infront of callback to make it a function pointer.

Try

ros::Subscriber sub = n.subscribe("/tld_tracked_object", 20, &callback);

No garuentee that the whole programme will work afterwards but it should at least compile.