Closed ChrisTYuen closed 7 months ago
@ChrisTYuen Thanks!
I understand what you are saying, but for the sake of completeness, could you add a complete minimal working example?
@mmmarinho Of course!
I have updated the comment as requested. Let me know if there is anything else.
@ChrisTYuen Thanks!
@juanjqo The theta
does not seem correct in the minimal example. Does it also not work with the correct theta
?
@mmmarinho No, it doesn't. Even using a correct theta
, the problem persists, since the method raw_fkm()
is not available in the Python version.
I wasn't able to run the minimal example since the module vs_robot
was not included. However,
I did a minimal example to illustrate the problem reported by @ChrisTYuen.
#!/bin/python3
from dqrobotics.robot_modeling import DQ_SerialWholeBody
from dqrobotics.robots import FrankaEmikaPandaRobot
from dqrobotics.robots import KukaLw4Robot
import numpy as np
def main() -> None:
try:
robot = DQ_SerialWholeBody(FrankaEmikaPandaRobot.kinematics())
robot.add(KukaLw4Robot.kinematics())
q = np.zeros(robot.get_dim_configuration_space())
x_raw = robot.raw_fkm(q)
except (Exception, KeyboardInterrupt) as e:
print(e)
pass
if __name__ == "__main__":
main()
'dqrobotics._dqrobotics._robot_modeling.DQ_SerialWh' object has no attribute 'raw_fkm'
Process finished with exit code 0
1i + E*( - 0.06465 - 0.087j)
Process finished with exit code 0
clear all
close all
clc
robot = DQ_SerialWholeBody(FrankaEmikaPandaRobot.kinematics());
robot.add(KukaLwr4Robot.kinematics());
q = zeros(robot.get_dim_configuration_space());
x_raw = robot.raw_fkm(q)
x_raw =
(1i) + E*( - 0.06465 - 0.087j)
Best regards,
Juancho
Sorry! I have included the package if it is still required.
Code of Conduct
By submitting this report you automatically agree that you've read and accepted the following conditions.
Describe the missing/unexpected functionality When using the DQ_SerialWholeBody robot modeling class, the raw_fkm() method is not supported via python version, but is supported via C++ and Matlab versions.
JSON FILE denso_vs050.json
Python behavior (if applicable)
VS050Robot Package
MAIN PYTHON SCRIPT
PYTHON OUTPUT
Environment:
Additional context Add any other context about the problem here.