Revision: 7374
http://playerstage.svn.sourceforge.net/playerstage/?rev=7374&view=rev
Author: natepak
Date: 2009-03-08 01:42:39 +0000 (Sun, 08 Mar 2009)
Log Message:
-----------
Fixed a few bugs with setting a model's state
Modified Paths:
--------------
code/gazebo/trunk/examples/libgazebo/simiface/simiface.cc
code/gazebo/trunk/server/World.cc
Modified: code/gazebo/trunk/examples/libgazebo/simiface/simiface.cc
===================================================================
--- code/gazebo/trunk/examples/libgazebo/simiface/simiface.cc 2009-03-08
01:32:18 UTC (rev 7373)
+++ code/gazebo/trunk/examples/libgazebo/simiface/simiface.cc 2009-03-08
01:42:39 UTC (rev 7374)
@@ -40,9 +40,9 @@
{
gazebo::Pose pose;
- gazebo::Vec3 linearVel(0, 0, 0);
+ gazebo::Vec3 linearVel(0.1, 0, 0);
gazebo::Vec3 angularVel(0, 0, 0);
- gazebo::Vec3 linearAccel(50, 0, 0);
+ gazebo::Vec3 linearAccel(0, 0, 0);
gazebo::Vec3 angularAccel(0, 0, 0);
simIface->SetState(name, pose, linearVel, angularVel,
Modified: code/gazebo/trunk/server/World.cc
===================================================================
--- code/gazebo/trunk/server/World.cc 2009-03-08 01:32:18 UTC (rev 7373)
+++ code/gazebo/trunk/server/World.cc 2009-03-08 01:42:39 UTC (rev 7374)
@@ -614,15 +614,15 @@
Vector3(req->modelPose.roll,
req->modelPose.pitch,
req->modelPose.yaw));
- //model->SetPose(pose);
+ model->SetPose(pose);
// Set the model's linear and angular velocity
- //model->SetLinearVel(linearVel);
- //model->SetAngularVel(angularVel);
+ model->SetLinearVel(linearVel);
+ model->SetAngularVel(angularVel);
// Set the model's linear and angular acceleration
model->SetLinearAccel(linearAccel);
- //model->SetAngularAccel(angularAccel);
+ model->SetAngularAccel(angularAccel);
}
else
{
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit