@@ -179,11 +179,11 @@ def step(self, dt=None, id=None, q=None, fig_num=0):
179
179
180
180
# If DHRobot is given (or equivalent)
181
181
else :
182
- grpahical_dh_robot = None
182
+ graphical_dh_robot = None
183
183
# If no ID given, and there are robots available
184
184
if id is None and len (self .robots ) > 0 :
185
185
# Obtain the first one
186
- grpahical_dh_robot = self .robots [0 ]
186
+ graphical_dh_robot = self .robots [0 ]
187
187
# If no ID, and no robots available
188
188
elif id is None :
189
189
print ("No robot found" )
@@ -194,16 +194,16 @@ def step(self, dt=None, id=None, q=None, fig_num=0):
194
194
if self .robots [i ].robot is id and \
195
195
self .canvases [fig_num ].is_robot_in_canvas (
196
196
self .robots [i ]):
197
- grpahical_dh_robot = self .robots [i ]
197
+ graphical_dh_robot = self .robots [i ]
198
198
break
199
199
200
200
# If no graphical equivalent found, return
201
- if grpahical_dh_robot is None :
201
+ if graphical_dh_robot is None :
202
202
print ("No robot found" )
203
203
return
204
204
# Set poses of graphical robot
205
- poses = grpahical_dh_robot .fkine (q )
206
- grpahical_dh_robot .set_joint_poses (poses )
205
+ poses = graphical_dh_robot .fkine (q )
206
+ graphical_dh_robot .set_joint_poses (poses )
207
207
if self .canvases [fig_num ].current_mode == 2 :
208
208
# Reload the joint sliders
209
209
self .canvases [fig_num ].teach_mode ()
0 commit comments