From 687d345d9994718d972a4b071dc061a3920d1733 Mon Sep 17 00:00:00 2001 From: Jesse Haviland Date: Tue, 16 May 2023 07:52:49 +1000 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1403b22a6..3091d25e9 100644 --- a/README.md +++ b/README.md @@ -197,7 +197,7 @@ orientation parallel to y-axis (O=+Y)). from spatialmath import SE3 Tep = SE3.Trans(0.6, -0.3, 0.1) * SE3.OA([0, 1, 0], [0, 0, -1]) -sol = robot.ik_lm_chan(Tep) # solve IK +sol = robot.ik_LM(Tep) # solve IK print(sol) (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 ```python import swift -import roboticstoolbox as rp +import roboticstoolbox as rtb import spatialmath as sm import numpy as np env = swift.Swift() env.launch(realtime=True) -panda = rp.models.Panda() +panda = rtb.models.Panda() panda.q = panda.qr Tep = panda.fkine(panda.q) * sm.SE3.Trans(0.2, 0.2, 0.45) @@ -258,7 +258,7 @@ dt = 0.05 while not arrived: - v, arrived = rp.p_servo(panda.fkine(panda.q), Tep, 1) + v, arrived = rtb.p_servo(panda.fkine(panda.q), Tep, 1) panda.qd = np.linalg.pinv(panda.jacobe(panda.q)) @ v env.step(dt)