RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
ContactDetectorData Class Reference

Container for data that is stored by a contact detector between contact detection calls. More...

#include <ContactDetectorData.hpp>

Public Types

typedef rw::core::Ptr< ContactDetectorDataPtr
 Smart pointer type.
 

Public Member Functions

 ContactDetectorData ()
 Constructor.
 
 ContactDetectorData (const ContactDetectorData &data)
 Copy data to new container.
 
virtual ~ContactDetectorData ()
 Destructor.
 
ContactDetectorDataoperator= (const ContactDetectorData &data)
 Assign data from other container to this container. More...
 
void clear ()
 Remove all data.
 
ContactStrategyDatagetStrategyData (const ContactModel *modelA, const ContactModel *modelB)
 Get the stored ContactStrategyData for a specific pair of ContactModels. More...
 

Detailed Description

Container for data that is stored by a contact detector between contact detection calls.

This will under normal circumstances be a collection of ContactStrategyData objects for the individual strategies used by the detector.

Keeping this data between consecutive calls to the contact detector will allow strategies to exploit spatial and temporal coherence to speed up algorithms.

Member Function Documentation

◆ getStrategyData()

ContactStrategyData& getStrategyData ( const ContactModel modelA,
const ContactModel modelB 
)

Get the stored ContactStrategyData for a specific pair of ContactModels.

Parameters
modelA[in] the first ContactModel.
modelB[in] the second ContactModel.
Returns
a reference to the ContactStrategyData.

◆ operator=()

ContactDetectorData& operator= ( const ContactDetectorData data)

Assign data from other container to this container.

Parameters
data[in] the data to copy.
Returns
reference to this container.

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