#include <math.h>
#include <ignition/math/Angle.hh>
#include <iostream>
#include "gazebo/util/system.hh"
Go to the source code of this file.
§ GZ_DTOR
#define GZ_DTOR |
( |
|
d | ) |
((d) * M_PI / 180) |
Converts degrees to radians.
- Parameters
-
- Returns
- radians
§ GZ_NORMALIZE
#define GZ_NORMALIZE |
( |
|
a | ) |
(atan2(sin(a), cos(a))) |
Macro tha normalizes an angle in the range -Pi to Pi.
- Parameters
-
- Returns
- the angle, in range
§ GZ_RTOD
#define GZ_RTOD |
( |
|
r | ) |
((r) * 180 / M_PI) |
Macro that converts radians to degrees.
- Parameters
-
- Returns
- degrees