Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

Commit

Permalink
Merge pull request #367 from fqez/fix_pose3d_taxi
Browse files Browse the repository at this point in the history
[issue #359] Added pose3D to taxi models. Fix #359
  • Loading branch information
fqez committed Mar 8, 2016
2 parents c4a658b + d8207a4 commit b405e2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
<front_left_steering_joint>front_left_steering_wheel</front_left_steering_joint>
<!--<torque>5</torque>-->
</plugin>
<plugin name="pose3d" filename="libpose3dTurtlebotJde.so"/>
</model>
</sdf>

Original file line number Diff line number Diff line change
Expand Up @@ -352,5 +352,6 @@
<front_left_steering_joint>front_left_steering_wheel</front_left_steering_joint>
<!--<torque>5</torque>-->
</plugin>
<plugin name="pose3d" filename="libpose3dTurtlebotJde.so"/>
</model>
</sdf>
</sdf>
2 changes: 1 addition & 1 deletion src/stable/components/gazeboserver/plugins/f1/motors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ namespace gazebo
this->steerLeftJoint->SetForce(0,580*robotMotors.targetLeftSteerPos);
#else
float z = model->GetRelativeLinearVel().z;
math::Vector3 vel(0,-robotMotors.v/10.0,z);
math::Vector3 vel(0,-robotMotors.v/1.0,z);

math::Quaternion rot = model->GetWorldPose().rot;
vel = rot.GetAsMatrix3()*vel;
Expand Down

0 comments on commit b405e2c

Please sign in to comment.