In [1]:
from pybotics.robot import Robot
from pybotics.predefined_models import ur10
robot = Robot.from_parameters(ur10())
In [2]:
import numpy as np
np.set_printoptions(suppress=True)
joints = np.deg2rad([5,5,5,5,5,5])
pose = robot.fk(joints)
display(pose)
In [3]:
solved_joints = robot.ik(pose)
display(np.rad2deg(solved_joints))