|
| | Wheel (agx::Real radius, agx::RigidBody *rb, agx::Frame *rbRelFrame=nullptr) |
| | Construct wheel given radius, wheel body and frame defining wheel center, up and rotation axes in the rigid body frame. More...
|
| |
| | Wheel (agx::Real radius, agx::RigidBody *rb, agx::AffineMatrix4x4 rbRelTransform) |
| | Construct wheel given radius, wheel body and transform defining wheel center, up and rotation axes in the rigid body frame. More...
|
| |
| template<typename T > |
| agx::ref_ptr< T > | attachConstraint (const agx::Name &name, agx::RigidBody *other, agx::Real wheelCenterOffset) |
| | Create constraint with this wheel and some other rigid body. More...
|
| |
| agx::Hinge * | attachHinge (const agx::Name &name, agx::RigidBody *other, agx::Real wheelCenterOffset) |
| | Specialized version of attachConstraint to create a hinge with this wheel body and other. More...
|
| |
| agx::Vec3 | getCenterPosition () const |
| |
| const char * | getClassName () const override |
| |
| agx::Constraint * | getConstraint () const |
| |
| agx::Constraint * | getConstraint (const agx::Name &name) const |
| |
| const ConstraintContainer & | getConstraints () const |
| |
| agx::Frame * | getLocalFrame () const |
| |
| agx::Real | getRadius () const |
| |
| agx::RigidBody * | getRigidBody () const |
| |
| agx::Vec3 | getRotationAxis () const |
| |
| agx::Plane | getRotationAxisPlane () const |
| |
| agxStream::StorageAgent * | getStorageAgent () const override |
| |
| agx::AffineMatrix4x4 | getTransform () const |
| |
| agx::Vec3 | getUpAxis () const |
| |
| virtual void | restore (agxStream::InputArchive &in) override |
| |
| virtual void | store (agxStream::OutputArchive &out) const override |
| |
| | Referenced () |
| | Default constructor. More...
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting. More...
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match. More...
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test. More...
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object. More...
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
|
| |
| virtual | ~Serializable () |
| | Destructor for normal C++ use but hidden from SWIG bindings. More...
|
| |
| bool | getEnableSerialization () const |
| |
| bool | getEnableUuidGeneration () |
| |
| agx::UInt32 | getIndex () const |
| | This index is given at creation of this object. More...
|
| |
| agx::Uuid | getUuid () const |
| |
| bool | isFinished () const |
| |
| void | setEnableSerialization (bool flag) |
| | Set to false to disable serialization of this object. More...
|
| |
| void | setFinished () |
| | Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
|
| |
| void | setUuid (const agx::Uuid &uuid) |
| | Explicitly set a Uuid on a serializable object. More...
|
| |
Abstraction of a wheel of arbitrary geometry.
The wheel has a well defined center, rotation axis and radius.
Definition at line 37 of file Wheel.h.
Construct wheel given radius, wheel body and frame defining wheel center, up and rotation axes in the rigid body frame.
Rotation axis is by definition the y axis in rbRelFrame (if given, otherwise y axis of rb).
Up axis is by definition the z axis in rbRelFrame (if given, otherwise z axis of rb).
- Parameters
-
| radius | - radius of the wheel |
| rb | - wheel body |
| rbRelFrame | - relative frame defining center and rotation axis of this wheel, given in rb frame. |
Construct wheel given radius, wheel body and transform defining wheel center, up and rotation axes in the rigid body frame.
Rotation axis is by definition the y axis in rbRelFrame (if given, otherwise y axis of rb).
Up axis is by definition the z axis in rbRelFrame (if given, otherwise z axis of rb).
- Parameters
-
| radius | - radius of the wheel |
| rb | - wheel body |
| rbRelTransform | - relative transform defining center and rotation axis of this wheel, given in rb frame. |
Create constraint with this wheel and some other rigid body.
The constraint axis will point along the rotation axis and it's possible to offset the center along that same axis.
The constraint is stored and accessible through the given name. The constraint will be added to the simulation when this wheel is used in an agxVehicle object.
- Parameters
-
| name | - name of the constraint |
| other | - other rigid body |
| wheelCenterOffset | - offset along the rotation axis (from center of this wheel) |
- Returns
- constraint with this wheel body as first and
other as second body in the constraint
Definition at line 181 of file Wheel.h.
References agx::RigidBody::getTransform(), and agx::AffineMatrix4x4T< T >::inverse().