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

Function yaw_to_R

uav_simulator/Utils/pose_utils/src/pose_utils.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41mat yaw_to_R(double yaw) {
42 mat R = zeros<mat>(2, 2);
43 double c = cos(yaw);
44 double s = sin(yaw);
45 R(0, 0) = c;
46 R(1, 0) = s;
47 R(0, 1) = -s;
48 R(1, 1) = c;
49 return R;
50}
51
52colvec R_to_ypr(const mat& R) {
53 colvec n = R.col(0);

Callers 1

pose_update_2dFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected