Skip to content

Commit

Permalink
[kobuki_driver] isnan -> std::isnan
Browse files Browse the repository at this point in the history
  • Loading branch information
stonier committed May 6, 2016
1 parent f56802f commit 2d943e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions kobuki_driver/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog
=========

Forthcoming
-----------
* isnan -> std::isnan

0.6.3 (2016-05-06)
------------------
* bugfix cliff header packet
Expand Down
5 changes: 3 additions & 2 deletions kobuki_driver/src/driver/kobuki.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
** Includes
*****************************************************************************/

#include <stdexcept>
#include <cmath>
#include <ecl/math.hpp>
#include <ecl/geometry/angle.hpp>
#include <ecl/time/sleep.hpp>
#include <ecl/converters.hpp>
#include <ecl/sigslots.hpp>
#include <ecl/geometry/angle.hpp>
#include <ecl/time/timestamp.hpp>
#include <stdexcept>
#include "../../include/kobuki_driver/kobuki.hpp"
#include "../../include/kobuki_driver/packet_handler/payload_headers.hpp"

Expand Down Expand Up @@ -273,7 +274,7 @@ void Kobuki::spin()
if( !inertia.deserialise(data_buffer) ) { fixPayload(data_buffer); break; }

// Issue #274: use first imu reading as zero heading; update when reseting odometry
if (isnan(heading_offset) == true)
if (std::isnan(heading_offset) == true)
heading_offset = (static_cast<double>(inertia.data.angle) / 100.0) * ecl::pi / 180.0;
break;
case Header::Cliff:
Expand Down

0 comments on commit 2d943e1

Please sign in to comment.