From 6039ea0615a10f1c002874d7a5c99a9278adfb46 Mon Sep 17 00:00:00 2001 From: Tommy Persson <tommmy.persson@liu.se> Date: Fri, 19 Jun 2020 23:31:46 +0200 Subject: [PATCH] Compile fixes for 20.04 --- src/axis_imu.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/axis_imu.cc b/src/axis_imu.cc index a84f452..0b1c3e7 100644 --- a/src/axis_imu.cc +++ b/src/axis_imu.cc @@ -21,7 +21,7 @@ std::string frame_id; ros::Publisher imu_pub; sensor_msgs::Imu imu_msg; -boost::mutex mutex; +boost::mutex mymutex; bool verbose=false; int xgyro = 0; @@ -167,7 +167,7 @@ private: } { - boost::mutex::scoped_lock lock(mutex); + boost::mutex::scoped_lock lock(mymutex); /* Fill the IMU message */ @@ -261,7 +261,7 @@ void runUDPServer(int port) { } void timer_callback(const ros::TimerEvent&) { - boost::mutex::scoped_lock lock(mutex); + boost::mutex::scoped_lock lock(mymutex); // ROS_ERROR("publish imu"); // Publish the messages imu_pub.publish(imu_msg); -- GitLab