![]() |
RobWorkProject
25.2.11-
|
a simple rule based broadphase filter strategy. A static frame pair list of frame pairs that is to be checked for collision is maintained. The list is static in the sense that it is not optimized to be changed. However the user can both add and remove new geometries and rules. More...
#include <BasicFilterStrategy.hpp>
Inherits ProximityFilterStrategy.
Public Types | |
typedef rw::core::Ptr< BasicFilterStrategy > | Ptr |
smart pointer type to this class | |
typedef rw::core::Ptr< const BasicFilterStrategy > | CPtr |
smart pointer type to this const class | |
![]() | |
typedef rw::core::Ptr< ProximityFilterStrategy > | Ptr |
smart pointer type to this class | |
typedef rw::core::Ptr< const ProximityFilterStrategy > | CPtr |
smart pointer type to this const class | |
Public Member Functions | |
BasicFilterStrategy (rw::core::Ptr< rw::models::WorkCell > workcell) | |
constructor - the ProximitySetup will be extracted from the workcell description if possible. More... | |
BasicFilterStrategy (rw::core::Ptr< rw::models::WorkCell > workcell, const rw::proximity::ProximitySetup &setup) | |
constructor - constructs frame pairs based on the setup More... | |
virtual | ~BasicFilterStrategy () |
destructor | |
virtual void | reset (const rw::kinematics::State &state) |
Reset. More... | |
virtual rw::core::Ptr< rw::proximity::ProximityCache > | createProximityCache () |
creates a FilterData object. This is used for caching relavant data between calls to update More... | |
virtual rw::core::Ptr< rw::proximity::ProximityFilter > | update (const rw::kinematics::State &state) |
Do an update. More... | |
virtual rw::core::Ptr< rw::proximity::ProximityFilter > | update (const rw::kinematics::State &state, rw::core::Ptr< rw::proximity::ProximityCache > data) |
creates a FilterData object. This is used for caching relavant data between calls to update More... | |
rw::proximity::ProximitySetup & | getProximitySetup () |
get the proximity setup that describe the include/exclude rules of this BroadPhaseStrategy More... | |
virtual void | addGeometry (rw::core::Ptr< rw::kinematics::Frame > frame, const rw::core::Ptr< rw::geometry::Geometry >) |
Adds geometry associated to frame. More... | |
virtual void | removeGeometry (rw::core::Ptr< rw::kinematics::Frame > frame, const rw::core::Ptr< rw::geometry::Geometry >) |
Removes the geometric model geo associated with Frame frame from this strategy. More... | |
virtual void | removeGeometry (rw::core::Ptr< rw::kinematics::Frame > frame, const std::string &geometryId) |
Removes the geometric model geo associated with Frame frame from this strategy. More... | |
virtual void | addRule (const rw::proximity::ProximitySetupRule &rule) |
Adds a ProximitySetupRule. More... | |
virtual void | removeRule (const rw::proximity::ProximitySetupRule &rule) |
Removes a ProximitySetupRule If the rule cannot be found, then noting happens. More... | |
![]() | |
virtual | ~ProximityFilterStrategy () |
Destructor. | |
a simple rule based broadphase filter strategy. A static frame pair list of frame pairs that is to be checked for collision is maintained. The list is static in the sense that it is not optimized to be changed. However the user can both add and remove new geometries and rules.
BasicFilterStrategy | ( | rw::core::Ptr< rw::models::WorkCell > | workcell | ) |
constructor - the ProximitySetup will be extracted from the workcell description if possible.
workcell | [in] the workcell. |
BasicFilterStrategy | ( | rw::core::Ptr< rw::models::WorkCell > | workcell, |
const rw::proximity::ProximitySetup & | setup | ||
) |
constructor - constructs frame pairs based on the setup
workcell | [in] the workcell |
setup | [in] the ProximitySetup describing exclude/include relations |
|
virtual |
Adds geometry associated to frame.
frame | [in] Frame which has the geometry associated |
Implements ProximityFilterStrategy.
|
virtual |
|
inlinevirtual |
creates a FilterData object. This is used for caching relavant data between calls to update
Implements ProximityFilterStrategy.
|
virtual |
get the proximity setup that describe the include/exclude rules of this BroadPhaseStrategy
Implements ProximityFilterStrategy.
|
virtual |
Removes the geometric model geo associated with Frame frame from this strategy.
frame | [in] Frame which has the geometry associated |
Implements ProximityFilterStrategy.
|
virtual |
Removes the geometric model geo associated with Frame frame from this strategy.
frame | [in] Frame which has the geometry associated |
geometryId | [in] Geometry |
Implements ProximityFilterStrategy.
|
virtual |
Removes a ProximitySetupRule If the rule cannot be found, then noting happens.
rule | [in] the rule to remove. |
Implements ProximityFilterStrategy.
|
virtual |
|
virtual |
|
virtual |
creates a FilterData object. This is used for caching relavant data between calls to update
Implements ProximityFilterStrategy.