JointState message

asked 2017-05-03 20:18:08 -0500

buaawanggg gravatar image

updated 2017-05-03 20:23:30 -0500

void callback(const sensor_msgs::JointState::ConstPtr& msg)


 sensor_msgs::JointState output;>name; 





the topic i subscribe is “Joint_states”

the msg->name=[‘Joint0’,‘Joint1’,‘Joint2’,‘Joint3’,‘Joint4’,‘Joint5’]

i want to make the array[Joint0]

i try to write“Joint0” but when complile there is an error or>name[0] also the same problem

is the size of array "" is fixed cause the error

edit retag flag offensive close merge delete