ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Try to use imuSub_ to subscribe, otherwise the subscription goes out of scope when you leave your constructor.

imuSub_= nh->subscribe("/imu", 1000, &SimpleSub::imuSubsCallback, this);