dqrobotics / python

The DQ Robotics library in Python
https://dqrobotics.github.io
GNU Lesser General Public License v3.0
24 stars 9 forks source link

[BUG] pose_jacobian_derivative() is not working properly #12

Closed juanjqo closed 4 years ago

juanjqo commented 4 years ago

Bug description

Code

from dqrobotics.robots import KukaLw4Robot
import numpy as np
from dqrobotics.robot_modeling import DQ_Kinematics
import pip

pip.main(['show', 'dqrobotics'])
print("--------------------------------------")
robot = KukaLw4Robot.kinematics()
q = np.array([0,0,0,0,0,0,0])
q_dot = np.array([0,0,0,0,0,0,0])

J = robot.pose_jacobian(q)
J_dot = robot.pose_jacobian_derivative(q, q_dot)

print("shapes")
print(J.shape)
print(J_dot.shape)

Output

Name: dqrobotics
Version: 19.10.0.37
Summary: DQRobotics python
Home-page: https://github.com/dqrobotics/python
Author: Murilo Marinho
Author-email: murilo@nml.t.u-tokyo.ac.jp
License: UNKNOWN
Location: /home/juanjqo/.local/lib/python3.6/site-packages
Requires: numpy
--------------------------------------
shapes
(8, 7)
(8, 6)

Process finished with exit code 0

Expected behavior

Expected output

shapes
(8, 7)
(8, 7)

Environment: