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

Revision history [back]

Put a "&" in front of controllerStateCB: ros::Subscriber sub = handle.subscribe("r_arm_controller/state", 1000, &controllerStateCB); ;)

Put a "&" in front of controllerStateCB: controllerStateCB ;)

 ros::Subscriber sub = handle.subscribe("r_arm_controller/state", 1000, &controllerStateCB);&controllerStateCB);
 ;)