Public Member Functions | |
PhyJoint (PhyObject *parent, PhyObject *child) | |
Constructor. More... | |
virtual | ~PhyJoint () |
Destructor. More... | |
virtual wVector | centre () const =0 |
Return the centre of this joint in world coordinate. More... | |
virtual PhyObject * | child () |
Return the child object attached to this joint (see Newton Documentation) More... | |
virtual const PhyObject * | child () const |
Return the child object attached to this joint (see Newton Documentation) (const version) More... | |
virtual QVector< PhyDOF * > | dofs () |
Return descriptions of DOF. More... | |
void | enable (bool b) |
enable/disable the joint More... | |
virtual wVector | getForceOnJoint () const =0 |
Returns the force applied to this joint. More... | |
bool | isEnabled () const |
Return true if the joint is enabled. More... | |
virtual unsigned int | numDofs () const |
Return the number of DOF constrained by this joint. More... | |
virtual PhyObject * | parent () |
Return the parent object; (NULL means an object attached to static world; see Netwon Documentation) More... | |
virtual const PhyObject * | parent () const |
Return the parent object; (NULL means an object attached to static world; see Netwon Documentation) (const version) More... | |
virtual void | postUpdate () |
postUpdate the PhyJoint this method is called at each step of the world just after the physic update More... | |
virtual void | preUpdate () |
preUpdate the PhyJoint this method is called at each step of the world just before the physic update More... | |
virtual void | updateJointInfo ()=0 |
Update the Joint informations (each PhyDOF will be updated) More... | |
World * | world () |
Return the World. More... | |
const World * | world () const |
Return the World (const version) More... | |
Public Member Functions inherited from Ownable | |
Ownable () | |
Constructor. More... | |
virtual | ~Ownable () |
Destructor. More... | |
const QList< Owned > & | owned () const |
Returns the list of objects owned by this one. More... | |
Ownable * | owner () const |
Returns the owner of this object. More... | |
void | setOwner (Ownable *owner, bool destroy=true) |
Sets the owner of this object. More... | |
Protected Member Functions | |
virtual void | updateJoint (real timestep)=0 |
Protected Attributes | |
PhyObjectPrivate * | childpriv |
PhyObject * | childv |
child object More... | |
QVector< PhyDOF * > | dofsv |
vector of DOF's joint More... | |
int | dofv |
number of DOF More... | |
bool | enabled |
true if is enabled, false otherwise More... | |
PhyObjectPrivate * | parentpriv |
PhyObject * | parentv |
parent object More... | |
PhyJointPrivate * | priv |
Engine encapsulation. More... | |
WorldPrivate * | worldpriv |
World * | worldv |
world More... | |
Friends | |
class | PhyJointPrivate |
Additional Inherited Members | |
Public Types inherited from Ownable | |
typedef QList< Owned > | OwnedList |
The type for the list of owned objects. More... | |
Detailed Description
PhyJoint class.
\
- Motivation
- Common interface among Joints.
- Description
- This joint doesn't add constraints... so, it's a zero-DOF joint :-)
- Warnings
- Warnings
Definition at line 359 of file phyjoint.h.
Constructor & Destructor Documentation
Constructor.
- Parameters
-
parent is the parent object. The local frame is translated toward centre for create the complete local coordinate frame of this joint child is the child object
Definition at line 30 of file phyjoint.cpp.
References PhyJoint::child(), PhyJoint::childv, PhyJoint::enabled, PhyJoint::parent(), PhyJoint::parentv, PhyObject::priv, PhyJoint::priv, WObject::world(), and PhyJoint::worldv.
|
virtual |
Destructor.
Definition at line 52 of file phyjoint.cpp.
References PhyJoint::dofsv, PhyJoint::priv, and PhyJoint::worldv.
Member Function Documentation
|
pure virtual |
Return the centre of this joint in world coordinate.
Implemented in PhyHinge, PhySuspension, PhySlider, PhyFixed, and PhyBallAndSocket.
|
inlinevirtual |
Return the child object attached to this joint (see Newton Documentation)
Definition at line 371 of file phyjoint.h.
Referenced by PhyJoint::PhyJoint(), PhyBallAndSocket::updateJointInfo(), PhyFixed::updateJointInfo(), PhySlider::updateJointInfo(), PhySuspension::updateJointInfo(), PhyUniversal::updateJointInfo(), and PhyHinge::updateJointInfo().
|
inlinevirtual |
Return the child object attached to this joint (see Newton Documentation) (const version)
Definition at line 375 of file phyjoint.h.
|
inlinevirtual |
Return descriptions of DOF.
Definition at line 391 of file phyjoint.h.
Referenced by PhyMarXbot::enableAttachmentDevice(), MarXbotAttachmentDeviceMotorController::getDesiredPosition(), MarXbotAttachmentDeviceMotorController::getDesiredVelocity(), MarXbotAttachmentDeviceMotorController::getMaxVelocity(), MarXbotAttachmentDeviceMotorController::getPosition(), MarXbotAttachmentDeviceMotorController::getVelocity(), PhyEpuck::PhyEpuck(), PhyKhepera::PhyKhepera(), PhyMarXbot::PhyMarXbot(), MarXbotAttachmentDeviceMotorController::setDesiredPosition(), MarXbotAttachmentDeviceMotorController::setDesiredVelocity(), MarXbotAttachmentDeviceMotorController::setMaxVelocity(), and MarXbotAttachmentDeviceMotorController::update().
void enable | ( | bool | b | ) |
enable/disable the joint
Definition at line 63 of file phyjoint.cpp.
References PhyJoint::enabled.
Referenced by PhyMarXbot::doKinematicSimulation().
|
pure virtual |
Returns the force applied to this joint.
Implemented in PhyHinge, PhyUniversal, PhySuspension, PhySlider, PhyFixed, and PhyBallAndSocket.
Referenced by TractionSensorController::traction().
|
inline |
Return true if the joint is enabled.
Definition at line 397 of file phyjoint.h.
|
inlinevirtual |
Return the number of DOF constrained by this joint.
Definition at line 387 of file phyjoint.h.
|
inlinevirtual |
Return the parent object; (NULL means an object attached to static world; see Netwon Documentation)
Definition at line 379 of file phyjoint.h.
Referenced by PhyBallAndSocket::centre(), PhyFixed::centre(), PhySlider::centre(), PhySuspension::centre(), PhyUniversal::centre(), PhyHinge::centre(), PhyJoint::PhyJoint(), PhyBallAndSocket::updateJointInfo(), PhyFixed::updateJointInfo(), PhySlider::updateJointInfo(), PhySuspension::updateJointInfo(), PhyUniversal::updateJointInfo(), and PhyHinge::updateJointInfo().
|
inlinevirtual |
Return the parent object; (NULL means an object attached to static world; see Netwon Documentation) (const version)
Definition at line 383 of file phyjoint.h.
|
inlinevirtual |
postUpdate the PhyJoint this method is called at each step of the world just after the physic update
Definition at line 432 of file phyjoint.h.
|
inlinevirtual |
preUpdate the PhyJoint this method is called at each step of the world just before the physic update
Definition at line 425 of file phyjoint.h.
|
pure virtual |
Update the Joint informations (each PhyDOF will be updated)
Implemented in PhyHinge, PhyUniversal, PhySuspension, PhySlider, PhyFixed, and PhyBallAndSocket.
Referenced by PhyKhepera::changedMatrix(), PhyMarXbot::changedMatrix(), PhyEpuck::changedMatrix(), PhyEpuck::PhyEpuck(), PhyKhepera::PhyKhepera(), and PhyMarXbot::PhyMarXbot().
|
inline |
Return the World.
Definition at line 412 of file phyjoint.h.
Referenced by PhySlider::updateJointInfo(), PhySuspension::updateJointInfo(), and PhyHinge::updateJointInfo().
|
inline |
Return the World (const version)
Definition at line 417 of file phyjoint.h.
Member Data Documentation
|
protected |
|
protected |
vector of DOF's joint
Definition at line 434 of file phyjoint.h.
Referenced by PhyHinge::PhyHinge(), PhySlider::PhySlider(), PhySuspension::PhySuspension(), PhyUniversal::PhyUniversal(), PhySuspension::updateJointInfo(), PhyHinge::updateJointInfo(), and PhyJoint::~PhyJoint().
|
protected |
number of DOF
Definition at line 440 of file phyjoint.h.
Referenced by PhyBallAndSocket::PhyBallAndSocket(), PhyFixed::PhyFixed(), PhyHinge::PhyHinge(), PhySlider::PhySlider(), PhySuspension::PhySuspension(), and PhyUniversal::PhyUniversal().
|
protected |
true if is enabled, false otherwise
Definition at line 442 of file phyjoint.h.
Referenced by PhyJoint::enable(), PhyJoint::PhyJoint(), PhySlider::updateJointInfo(), PhySuspension::updateJointInfo(), and PhyHinge::updateJointInfo().
|
protected |
|
protected |
Engine encapsulation.
Definition at line 451 of file phyjoint.h.
Referenced by PhyBallAndSocket::createPrivateJoint(), PhyFixed::createPrivateJoint(), PhySlider::createPrivateJoint(), PhyUniversal::createPrivateJoint(), PhySuspension::createPrivateJoint(), PhyHinge::createPrivateJoint(), PhyJoint::PhyJoint(), PhySlider::updateJointInfo(), PhySuspension::updateJointInfo(), PhyHinge::updateJointInfo(), and PhyJoint::~PhyJoint().
|
protected |
world
Definition at line 448 of file phyjoint.h.
Referenced by PhyJoint::PhyJoint(), and PhyJoint::~PhyJoint().
The documentation for this class was generated from the following files:
- worldsim/include/phyjoint.h
- worldsim/src/phyjoint.cpp