Replies: 3 comments 3 replies
-
I have the same problem. Have you solved it? |
Beta Was this translation helpful? Give feedback.
0 replies
-
When I run it in terminal, it works!!! |
Beta Was this translation helpful? Give feedback.
1 reply
-
But i can't run it in the pycharm professional edition |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,guys,when i run this code in my pycharm,i can't see the image in my sciview,but others can.It confuse me for three days.Pls help me!
this is my code.
import roboticstoolbox as rtb
from spatialmath import SE3
robot = rtb.models.DH.Panda()
print(robot)
T = robot.fkine(robot.qz) # forward kinematics
print(T)
T = SE3(0.7, 0.2, 0.1) * SE3.OA([0, 1, 0], [0, 0, -1])
sol = robot.ikine_LM(T) # solve IK
print(sol)
robot = rtb.models.DH.Panda()
print(robot)
T = robot.fkine(robot.qz) # forward kinematics
print(T)
T = SE3(0.7, 0.2, 0.1) * SE3.OA([0, 1, 0], [0, 0, -1])
sol = robot.ikine_LM(T)
solve IK
print(sol)
q_pickup = sol.q
print(robot.fkine(q_pickup))
FK shows that desired end-effector pose was achieved
qt = rtb.jtraj(robot.qz, q_pickup, 50)
robot.plot(qt.q, movie='panda1.gif')
I uplord the photo which show my pycharm
Beta Was this translation helpful? Give feedback.
All reactions