From 560dd83c89650269c4a3cca017386a7efecb8942 Mon Sep 17 00:00:00 2001 From: "Alan G. Sanchez" Date: Fri, 17 Jun 2022 09:57:44 -0700 Subject: [PATCH] Fixed typos in the comments --- src/joint_state_printer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/joint_state_printer.py b/src/joint_state_printer.py index b2b01b0..1ca190c 100755 --- a/src/joint_state_printer.py +++ b/src/joint_state_printer.py @@ -40,8 +40,8 @@ class JointStatePublisher(): # Create an empty list that will store the positions of the requested joints joint_positions = [] - # Use of forloop to parse the positions of the requested joints. - # The index() function returns the index at the first occurence of + # Use of forloop to parse the names of the requested joints list. + # The index() function returns the index at the first occurrence of # the name of the requested joint in the self.joint_states.name list. for i in range(len(joints)): index = self.joint_states.name.index(joints[i]) @@ -66,7 +66,7 @@ if __name__ == '__main__': JSP = JointStatePublisher() # Use the rospy.sleep() function to allow the class to initialize before - # requesting to publish joint_positions of desered joints (running the + # requesting to publish joint_positions of desired joints (running the # print_states() function). rospy.sleep(.1)