19 #ifndef HPP_CORE_CONTINUOUS_VALIDATION_BODY_PAIR_COLLISION_HH 20 # define HPP_CORE_CONTINUOUS_VALIDATION_BODY_PAIR_COLLISION_HH 22 # include <boost/icl/continuous_interval.hpp> 23 # include <boost/icl/interval_set.hpp> 25 # include <hpp/fcl/collision_data.h> 32 namespace continuousValidation {
54 typedef std::pair<CollisionObjectConstPtr_t, CollisionObjectConstPtr_t>
CollisionPair_t;
73 const CollisionPairs_t&
pairs ()
const 87 return maximalVelocity_;
99 virtual std::string
name ()
const = 0;
100 virtual std::ostream&
print (std::ostream& os)
const = 0;
129 collisionRequest_(other.collisionRequest_),
130 maximalVelocity_(other.maximalVelocity_)
135 CollisionPair_t _pair)
const 143 CollisionPairs_t
pairs;
145 boost::shared_ptr<Model> m_;
157 virtual void setupPath();
172 virtual bool computeDistanceLowerBound(
value_type &distanceLowerBound,
181 return pair.
print (os);
186 #endif // HPP_CORE_CONTINUOUS_VALIDATION_BODY_PAIR_COLLISION_HH std::pair< CollisionObjectConstPtr_t, CollisionObjectConstPtr_t > CollisionPair_t
Definition: body-pair-collision.hh:54
boost::shared_ptr< ValidationReport > ValidationReportPtr_t
Definition: fwd.hh:206
void securityMargin(const value_type &securityMargin)
Set security margin.
Definition: body-pair-collision.hh:111
virtual std::ostream & print(std::ostream &os) const =0
value_type tolerance() const
Definition: interval-validation.hh:90
std::pair< value_type, value_type > interval_t
Definition: fwd.hh:158
virtual void addCollisionPair(const CollisionObjectConstPtr_t &, const CollisionObjectConstPtr_t &)
Definition: body-pair-collision.hh:96
::pinocchio::ModelTpl< value_type, 0, JointCollectionTpl > Model
pinocchio::size_type size_type
Definition: fwd.hh:156
virtual void setReport(ValidationReportPtr_t &report, fcl::CollisionResult result, CollisionPair_t _pair) const
Definition: body-pair-collision.hh:133
value_type securityMargin() const
Get security margin.
Definition: body-pair-collision.hh:106
CollisionPairs_t & pairs()
Definition: body-pair-collision.hh:79
BodyPairCollision(value_type tolerance)
Definition: body-pair-collision.hh:120
Definition: interval-validation.hh:57
virtual size_type indexJointA() const
Returns joint A index or -1 if no such joint exists.
Definition: body-pair-collision.hh:91
bool validateConfiguration(const value_type &t, interval_t &interval, ValidationReportPtr_t &report, const pinocchio::DeviceData &data)
pinocchio::vector_t vector_t
Definition: fwd.hh:201
pinocchio::value_type value_type
Definition: fwd.hh:157
std::vector< CollisionPair_t > CollisionPairs_t
Definition: body-pair-collision.hh:55
Definition: collision-validation-report.hh:35
virtual bool removeObjectTo_b(const CollisionObjectConstPtr_t &)
Definition: body-pair-collision.hh:95
value_type maximalVelocity() const
Definition: body-pair-collision.hh:85
Definition: body-pair-collision.hh:51
virtual std::string name() const =0
BodyPairCollision(const BodyPairCollision &other)
Copy constructor.
Definition: body-pair-collision.hh:127
const CollisionPairs_t & pairs() const
Definition: body-pair-collision.hh:73
virtual size_type indexJointB() const
Returns joint B index or -1 if no such joint exists.
Definition: body-pair-collision.hh:93
pinocchio::CollisionObjectConstPtr_t CollisionObjectConstPtr_t
Definition: fwd.hh:90
boost::shared_ptr< CollisionValidationReport > CollisionValidationReportPtr_t
Definition: fwd.hh:86
std::ostream & operator<<(std::ostream &os, const BodyPairCollision &pair)
Definition: body-pair-collision.hh:178