RobWorkProject
23.9.11-
|
Container for data that is stored by a contact detector between contact detection calls. More...
#include <ContactDetectorData.hpp>
Public Types | |
typedef rw::core::Ptr< ContactDetectorData > | Ptr |
Smart pointer type. | |
Public Member Functions | |
ContactDetectorData () | |
Constructor. | |
ContactDetectorData (const ContactDetectorData &data) | |
Copy data to new container. | |
virtual | ~ContactDetectorData () |
Destructor. | |
ContactDetectorData & | operator= (const ContactDetectorData &data) |
Assign data from other container to this container. More... | |
void | clear () |
Remove all data. | |
ContactStrategyData & | getStrategyData (const ContactModel *modelA, const ContactModel *modelB) |
Get the stored ContactStrategyData for a specific pair of ContactModels. More... | |
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.
ContactStrategyData& getStrategyData | ( | const ContactModel * | modelA, |
const ContactModel * | modelB | ||
) |
Get the stored ContactStrategyData for a specific pair of ContactModels.
modelA | [in] the first ContactModel. |
modelB | [in] the second ContactModel. |
ContactDetectorData& operator= | ( | const ContactDetectorData & | data | ) |
Assign data from other container to this container.
data | [in] the data to copy. |