Skip to content

Commit 3ff0533

Browse files
authored
[DQ_SerialWholeBody.cpp] Fix #61 related to the pose jacobian not considering the reference frame as it should (#62)
1 parent 262ea69 commit 3ff0533

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/robot_modeling/DQ_SerialWholeBody.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
(C) Copyright 2020-2022 DQ Robotics Developers
2+
(C) Copyright 2020-2023 DQ Robotics Developers
33
44
This file is part of DQ Robotics.
55
@@ -17,7 +17,11 @@ This file is part of DQ Robotics.
1717
along with DQ Robotics. If not, see <http://www.gnu.org/licenses/>.
1818
1919
Contributors:
20-
- Murilo M. Marinho ([email protected])
20+
1. Murilo M. Marinho ([email protected])
21+
22+
2. Juan Jose Quiroz Omana ([email protected])
23+
- Fixed bug 61 (https://github.com/dqrobotics/cpp/issues/61) in pose_jacobian method.
24+
2125
*/
2226

2327
#include<dqrobotics/robot_modeling/DQ_SerialWholeBody.h>
@@ -242,7 +246,7 @@ MatrixXd DQ_SerialWholeBody::pose_jacobian(const VectorXd &q, const int &to_ith_
242246
int to_jth_link;
243247
std::tie(to_ith_chain,to_jth_link) = get_chain_and_link_from_index(to_ith_link);
244248

245-
return raw_pose_jacobian_by_chain(q,to_ith_chain,to_jth_link);
249+
return hamiplus8(get_reference_frame())*raw_pose_jacobian_by_chain(q,to_ith_chain,to_jth_link);
246250
}
247251

248252
MatrixXd DQ_SerialWholeBody::pose_jacobian(const VectorXd &q) const

0 commit comments

Comments
 (0)