From a78327f1a2e2a68f50e781a1886a94f369961062 Mon Sep 17 00:00:00 2001 From: "Alan G. Sanchez" Date: Wed, 22 Jun 2022 14:00:14 -0700 Subject: [PATCH] Included the names of the joints to be printed. --- src/joint_state_printer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/joint_state_printer.py b/src/joint_state_printer.py index 147d3c0..35eb63e 100755 --- a/src/joint_state_printer.py +++ b/src/joint_state_printer.py @@ -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")