Revision: 7945
http://playerstage.svn.sourceforge.net/playerstage/?rev=7945&view=rev
Author: hsujohnhsu
Date: 2009-07-03 00:45:54 +0000 (Fri, 03 Jul 2009)
Log Message:
-----------
throw an error if the body mass is 0.
Modified Paths:
--------------
code/gazebo/trunk/server/physics/Body.cc
Modified: code/gazebo/trunk/server/physics/Body.cc
===================================================================
--- code/gazebo/trunk/server/physics/Body.cc 2009-07-03 00:31:32 UTC (rev
7944)
+++ code/gazebo/trunk/server/physics/Body.cc 2009-07-03 00:45:54 UTC (rev
7945)
@@ -242,7 +242,6 @@
}
}
-
childNode = node->GetChildByNSPrefix("sensor");
// Load the sensors
@@ -976,6 +975,8 @@
// Set the mass matrix
if (this->mass.mass > 0)
dBodySetMass( this->bodyId, &this->mass );
+ else
+ gzthrow("Setting custom Body "+this->GetName()+"mass to zero!");
// std::cout << " c[0] " << this->mass.c[0] << std::endl;
// std::cout << " c[1] " << this->mass.c[1] << std::endl;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit