MCPcopy Create free account
hub / github.com/Robotics-STAR-Lab/RACER / pose_update

Function pose_update

uav_simulator/Utils/pose_utils/src/pose_utils.cpp:161–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159// General Pose Update ----------
160
161colvec pose_update(const colvec& X1, const colvec& X2) {
162 mat R1 = ypr_to_R(X1.rows(3, 5));
163 mat R2 = ypr_to_R(X2.rows(3, 5));
164 mat R3 = R1 * R2;
165
166 colvec X3xyz = X1.rows(0, 2) + R1 * X2.rows(0, 2);
167 colvec X3ypr = R_to_ypr(R3);
168
169 colvec X3 = join_cols(X3xyz, X3ypr);
170 return X3;
171}
172
173colvec pose_inverse(const colvec& X) {
174 mat R = ypr_to_R(X.rows(3, 5));

Callers 3

Jplus1Function · 0.85
Jplus2Function · 0.85
odom_callbackFunction · 0.85

Calls 2

ypr_to_RFunction · 0.70
R_to_yprFunction · 0.70

Tested by

no test coverage detected