A set of functions for converting between the math types used by gazebo and bullet. More...
#include <BulletTypes.hh>
Static Public Member Functions | |
static math::Pose | ConvertPose (const btTransform &_bt) |
Convert a bullet transform to a gazebo pose. More... | |
static btTransform | ConvertPose (const math::Pose &_pose) |
Convert a gazebo pose to a bullet transform. More... | |
static math::Vector3 | ConvertVector3 (const btVector3 &_bt) |
Convert a bullet btVector3 to a gazebo Vector3. More... | |
static btVector3 | ConvertVector3 (const math::Vector3 &_vec) |
Convert a gazebo Vector3 to a bullet btVector3. More... | |
static math::Vector4 | ConvertVector4 (const btVector4 &_bt) |
Convert a bullet btVector4 to a gazebo Vector4. More... | |
static btVector4 | ConvertVector4 (const math::Vector4 &_vec) |
Convert a gazebo Vector4 to a bullet btVector4. More... | |
A set of functions for converting between the math types used by gazebo and bullet.
|
inlinestatic |
Convert a bullet transform to a gazebo pose.
[in] | _bt | Bullet pose (btTransform). |
References BulletTypes::ConvertVector3(), Pose::pos, Pose::rot, Quaternion::w, Quaternion::x, Quaternion::y, and Quaternion::z.
Referenced by BulletSphereShape::SetRadius(), BulletBoxShape::SetSize(), and BulletCylinderShape::SetSize().
|
inlinestatic |
Convert a gazebo pose to a bullet transform.
[in] | _pose | Gazebo pose. |
References BulletTypes::ConvertVector3(), Pose::pos, Pose::rot, Quaternion::w, Quaternion::x, Quaternion::y, and Quaternion::z.
|
inlinestatic |
Convert a bullet btVector3 to a gazebo Vector3.
[in] | _bt | Bullet Vector3. |
Referenced by BulletTypes::ConvertPose().
|
inlinestatic |
Convert a gazebo Vector3 to a bullet btVector3.
[in] | _vec | Gazebo Vector3. |
References Vector3::x, Vector3::y, and Vector3::z.
|
inlinestatic |
Convert a bullet btVector4 to a gazebo Vector4.
[in] | _bt | Bullet Vector4. |
|
inlinestatic |
Convert a gazebo Vector4 to a bullet btVector4.
[in] | _vec | Gazebo Vector4. |
References Vector4::w, Vector4::x, Vector4::y, and Vector4::z.