MBSim

Project Page
Public Member Functions | Private Attributes
MBSim::ContactKinematicsSphereRectangle Class Reference

pairing sphere to rectangle More...

#include <sphere_rectangle.h>

Inheritance diagram for MBSim::ContactKinematicsSphereRectangle:
MBSim::ContactKinematics

List of all members.

Public Member Functions

virtual void assignContours (const std::vector< Contour * > &contour)
 treats ordering of contours
virtual void updateg (fmatvec::Vec &g, ContourPointData *cpData, int index=0)
 compute normal distance, possible contact point positions and orientation (cf.
virtual void updatewb (fmatvec::Vec &wb, const fmatvec::Vec &g, ContourPointData *cpData)
 compute acceleration in terms of contour parameters for event driven integration

Private Attributes

int isphere
 contour index
int irectangle
Sphere * sphere
 contour classes
Rectangle * rectangle

Detailed Description

pairing sphere to rectangle

Author:
Kilian Grundl
Todo:

: edge problems not handled yet

: what about contact "below" rectangle


Member Function Documentation

virtual void MBSim::ContactKinematicsSphereRectangle::assignContours ( const std::vector< Contour * > &  contour) [virtual]

treats ordering of contours

Parameters:
contourvector

Implements MBSim::ContactKinematics.

virtual void MBSim::ContactKinematicsSphereRectangle::updateg ( fmatvec::Vec &  g,
ContourPointData *  cpData,
int  index = 0 
) [virtual]

compute normal distance, possible contact point positions and orientation (cf.

contact.cc)

Parameters:
gnormal distance
cpDatacontact point parametrisation
indexindex of the contact point that should be updated

Implements MBSim::ContactKinematics.

virtual void MBSim::ContactKinematicsSphereRectangle::updatewb ( fmatvec::Vec &  wb,
const fmatvec::Vec &  g,
ContourPointData *  cpData 
) [virtual]

compute acceleration in terms of contour parameters for event driven integration

Parameters:
accelerationin terms of contour parameters
normaldistance
contactpoint parametrisation

Implements MBSim::ContactKinematics.


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