1#ifndef BITSIM_RIGID_BODIES_CHRONO_ROBOTS_CONTACT_COUNTER_H
2#define BITSIM_RIGID_BODIES_CHRONO_ROBOTS_CONTACT_COUNTER_H
4#include "bitsim/bitsim_config.h"
10#include <chrono/physics/ChBody.h>
11#include <chrono/physics/ChContactContainer.h>
12#include <chrono/physics/ChSystem.h>
31class ContactCounter :
public chrono::ChContactContainer::ReportContactCallback
34 explicit ContactCounter(std::vector<std::shared_ptr<chrono::ChBody>> bodies);
41 bool OnReportContact(
const chrono::ChVector3d &,
const chrono::ChVector3d &,
42 const chrono::ChMatrix33<> &,
double distance,
double,
43 const chrono::ChVector3d &,
const chrono::ChVector3d &,
44 chrono::ChContactable *a, chrono::ChContactable *b,
int)
override;
47 bool is_watched_(
const chrono::ChContactable *c)
const;
49 std::vector<std::shared_ptr<chrono::ChBody>> bodies_;
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
Definition chrono_robot_pose.h:11
Definition dc_motor_backend_base.h:9
std::size_t uint_t
uint_t
Definition bitsim_types.h:40