Robowflex  v0.1
Making MoveIt Easy
robowflex::darts::DistanceCollisionWrapper Class Reference

A wrapper for the ACM to pass into signed distance computation. Returns based on if the objects would collide. More...

#include <world.h>

+ Inheritance diagram for robowflex::darts::DistanceCollisionWrapper:

Public Member Functions

 DistanceCollisionWrapper (const std::shared_ptr< dart::collision::CollisionFilter > &filter)
 Constructor. More...
 
bool needDistance (const dart::collision::CollisionObject *object1, const dart::collision::CollisionObject *object2) const override
 

Private Attributes

std::shared_ptr< dart::collision::CollisionFilter > filter_
 Wrapped collision filter. More...
 

Detailed Description

A wrapper for the ACM to pass into signed distance computation. Returns based on if the objects would collide.

Definition at line 28 of file world.h.

Constructor & Destructor Documentation

◆ DistanceCollisionWrapper()

DistanceCollisionWrapper::DistanceCollisionWrapper ( const std::shared_ptr< dart::collision::CollisionFilter > &  filter)

Constructor.

Parameters
[in]filterCollision filter to wrap.

DistanceCollisionWrapper

Definition at line 20 of file world.cpp.

22  : filter_(filter)
23 {
24 }
std::shared_ptr< dart::collision::CollisionFilter > filter_
Wrapped collision filter.
Definition: world.h:40

Member Function Documentation

◆ needDistance()

bool DistanceCollisionWrapper::needDistance ( const dart::collision::CollisionObject *  object1,
const dart::collision::CollisionObject *  object2 
) const
override

Definition at line 26 of file world.cpp.

28 {
29  return not filter_->ignoresCollision(object1, object2);
30 }

Member Data Documentation

◆ filter_

std::shared_ptr<dart::collision::CollisionFilter> robowflex::darts::DistanceCollisionWrapper::filter_
private

Wrapped collision filter.

Definition at line 40 of file world.h.


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