Skip to content

Commit

Permalink
Fixed examples for v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jhavl committed Feb 8, 2021
1 parent 57890eb commit 74c9bdc
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/baur.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@
panda.qd[:n] = qd[:n]

# Step the simulator by 50 ms
env.step(50)
env.step(0.05)
4 changes: 2 additions & 2 deletions examples/neo.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
# object on the robot to the collision in the scene
c_Ain, c_bin = panda.link_collision_damper(
collision, panda.q[:n], 0.3, 0.05, 1.0,
startlink=panda.link_dict['panda_link1'],
endlink=panda.link_dict['panda_hand'])
start=panda.link_dict['panda_link1'],
end=panda.link_dict['panda_hand'])

# If there are any parts of the robot within the influence distance
# to the collision in the scene
Expand Down
2 changes: 1 addition & 1 deletion examples/park.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
panda.qd[:n] = qd[:n]

# Step the simulator by 50 ms
env.step(50)
env.step(0.05)
2 changes: 1 addition & 1 deletion examples/swift_recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
while not arrived:

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

# Transform from the end-effector to desired pose
eTep = Te.inv() * Tep
Expand Down
4 changes: 2 additions & 2 deletions examples/vellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
while not arrived:
start = time.time()

v, arrived = rp.p_servo(panda.fkine(), Tep, 0.5)
panda.qd = np.linalg.pinv(panda.jacobe()) @ v
v, arrived = rp.p_servo(panda.fkine(panda.q), Tep, 0.5)
panda.qd = np.linalg.pinv(panda.jacobe(panda.q)) @ v
env.step(50)
stop = time.time()

Expand Down
2 changes: 1 addition & 1 deletion roboticstoolbox/robot/ERobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ def indiv_calculation(link, link_col, q):

Je = self.jacobe(
q, start=self.base_link, end=link,
offset=link_col.base)
tool=link_col.base)
n_dim = Je.shape[1]
dp = norm_h @ shape.v
l_Ain = np.zeros((1, n))
Expand Down

0 comments on commit 74c9bdc

Please sign in to comment.