Skip to content

Commit 74c9bdc

Browse files
committedFeb 8, 2021
Fixed examples for v0.8.0
1 parent 57890eb commit 74c9bdc

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed
 

‎examples/baur.py

+1-1
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

+2-2
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

+1-1
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

+1-1
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

+2-2
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/robot/ERobot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ def indiv_calculation(link, link_col, q):
18471847

18481848
Je = self.jacobe(
18491849
q, start=self.base_link, end=link,
1850-
offset=link_col.base)
1850+
tool=link_col.base)
18511851
n_dim = Je.shape[1]
18521852
dp = norm_h @ shape.v
18531853
l_Ain = np.zeros((1, n))

0 commit comments

Comments
 (0)