diff --git a/test/integration/odometry_publisher.cc b/test/integration/odometry_publisher.cc index 190126b486..67e80d65f7 100644 --- a/test/integration/odometry_publisher.cc +++ b/test/integration/odometry_publisher.cc @@ -24,6 +24,7 @@ #include #include +#include #include #include #include @@ -426,7 +427,7 @@ class OdometryPublisherTest // Set an angular velocity command that would cause pitch to update from 0 // to PI in 1 second, crossing the singularity when pitch is PI/2. - const math::Vector3d angVelCmd(0.0, M_PI, 0); + const math::Vector3d angVelCmd(0.0, GZ_PI, 0); msgs::Twist msg; msgs::Set(msg.mutable_linear(), math::Vector3d::Zero); msgs::Set(msg.mutable_angular(), angVelCmd);