18 #ifndef _BULLETTYPES_HH
19 #define _BULLETTYPES_HH
21 #include <boost/shared_ptr.hpp>
36 class BulletCollision;
38 class BulletMotionState;
70 return btVector3(_vec.
x, _vec.
y, _vec.
z);
79 _bt.getZ(), _bt.getW());
87 return btVector4(_vec.
x, _vec.
y, _vec.
z, _vec.
w);
96 pose.
pos = ConvertVector3(_bt.getOrigin());
97 pose.
rot.
w = _bt.getRotation().getW();
98 pose.
rot.
x = _bt.getRotation().getX();
99 pose.
rot.
y = _bt.getRotation().getY();
100 pose.
rot.
z = _bt.getRotation().getZ();
111 trans.setOrigin(ConvertVector3(_pose.
pos));
112 trans.setRotation(btQuaternion(_pose.
rot.
x, _pose.
rot.
y,
120 #endif // #ifndef _BULLETTYPES_HH
boost::shared_ptr< BulletRayShape > BulletRayShapePtr
Definition: BulletTypes.hh:47
double z
z value of the quaternion
Definition: Quaternion.hh:386
boost::shared_ptr< BulletLink > BulletLinkPtr
Definition: BulletTypes.hh:44
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:318
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
boost::shared_ptr< BulletMotionState > BulletMotionStatePtr
Definition: BulletTypes.hh:45
Bullet surface parameters.
Definition: BulletSurfaceParams.hh:36
static math::Vector4 ConvertVector4(const btVector4 &_bt)
Convert a bullet btVector4 to a gazebo Vector4.
Definition: BulletTypes.hh:76
static math::Vector3 ConvertVector3(const btVector3 &_bt)
Convert a bullet btVector3 to a gazebo Vector3.
Definition: BulletTypes.hh:60
double x
X location.
Definition: Vector3.hh:311
static btTransform ConvertPose(const math::Pose &_pose)
Convert a gazebo pose to a bullet transform.
Definition: BulletTypes.hh:107
double z
Z location.
Definition: Vector3.hh:317
double Generic x, y, z, w vector
Definition: Vector4.hh:39
static btVector4 ConvertVector4(const math::Vector4 &_vec)
Convert a gazebo Vector4 to a bullet btVector4.
Definition: BulletTypes.hh:85
double x
X value.
Definition: Vector4.hh:188
boost::shared_ptr< BulletSurfaceParams > BulletSurfaceParamsPtr
Definition: BulletTypes.hh:48
double w
W value.
Definition: Vector4.hh:197
double w
w value of the quaternion
Definition: Quaternion.hh:377
double y
Y value.
Definition: Vector4.hh:191
static math::Pose ConvertPose(const btTransform &_bt)
Convert a bullet transform to a gazebo pose.
Definition: BulletTypes.hh:93
Vector3 pos
The position.
Definition: Pose.hh:252
A set of functions for converting between the math types used by gazebo and bullet.
Definition: BulletTypes.hh:56
double z
Z value.
Definition: Vector4.hh:194
Quaternion rot
The rotation.
Definition: Pose.hh:255
double y
y value of the quaternion
Definition: Quaternion.hh:383
static btVector3 ConvertVector3(const math::Vector3 &_vec)
Convert a gazebo Vector3 to a bullet btVector3.
Definition: BulletTypes.hh:68
boost::shared_ptr< BulletPhysics > BulletPhysicsPtr
Definition: BulletTypes.hh:46
boost::shared_ptr< BulletCollision > BulletCollisionPtr
Definition: BulletTypes.hh:41
double x
x value of the quaternion
Definition: Quaternion.hh:380
double y
Y location.
Definition: Vector3.hh:314