MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / wRo_to_euler

Function wRo_to_euler

simulation/tools/sim_viewer.cpp:306–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306void
307wRo_to_euler(const Eigen::Matrix3f& wRo, double& yaw, double& pitch, double& roll)
308{
309 yaw = standardRad(std::atan2(wRo(1, 0), wRo(0, 0)));
310 double c = std::cos(yaw);
311 double s = sin(yaw);
312 pitch = standardRad(
313 std::atan2(static_cast<double>(-wRo(2, 0)), wRo(0, 0) * c + wRo(1, 0) * s));
314 roll = standardRad(
315 std::atan2(wRo(0, 2) * s - wRo(1, 2) * c, -wRo(0, 1) * s + wRo(1, 1) * c));
316}
317
318void
319print_Isometry3d(Eigen::Isometry3d pose, std::stringstream& ss)

Callers 1

simulate_callbackFunction · 0.85

Calls 1

standardRadFunction · 0.85

Tested by

no test coverage detected