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

Revision history [back]

click to hide/show revision 1
initial version

try changing

nh.subscribe("joint1_controller/state", 10, this->joint_state_cb);

to: nh.subscribe("joint1_controller/state", 10, &joint_move::joint_state_cb);

try changing

changing: nh.subscribe("joint1_controller/state", 10, this->joint_state_cb);
this->joint_state_cb);

to: nh.subscribe("joint1_controller/state", 10, &joint_move::joint_state_cb);