Skip to content
Snippets Groups Projects
Commit 6039ea06 authored by Tommy Persson's avatar Tommy Persson
Browse files

Compile fixes for 20.04

parent 50a3ccad
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment