Skip to content

Commit f0309ed

Browse files
committed
2 parents aac775c + 74c9bdc commit f0309ed

File tree

9 files changed

+182
-162
lines changed

9 files changed

+182
-162
lines changed

examples/baur.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@
8989
panda.qd[:n] = qd[:n]
9090

9191
# Step the simulator by 50 ms
92-
env.step(50)
92+
env.step(0.05)

examples/neo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@
108108
# object on the robot to the collision in the scene
109109
c_Ain, c_bin = panda.link_collision_damper(
110110
collision, panda.q[:n], 0.3, 0.05, 1.0,
111-
startlink=panda.link_dict['panda_link1'],
112-
endlink=panda.link_dict['panda_hand'])
111+
start=panda.link_dict['panda_link1'],
112+
end=panda.link_dict['panda_hand'])
113113

114114
# If there are any parts of the robot within the influence distance
115115
# to the collision in the scene

examples/park.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@
6767
panda.qd[:n] = qd[:n]
6868

6969
# Step the simulator by 50 ms
70-
env.step(50)
70+
env.step(0.05)

examples/swift_recording.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
while not arrived:
5858

5959
# The pose of the Panda's end-effector
60-
Te = panda.fkine()
60+
Te = panda.fkine(panda.q)
6161

6262
# Transform from the end-effector to desired pose
6363
eTep = Te.inv() * Tep

examples/vellipse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
while not arrived:
3131
start = time.time()
3232

33-
v, arrived = rp.p_servo(panda.fkine(), Tep, 0.5)
34-
panda.qd = np.linalg.pinv(panda.jacobe()) @ v
33+
v, arrived = rp.p_servo(panda.fkine(panda.q), Tep, 0.5)
34+
panda.qd = np.linalg.pinv(panda.jacobe(panda.q)) @ v
3535
env.step(50)
3636
stop = time.time()
3737

roboticstoolbox/backends/Swift/Swift.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ def _step_shapes(self, dt):
365365
for shape in self.shapes:
366366

367367
T = shape.base
368-
t = T.t
369-
r = T.rpy('rad')
368+
t = T.t.astype('float64')
369+
r = T.rpy('rad').astype('float64')
370370

371-
t += shape.v[:3] * (dt)
372-
r += shape.v[3:] * (dt)
371+
t += shape.v[:3] * dt
372+
r += shape.v[3:] * dt
373373

374374
shape.base = sm.SE3(t) * sm.SE3.RPY(r)
375375

0 commit comments

Comments
 (0)