Skip to content

Commit 687d345

Browse files
authored
Update README.md
1 parent 3fd199a commit 687d345

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ orientation parallel to y-axis (O=+Y)).
197197
from spatialmath import SE3
198198

199199
Tep = SE3.Trans(0.6, -0.3, 0.1) * SE3.OA([0, 1, 0], [0, 0, -1])
200-
sol = robot.ik_lm_chan(Tep) # solve IK
200+
sol = robot.ik_LM(Tep) # solve IK
201201
print(sol)
202202

203203
(array([ 0.20592815, 0.86609481, -0.79473206, -1.68254794, 0.74872915,
@@ -239,14 +239,14 @@ We can also experiment with velocity controllers in Swift. Here is a resolved-ra
239239

240240
```python
241241
import swift
242-
import roboticstoolbox as rp
242+
import roboticstoolbox as rtb
243243
import spatialmath as sm
244244
import numpy as np
245245

246246
env = swift.Swift()
247247
env.launch(realtime=True)
248248

249-
panda = rp.models.Panda()
249+
panda = rtb.models.Panda()
250250
panda.q = panda.qr
251251

252252
Tep = panda.fkine(panda.q) * sm.SE3.Trans(0.2, 0.2, 0.45)
@@ -258,7 +258,7 @@ dt = 0.05
258258

259259
while not arrived:
260260

261-
v, arrived = rp.p_servo(panda.fkine(panda.q), Tep, 1)
261+
v, arrived = rtb.p_servo(panda.fkine(panda.q), Tep, 1)
262262
panda.qd = np.linalg.pinv(panda.jacobe(panda.q)) @ v
263263
env.step(dt)
264264

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy