Repository navigation
Replies: 3 comments 3 replies
|
I have the same problem. Have you solved it? |
0 replies
|
When I run it in terminal, it works!!! |
1 reply
|
But i can't run it in the pycharm professional edition |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions