You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
while working with Swift we found an issue, we are getting message:
"Swift is not installed, " "install it using pip or conda".
Problem can be solved by changing line 1244 in robotictoolbox\robot\Robot.py from: from roboticstoolbox.backends.swift import Swift
to: from roboticstoolbox.backends.Swift import Swift
Tested on Windows on below example:
import roboticstoolbox as rtb
from roboticstoolbox.tools.trajectory import *
from spatialmath import *
robot = rtb.models.Panda()
T = SE3(0.7, 0.2, 0.1) * SE3.OA([0, 1, 0], [0, 0, -1])
solution = robot.ikine_LM(T)
traj = jtraj(robot.qz, solution.q, 50)
# Swift
robot.plot(traj.q, backend = 'swift')