ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The simplest solution to do what you're trying to do is to simply call two functions within a "generic" callback function:
ImuSubscriber = nh.subscribe ("/mikrokopter/fc_debug", 100, &MikrokopterControl::genericCallback, this);
...
void MikrokopterControl::genericCallback(const sensor_msgs::IMU& data)
{
function1(data);
function2(data);
}