Skip to content

Commit 7d42e28

Browse files
authored
Fix DQ_SerialManipuladorDenso class (#51)
* [DQ_SerialManipulatorDenso.h, .cpp] Added the pose_jacobian_derivative method only for compilation purposes. * [DQ_SerialManipulatorDenso.h, .cpp] Added the pose_jacobian_derivative method only for compilation purposes.
1 parent 139dff5 commit 7d42e28

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

include/dqrobotics/robot_modeling/DQ_SerialManipulatorDenso.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ class DQ_SerialManipulatorDenso: public DQ_SerialManipulator
4646
DQ_SerialManipulatorDenso(const MatrixXd& denso_matrix);
4747

4848
using DQ_SerialManipulator::raw_pose_jacobian;
49+
using DQ_SerialManipulator::raw_pose_jacobian_derivative;
4950
using DQ_SerialManipulator::raw_fkm;
5051

5152
MatrixXd raw_pose_jacobian(const VectorXd& q_vec, const int& to_ith_link) const override;
53+
MatrixXd raw_pose_jacobian_derivative(const VectorXd& q, const VectorXd& q_dot, const int& to_ith_link) const override;
5254
DQ raw_fkm(const VectorXd &q_vec, const int &to_ith_link) const override;
5355
};
5456

src/robot_modeling/DQ_SerialManipulatorDenso.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,26 @@ MatrixXd DQ_SerialManipulatorDenso::raw_pose_jacobian(const VectorXd &q_vec, con
9393
return J;
9494
}
9595

96+
/**
97+
* @brief This method returns the first to_ith_link columns of the time derivative of the pose Jacobian.
98+
* The base displacement and the effector are not taken into account.
99+
* @param q. VectorXd representing the robot joint configuration.
100+
* @param q_dot. VectorXd representing the robot joint velocities.
101+
* @param to_ith_link. The index to a link. This defines until which link the pose_jacobian_derivative
102+
* will be calculated.
103+
* @returns a MatrixXd representing the first to_ith_link columns of the desired Jacobian derivative.
104+
*
105+
*/
106+
MatrixXd DQ_SerialManipulatorDenso::raw_pose_jacobian_derivative(const VectorXd &q, const VectorXd &q_dot, const int &to_ith_link) const
107+
{
108+
_check_q_vec(q);
109+
_check_q_vec(q_dot);
110+
_check_to_ith_link(to_ith_link);
111+
112+
throw std::runtime_error(std::string("pose_jacobian_derivative is not implemented yet."));
113+
return MatrixXd::Zero(1,1);
114+
}
115+
116+
96117

97118
}

0 commit comments

Comments
 (0)