Browse Source

Included the names of the joints to be printed.

pull/14/head
Alan G. Sanchez 2 years ago
parent
commit
a78327f1a2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/joint_state_printer.py

+ 2
- 1
src/joint_state_printer.py View File

@ -49,7 +49,8 @@ class JointStatePublisher():
joint_positions.append(self.joint_states.position[index])
# Print the joint position values to the terminal
print(joint_positions)
print("name: " + str(joints))
print("position: " + str(joint_positions))
# Sends a signal to rospy to shutdown the ROS interfaces
rospy.signal_shutdown("done")

Loading…
Cancel
Save