From: <na...@us...> - 2008-12-10 17:23:20
|
Revision: 7198 http://playerstage.svn.sourceforge.net/playerstage/?rev=7198&view=rev Author: natepak Date: 2008-12-10 17:23:10 +0000 (Wed, 10 Dec 2008) Log Message: ----------- Fixed rotating static bodies Modified Paths: -------------- code/gazebo/trunk/server/physics/Body.cc Modified: code/gazebo/trunk/server/physics/Body.cc =================================================================== --- code/gazebo/trunk/server/physics/Body.cc 2008-12-08 23:35:52 UTC (rev 7197) +++ code/gazebo/trunk/server/physics/Body.cc 2008-12-10 17:23:10 UTC (rev 7198) @@ -298,16 +298,17 @@ std::map<std::string, Geom*>::iterator iter; - //this->SetPosition(this->staticPose.pos); - //this->SetRotation(this->staticPose.rot); + this->SetPosition(this->staticPose.pos); + this->SetRotation(this->staticPose.rot); - for (iter = this->geoms.begin(); iter != this->geoms.end(); iter++) + // This loop doesn't work properly when rotating objects + /*for (iter = this->geoms.begin(); iter != this->geoms.end(); iter++) { //newPose = (*iter)->GetPose() - this->staticPose; newPose = iter->second->GetPose() - oldPose; newPose += this->staticPose; iter->second->SetPose(newPose); - } + }*/ } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |