|
bitsim
Model, simulate, estimate and control robots in C++
|
Counts the contacts that touch any of a set of bodies, such as the obstacles a robot should not hit. More...
#include <contact_counter.h>


Public Member Functions | |
| ContactCounter (std::vector< std::shared_ptr< chrono::ChBody > > bodies) | |
| uint_t | count (chrono::ChSystem &system) |
| The contacts of the system that touch one of the bodies now. | |
| bool | OnReportContact (const chrono::ChVector3d &, const chrono::ChVector3d &, const chrono::ChMatrix33<> &, double distance, double, const chrono::ChVector3d &, const chrono::ChVector3d &, chrono::ChContactable *a, chrono::ChContactable *b, int) override |
Counts the contacts that touch any of a set of bodies, such as the obstacles a robot should not hit.
Call count() after each step of the system: it asks the system for its contacts and returns how many of them touch one of the bodies and are in contact, with the bodies overlapping.
|
explicit |
| uint_t bitsim::rb::bitsim_chrono::ContactCounter::count | ( | chrono::ChSystem & | system | ) |
The contacts of the system that touch one of the bodies now.
|
override |