From f8dd6a64bba22d66a358be1f973203f810bd2e73 Mon Sep 17 00:00:00 2001 From: Paul D'Angio <pcdangio@gmail.com> Date: Mon, 2 Nov 2020 11:38:51 -0500 Subject: [PATCH] cleaned up a few missing includes and std namespaces --- driver_mpu9250/src/ros_node.cpp | 2 +- driver_mpu9250/src/ros_node.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/driver_mpu9250/src/ros_node.cpp b/driver_mpu9250/src/ros_node.cpp index 5cc76d8..af727b6 100644 --- a/driver_mpu9250/src/ros_node.cpp +++ b/driver_mpu9250/src/ros_node.cpp @@ -196,7 +196,7 @@ void ros_node::data_callback(driver::data data) ros_node::m_publisher_gyroscope.publish(message_gyro); // Check if there was a magneto overflow. - if(isnan(data.magneto_x) == false) + if(std::isnan(data.magneto_x) == false) { // Create magneto message. sensor_msgs_ext::magnetic_field message_mag; diff --git a/driver_mpu9250/src/ros_node.h b/driver_mpu9250/src/ros_node.h index b4e93df..de992e2 100644 --- a/driver_mpu9250/src/ros_node.h +++ b/driver_mpu9250/src/ros_node.h @@ -9,6 +9,7 @@ #include <ros/ros.h> #include <driver_mpu9250_msgs/calibrate_gyroscope.h> +#include <atomic> #include <deque> /// \brief Implements the driver's ROS node functionality. -- GitLab