Computational Embodied Neuroscience Simulator  1.1
3D simulation library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | List of all members
cens::CENSTouchSensor Struct Reference

#include <cens_physics.h>

Inheritance diagram for cens::CENSTouchSensor:
Inheritance graph
Collaboration diagram for cens::CENSTouchSensor:
Collaboration graph

Public Member Functions

 CENSTouchSensor (btRigidBody &tgtBody, CENSNonCollidingTable &_table)
bool isTouched ()
btScalar getPressure ()
virtual bool needsCollision (btBroadphaseProxy *proxy) const
virtual btScalar addSingleResult (btManifoldPoint &cp, const btCollisionObjectWrapper *colObj0, int partId0, int index0, const btCollisionObjectWrapper *colObj1, int partId1, int index1)
 Called with each contact for your own processing. More...

Public Attributes

btRigidBody & body
 The body the sensor is monitoring. More...
 non-colliding table More...
bool touched
 touched by another body More...
std::vector< btVector3 > position
 touch positions in the body space More...
std::vector< btScalar > pressures
 touch pressures More...

Detailed Description

Information about touch linked on a btRigidBody

Definition at line 86 of file cens_physics.h.

Constructor & Destructor Documentation

cens::CENSTouchSensor::CENSTouchSensor ( btRigidBody &  tgtBody,
CENSNonCollidingTable _table 

Definition at line 90 of file cens_physics.h.

Member Function Documentation

virtual btScalar cens::CENSTouchSensor::addSingleResult ( btManifoldPoint &  cp,
const btCollisionObjectWrapper *  colObj0,
int  partId0,
int  index0,
const btCollisionObjectWrapper *  colObj1,
int  partId1,
int  index1 

Called with each contact for your own processing.

Definition at line 150 of file cens_physics.h.

btScalar cens::CENSTouchSensor::getPressure ( )

Definition at line 108 of file cens_physics.h.

bool cens::CENSTouchSensor::isTouched ( )

Definition at line 99 of file cens_physics.h.

virtual bool cens::CENSTouchSensor::needsCollision ( btBroadphaseProxy *  proxy) const

Definition at line 119 of file cens_physics.h.

Member Data Documentation

btRigidBody& cens::CENSTouchSensor::body

The body the sensor is monitoring.

Definition at line 93 of file cens_physics.h.

Referenced by cens::CENSPhysics::cens_physics_step().

std::vector<btVector3> cens::CENSTouchSensor::position

touch positions in the body space

Definition at line 96 of file cens_physics.h.

std::vector<btScalar> cens::CENSTouchSensor::pressures

touch pressures

Definition at line 97 of file cens_physics.h.

CENSNonCollidingTable& cens::CENSTouchSensor::table

non-colliding table

Definition at line 94 of file cens_physics.h.

bool cens::CENSTouchSensor::touched

touched by another body

Definition at line 95 of file cens_physics.h.

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