MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / YawDiff

Method YawDiff

simcore/grading/utils/eval_math.cpp:106–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106double CEvalMath::YawDiff(const CEuler &euler1, const CEuler &euler2) {
107 Eigen::Vector3d axis_x = {1.0, 0.0, 0.0};
108 Eigen::Vector3d rotated_axis_x = euler1.GetRotMatrix().inverse() * euler2.GetRotMatrix() * axis_x;
109 return std::atan2(rotated_axis_x[1], rotated_axis_x[0]);
110}
111
112// calculate yaw of each location
113void CEvalMath::CalYaws(EvalPoints &locs) {}

Callers

nothing calls this directly

Calls 1

GetRotMatrixMethod · 0.45

Tested by

no test coverage detected