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

Function standardRad

simulation/tools/sim_viewer.cpp:294–304  ·  view source on GitHub ↗

Normalize angle to be within the interval [-pi,pi].

Source from the content-addressed store, hash-verified

292
293// Normalize angle to be within the interval [-pi,pi].
294double
295standardRad(double t)
296{
297 if (t >= 0.) {
298 t = std::fmod(t + M_PI, 2 * M_PI) - M_PI;
299 }
300 else {
301 t = std::fmod(t - M_PI, -2 * M_PI) + M_PI;
302 }
303 return t;
304}
305
306void
307wRo_to_euler(const Eigen::Matrix3f& wRo, double& yaw, double& pitch, double& roll)

Callers 1

wRo_to_eulerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected