Skip to content

Commit

Permalink
Use GZ_PI instead of M_PI
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Aug 26, 2024
1 parent 618fae1 commit 90476c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/odometry_publisher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <gz/common/Console.hh>
#include <gz/common/Util.hh>
#include <gz/math/Helpers.hh>
#include <gz/math/Pose3.hh>
#include <gz/transport/Node.hh>
#include <gz/utils/ExtraTestMacros.hh>
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 90476c0

Please sign in to comment.