Skip to content

Commit bca1a99

Browse files
authored
Fix use of M_PI in omni_wheel_driver_controller on MSVC (#1886)
1 parent b58af5a commit bca1a99

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

omni_wheel_drive_controller/src/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 "omni_wheel_drive_controller/odometry.hpp"
1618

1719
#include <cmath>

omni_wheel_drive_controller/src/omni_wheel_drive_controller.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 "omni_wheel_drive_controller/omni_wheel_drive_controller.hpp"
1618

1719
#include <cmath>

0 commit comments

Comments
 (0)