How to reject the {'l_gripper_l_finger_joint'}, i use subscribe Block and the topic /robot/joint_states ,but i get l_gripper_l_finger_joint message.
The physical Baxter sends the gripper states separately on the same topic, so we have to reject it. Can you help me with it.
I use the receive function to read the joint states,the same thing happened again.
The messages returned at different times are as follows,which i don't want these messages.
jntState1 = receive(jointSub1)jntState1 = ROS JointState message with properties: MessageType: 'sensor_msgs/JointState' Header: [1×1 Header] Name: {'l_gripper_l_finger_joint'} Position: 0.020830000000000 Velocity: 0 Effort: 0
These messages are what i want.
jntState1 = receive(jointSub1)jntState1 = ROS JointState message with properties: MessageType: 'sensor_msgs/JointState' Header: [1×1 Header] Name: {17×1 cell} Position: [17×1 double] Velocity: [17×1 double] Effort: [17×1 double]
In the simulink the messages returned at different times are as follows:
1、
2、
Can someone help me.
Best wishes!
Best Answer