Skip to content

Commit c83cfb3

Browse files
authored
Fix use of M_PI in steering_controllers_library and tricycle_controller (#1536)
1 parent e5562fb commit c83cfb3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

steering_controllers_library/src/steering_odometry.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
* Author: Dr. Ing. Denis Stogl
1818
*/
1919

20+
#define _USE_MATH_DEFINES
21+
2022
#include "steering_controllers_library/steering_odometry.hpp"
2123

2224
#include <cmath>

steering_controllers_library/test/test_steering_odometry.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#define _USE_MATH_DEFINES
16+
1517
#include <gmock/gmock.h>
1618

1719
#include "steering_controllers_library/steering_odometry.hpp"

tricycle_controller/src/tricycle_controller.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* Author: Tony Najjar
1717
*/
1818

19+
#define _USE_MATH_DEFINES
20+
1921
#include <memory>
2022
#include <queue>
2123
#include <string>

0 commit comments

Comments
 (0)