RobWorkProject
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
StateConstraint Class Referenceabstract

Interface for the checking for collisions for work cell states. More...

#include <StateConstraint.hpp>

Public Types

typedef rw::common::Ptr< StateConstraintPtr
 smart pointer type to this class
 
typedef rw::common::Ptr< const StateConstraintCPtr
 smart pointer type to this class
 

Public Member Functions

virtual void setLog (rw::common::Ptr< rw::common::Log > log)
 Set the log to be used for writing debug info. More...
 
bool inCollision (const rw::kinematics::State &state) const
 True if the work cell is considered to be in collision for the work cell state state.
 
virtual ~StateConstraint ()
 

Static Public Member Functions

static StateConstraint::Ptr make (rw::common::Ptr< rw::proximity::CollisionDetector > detector)
 Map a collision detector to a state constraint.
 
static StateConstraint::Ptr make (const std::vector< StateConstraint::Ptr > &constraints)
 Combine a set of state constraints into a single state constraint.
 

Protected Member Functions

virtual bool doInCollision (const rw::kinematics::State &state) const =0
 Subclass implementation of the inCollision() method.
 
virtual void doSetLog (rw::common::Ptr< rw::common::Log > log)=0
 Set a log. More...
 
 StateConstraint ()
 Constructor.
 

Detailed Description

Interface for the checking for collisions for work cell states.

Constructor & Destructor Documentation

◆ ~StateConstraint()

virtual ~StateConstraint ( )
inlinevirtual

Destructor

Member Function Documentation

◆ doSetLog()

virtual void doSetLog ( rw::common::Ptr< rw::common::Log log)
protectedpure virtual

Set a log.

Parameters
log[in] the log.

◆ setLog()

virtual void setLog ( rw::common::Ptr< rw::common::Log log)
virtual

Set the log to be used for writing debug info.

Parameters
log[in] Log to which debug information is to be written

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