Revision: 6971
http://playerstage.svn.sourceforge.net/playerstage/?rev=6971&view=rev
Author: natepak
Date: 2008-08-20 23:29:10 +0000 (Wed, 20 Aug 2008)
Log Message:
-----------
Changed from isnan to std::isnan
Modified Paths:
--------------
code/gazebo/trunk/server/Quatern.hh
code/gazebo/trunk/server/physics/Body.cc
Modified: code/gazebo/trunk/server/Quatern.hh
===================================================================
--- code/gazebo/trunk/server/Quatern.hh 2008-08-20 23:19:02 UTC (rev 6970)
+++ code/gazebo/trunk/server/Quatern.hh 2008-08-20 23:29:10 UTC (rev 6971)
@@ -29,6 +29,7 @@
#include <iostream>
#include <math.h>
+#include <cmath>
#include "Angle.hh"
#include "Vector3.hh"
@@ -141,11 +142,11 @@
v.y = v.y * 180.0 / M_PI;
v.z = v.z * 180.0 / M_PI;
- if (isnan(v.x))
+ if (std::isnan(v.x))
v.x = 90.0;
- if (isnan(v.y))
+ if (std::isnan(v.y))
v.y = 90.0;
- if (isnan(v.z))
+ if (std::isnan(v.z))
v.z = 90.0;
out << v.x << " " << v.y << " " << v.z;
Modified: code/gazebo/trunk/server/physics/Body.cc
===================================================================
--- code/gazebo/trunk/server/physics/Body.cc 2008-08-20 23:19:02 UTC (rev
6970)
+++ code/gazebo/trunk/server/physics/Body.cc 2008-08-20 23:29:10 UTC (rev
6971)
@@ -510,13 +510,13 @@
// Old pose for the CoM
oldPose = this->comPose;
- if (isnan(this->mass.c[0]))
+ if (std::isnan(this->mass.c[0]))
this->mass.c[0] = 0;
- if (isnan(this->mass.c[1]))
+ if (std::isnan(this->mass.c[1]))
this->mass.c[1] = 0;
- if (isnan(this->mass.c[2]))
+ if (std::isnan(this->mass.c[2]))
this->mass.c[2] = 0;
// New pose for the CoM
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit