8000 Fix spelling · hzyjerry/robotics-toolbox-python@d177318 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit d177318

Browse files
committed
Fix spelling
1 parent a4821d3 commit d177318

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

roboticstoolbox/backends/VPython/VPython.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ def step(self, dt=None, id=None, q=None, fig_num=0):
179179

180180
# If DHRobot is given (or equivalent)
181181
else:
182-
grpahical_dh_robot = None
182+
graphical_dh_robot = None
183183
# If no ID given, and there are robots available
184184
if id is None and len(self.robots) > 0:
185185
# Obtain the first one
186-
grpahical_dh_robot = self.robots[0]
186+
graphical_dh_robot = self.robots[0]
187187
# If no ID, and no robots available
188188
elif id is None:
189189
print("No robot found")
@@ -194,16 +194,16 @@ def step(self, dt=None, id=None, q=None, fig_num=0):
194194
if self.robots[i].robot is id and \
195195
self.canvases[fig_num].is_robot_in_canvas(
196196
self.robots[i]):
197-
grpahical_dh_robot = self.robots[i]
197+
graphical_dh_robot = self.robots[i]
198198
break
199199

200200
# If no graphical equivalent found, return
201-
if grpahical_dh_robot is None:
201+
if graphical_dh_robot is None:
202202
print("No robot found")
203203
return
204204
# 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)
207207
if self.canvases[fig_num].current_mode == 2:
208208
# Reload the joint sliders
209209
self.canvases[fig_num].teach_mode()

0 commit comments

Comments
 (0)
0