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

I found the error.

void ChatterCallback(const sensor_msgs::JointState::ConstPtr& msg){ ROS_INFO("i've heard: [%f]" ,msg->position[0]); }

I found the error.

 void ChatterCallback(const sensor_msgs::JointState::ConstPtr& msg){
msg)
{
      ROS_INFO("i've heard: [%f]" ,msg->position[0]);
}

}