![]() |
RobWorkProject
24.12.4-
|
The state of the sensor. More...
#include <BodyContactSensor.hpp>
Inherits StateCache.
Public Member Functions | |
size_t | size () const |
An integer ID for the StateCache. More... | |
rw::core::Ptr< rw::kinematics::StateCache > | clone () const |
this creates a deep copy of this cache More... | |
![]() | |
virtual | ~StateCache () |
destructor | |
Public Attributes | |
std::vector< rw::sensor::Contact3D > | _contactsTmp |
The contacts detected by the sensor (temporary). | |
std::vector< rw::sensor::Contact3D > | _contacts |
The contacts detected by the sensor. | |
std::vector< rw::core::Ptr< rwsim::dynamics::Body > > | _bodiesTmp |
The bodies in contact with the sensor (temporary). | |
std::vector< rw::core::Ptr< rwsim::dynamics::Body > > | _bodies |
The bodies in contact with the sensor (temporary). | |
Additional Inherited Members | |
![]() | |
typedef rw::core::Ptr< StateCache > | Ptr |
Smart pointer type. | |
The state of the sensor.
|
inlinevirtual |
this creates a deep copy of this cache
Implements StateCache.
|
inlinevirtual |
An integer ID for the StateCache.
IDs are assigned to the state data upon insertion State. StateCache that are not in a State have an ID of -1.
StateCache present in different trees may have identical IDs.
IDs are used for the efficient implementation of State. Normally, you should not make use of frame IDs yourself.
The number of doubles allocated by this StateCache in each State object.
Implements StateCache.