Inherits BaseContactDetector.
|
| ThreadedContactDetector (rw::core::Ptr< rwsim::dynamics::DynamicWorkCell > dwc, int threads=-1, rw::core::Ptr< rw::proximity::ProximityFilterStrategy > filter=NULL) |
|
virtual std::vector< Contact > | findContacts (const rw::kinematics::State &state) |
| Find contacts in workcell. More...
|
|
virtual std::vector< Contact > | findContacts (const rw::kinematics::State &state, ContactDetectorData &data) |
| Find contacts in workcell. More...
|
|
virtual std::vector< Contact > | findContacts (const rw::kinematics::State &state, ContactDetectorData &data, ContactDetectorTracking &tracking, rwsim::log::SimulatorLogScope *log=NULL) |
| Find contacts in workcell while tracking known contacts. More...
|
|
virtual std::vector< Contact > | updateContacts (const rw::kinematics::State &state, ContactDetectorData &data, ContactDetectorTracking &tracking, rwsim::log::SimulatorLogScope *log=NULL) |
| Updates previously found contacts. More...
|
|
| BaseContactDetector (rw::core::Ptr< rw::models::WorkCell > workcell, rw::proximity::ProximityFilterStrategy::Ptr filter=NULL) |
| Contact detector for a workcell. More...
|
|
virtual | ~BaseContactDetector () |
| Destruct contact detector. More...
|
|
void | setProximityFilterStrategy (rw::proximity::ProximityFilterStrategy::Ptr filter) |
| Set a new broad-phase filter. More...
|
|
virtual rw::proximity::ProximityFilterStrategy::Ptr | getProximityFilterStrategy () const |
| The broad-phase filter strategy used by the contact detector.
|
|
virtual double | getTimer () const |
| The number of seconds measured used in contact detection. More...
|
|
virtual void | setTimer (double value=0) |
| Set the value of a timer that will measure time used during contact detection. More...
|
|
◆ findContacts() [1/3]
Find contacts in workcell.
- Parameters
-
state | [in] The state for which to check for contacts. |
- Returns
- a vector of contacts, some might be subclasses of the Contact class.
Implements BaseContactDetector.
◆ findContacts() [2/3]
Find contacts in workcell.
Use of this function is encouraged if changes between consecutive calls are expected to be small. This will allow the detection algorithms to do certain speed-ups.
- Parameters
-
state | [in] The state for which to check for contacts. |
data | [in/out] Allows caching between contact detection calls, and makes it possible for detection algorithms to exploit spatial and temporal coherence. |
- Returns
- a vector of contacts, some might be subclasses of the Contact class.
Implements BaseContactDetector.
◆ findContacts() [3/3]
Find contacts in workcell while tracking known contacts.
- Parameters
-
state | [in] the state to find contacts for. |
data | [in/out] allows caching between contact detection calls, and makes it possible for detection algorithms to exploit spatial and temporal coherence. |
tracking | [in/out] the tracking data with information about known contacts. |
log | [in/out] (optional) store detailed logging information. |
- Returns
- a vector of new contacts.
Implements BaseContactDetector.
◆ updateContacts()
Updates previously found contacts.
- Parameters
-
state | [in] the new state to find the updated contacts for. |
data | [in/out] allows caching between contact detection calls, and makes it possible for detection algorithms to exploit spatial and temporal coherence. |
tracking | [in/out] the tracking data with information about known contacts. |
log | [in/out] (optional) store detailed logging information. |
- Returns
- a vector of contacts.
Implements BaseContactDetector.
The documentation for this class was generated from the following file:
- ThreadedContactDetector.hpp