Closed juanjqo closed 5 years ago
Hello, @juanjqo !
As I mentioned in #4, those are methods and not attributes. I don't know why those are working in MATLAB. Are you using the latest MATLAB version?
Anyways, this works in Python:
from dqrobotics import *
from dqrobotics.robots import KukaLw4Robot
import numpy as np
import math
robot = KukaLw4Robot.kinematics()
reference_frame = robot.reference_frame()
print(reference_frame)
robot.set_reference_frame(math.cos(math.pi/2.0)+i_*math.sin(math.pi/2.0));
reference_frame = robot.reference_frame()
print(reference_frame)
And outputs
1 0i 0j 0k +E( 0 0i 0j 0k )
0 1i 0j 0k +E( 0 0i 0j 0k )
PS: As far as I know, this is how it is supposed to work now. We recently changed (or should have changed) most attributes to protected
so that they can't be accessed directly.
@mmmarinho Thank you for your help.
Yes, you're right. Now, it is not working anymore in Matlab. I was not using the last version in Matlab (My mistake).
Cheers,
Juancho.
The methods 'set_reference_frame' and 'set_base_frame' are not working. Apparently, they are read-only.
Code base:
It does not work either. How I can set the reference frame or the base frame?