chrono::ChContactContainer::ReportContactCallback Class Referenceabstract

Description

Class to be used as a callback interface for some user defined action to be taken for each contact (already added to the container, maybe with already computed forces).

It can be used to report or post-process contacts.

#include <ChContactContainer.h>

Inheritance diagram for chrono::ChContactContainer::ReportContactCallback:

Public Member Functions

virtual bool OnReportContact (const ChVector3d &pA, const ChVector3d &pB, const ChMatrix33<> &plane_coord, double distance, double eff_radius, const ChVector3d &react_forces, const ChVector3d &react_torques, ChContactable *contactobjA, ChContactable *contactobjB, int constraint_offset)=0
 Callback used to report contact points already added to the container. More...
 

Member Function Documentation

◆ OnReportContact()

virtual bool chrono::ChContactContainer::ReportContactCallback::OnReportContact ( const ChVector3d pA,
const ChVector3d pB,
const ChMatrix33<> &  plane_coord,
double  distance,
double  eff_radius,
const ChVector3d react_forces,
const ChVector3d react_torques,
ChContactable contactobjA,
ChContactable contactobjB,
int  constraint_offset 
)
pure virtual

Callback used to report contact points already added to the container.

Returns false to stop contact scanning.

Parameters
pAcontact pA
pBcontact pB
plane_coordcontact frame (X direction is contact normal)
distancecontact distance
eff_radiuseffective radius of curvature at contact
react_forcesreact. forces (if already computed), expressed in 'plane_coord'
react_torquesreact. torques, if rolling friction (if already computed)
contactobjAfirst contactable object (may be nullptr)
contactobjBsecond contactable object (may be nullptr)
constraint_offsetNSC only: offset of first constraint (normal component)

The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/physics/ChContactContainer.h