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 first call, with template parameters, is correct. The trouble is that the compiler isn't actually emitting the code for that callback function for some reason.

Probably the easiest (and hackiest) thing to do is to add a call to main.doWork() somewhere else in your program, just to convince the compiler to emit the code for it. Ideally, you could put this call on a code path that is unreachable, or call it with an empty argument so that it does nothing.