First time here? Check out the FAQ!
answered 2014-10-17 13:43:47 -0500
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.