Constraint::Ball Class Reference

#include <Constraint.h>

Inheritance diagram for Constraint::Ball:

Constraint PIMPLHandle

List of all members.


Detailed Description

Three constraint equations.

This constraint enforces coincident location between a point on one body and a point on another body.

The constraint is enforced by an internal (non-working) force applied at the spatial location of the point on body 2, on material points of each body that are coincident with that spatial location. Note that this is somewhat asymmetric when the ball is not properly assembled -- it acts as though the contact occurs at the point on body 2, *not* at the point on body 1.

The assembly condition is the same as the runtime constraint -- the two points can be brought together by driving the perr to zero.

Public Member Functions

 Ball (MobilizedBody &body1, MobilizedBody &body2)
 Ball (MobilizedBody &body1, const Vec3 &defaultPoint1, MobilizedBody &body2, const Vec3 &defaultPoint2)
BallsetDefaultPointOnBody1 (const Vec3 &)
BallsetDefaultPointOnBody2 (const Vec3 &)
BallsetDefaultRadius (Real r)
Real getDefaultRadius () const
MobilizedBodyIndex getBody1MobilizedBodyIndex () const
MobilizedBodyIndex getBody2MobilizedBodyIndex () const
const Vec3getDefaultPointOnBody1 () const
const Vec3getDefaultPointOnBody2 () const
const Vec3getPointOnBody1 (const State &) const
const Vec3getPointOnBody2 (const State &) const
Vec3 getPositionErrors (const State &) const
Vec3 getVelocityErrors (const State &) const
Vec3 getAccelerationErrors (const State &) const
Vec3 getMultipliers (const State &) const
const Vec3getBallReactionForceOnBody1 (const State &) const
const Vec3getBallReactionForceOnBody2 (const State &) const
 SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS (Ball, BallImpl, Constraint)


Constructor & Destructor Documentation

Ball ( MobilizedBody body1,
MobilizedBody body2 
)

Ball ( MobilizedBody body1,
const Vec3 defaultPoint1,
MobilizedBody body2,
const Vec3 defaultPoint2 
)


Member Function Documentation

Ball& setDefaultPointOnBody1 ( const Vec3  ) 

Ball& setDefaultPointOnBody2 ( const Vec3  ) 

Ball& setDefaultRadius ( Real  r  ) 

Real getDefaultRadius (  )  const

MobilizedBodyIndex getBody1MobilizedBodyIndex (  )  const

MobilizedBodyIndex getBody2MobilizedBodyIndex (  )  const

const Vec3& getDefaultPointOnBody1 (  )  const

const Vec3& getDefaultPointOnBody2 (  )  const

const Vec3& getPointOnBody1 ( const State  )  const

const Vec3& getPointOnBody2 ( const State  )  const

Vec3 getPositionErrors ( const State  )  const

Vec3 getVelocityErrors ( const State  )  const

Vec3 getAccelerationErrors ( const State  )  const

Vec3 getMultipliers ( const State  )  const

const Vec3& getBallReactionForceOnBody1 ( const State  )  const

const Vec3& getBallReactionForceOnBody2 ( const State  )  const

SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS ( Ball  ,
BallImpl  ,
Constraint   
)


The documentation for this class was generated from the following file:

Generated on Fri Sep 26 07:44:31 2008 for SimTKcore by  doxygen 1.5.6