Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The variables image_sub, info_sub, and sync need to be class variables instead of local. When the subscribers go out of scope at the end of onInit(), their destructors unsubscribe from the topics.