RobWorkProject  23.9.11-
Public Member Functions | Public Attributes | List of all members
BodyContactSensor::ClassState Class Reference

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::StateCacheclone () const
 this creates a deep copy of this cache More...
 
- Public Member Functions inherited from StateCache
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

- Public Types inherited from StateCache
typedef rw::core::Ptr< StateCachePtr
 Smart pointer type.
 

Detailed Description

The state of the sensor.

Member Function Documentation

◆ clone()

rw::core::Ptr<rw::kinematics::StateCache> clone ( ) const
inlinevirtual

this creates a deep copy of this cache

Implements StateCache.

◆ size()

size_t size ( ) const
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.

Returns
An integer ID for the frame.

The number of doubles allocated by this StateCache in each State object.

Returns
The number of doubles allocated by the StateCache

Implements StateCache.


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