Skip to content

Commit d36f517

Browse files
author
Murilo Marinho
committed
[DQ_Kinematics and subclasses] Fixing return after throw, removing unneeded std::string.
1 parent 0604a08 commit d36f517

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/robot_modeling/DQ_SerialManipulatorDenso.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,7 @@ MatrixXd DQ_SerialManipulatorDenso::raw_pose_jacobian(const VectorXd &q_vec, con
105105
*/
106106
MatrixXd DQ_SerialManipulatorDenso::raw_pose_jacobian_derivative(const VectorXd &q, const VectorXd &q_dot, const int &to_ith_link) const
107107
{
108-
_check_q_vec(q);
109-
_check_q_vec(q_dot);
110-
_check_to_ith_link(to_ith_link);
111-
112108
throw std::runtime_error(std::string("pose_jacobian_derivative is not implemented yet."));
113-
return MatrixXd::Zero(1,1);
114109
}
115110

116111

src/robot_modeling/DQ_SerialWholeBody.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,7 @@ MatrixXd DQ_SerialWholeBody::pose_jacobian(const VectorXd &q) const
253253
//To be implemented.
254254
MatrixXd DQ_SerialWholeBody::raw_pose_jacobian_derivative_by_chain(const VectorXd &q, const VectorXd &q_dot, const int &to_ith_chain, const int &to_jth_link) const
255255
{
256-
throw std::runtime_error(std::string("pose_jacobian_derivative_by_chain is not implemented yet."));
257-
return MatrixXd::Zero(1,1);
256+
throw std::runtime_error("pose_jacobian_derivative_by_chain is not implemented yet.");
258257
}
259258

260259
/**

src/robot_modeling/DQ_WholeBody.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ void DQ_WholeBody::set_effector(const DQ &effector)
183183
*/
184184
MatrixXd DQ_WholeBody::pose_jacobian_derivative(const VectorXd &q, const VectorXd &q_dot, const int &to_ith_link) const
185185
{
186-
throw std::runtime_error(std::string("pose_jacobian_derivative is not implemented yet."));
187-
return MatrixXd::Zero(1,1);
186+
throw std::runtime_error("pose_jacobian_derivative is not implemented yet.");
188187
}
189188

190189

0 commit comments

Comments
 (0)