How can I subscribe to a topic, using a parent class function as the callback?
I have a subscriber that is currently set up with a class method that is called when a message is received from a topic. The code is pretty standard:
ros::Subscriber StageOdo_sub = n.subscribe<nav_msgs::Odometry>("robot_0/odom",1000, &MyClass::StageOdom_callback,this);
I need to shift the callback function to a superclass / base class. However, this generates errors and notes that say that template argument substitution failed. How can I ensure that the superclass function is called?