Collision Checker
boost_helpers.h
Go to the documentation of this file.
1 #ifndef CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_BOOST_BOOST_HELPERS_H_
2 #define CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_BOOST_BOOST_HELPERS_H_
3 
6 
7 namespace collision {
8 namespace solvers {
9 namespace solverBoost {
11  const CollisionObject *obj) {
12  const CollisionObjectEx *obj_ex = static_cast<const CollisionObjectEx *>(obj);
13  if (!obj_ex) return nullptr;
14  SolverEntity_Boost *boost_entity;
15  obj_ex->getSolverEntity(boost_entity);
16 
17  if (boost_entity && boost_entity->getBoostEntityType() ==
19  return static_cast<const BoostCollisionObject *>(boost_entity);
20  } else
21  return nullptr;
22 }
23 } // namespace solverBoost
24 } // namespace solvers
25 
26 } // namespace collision
27 
28 #endif /* CPP_COLLISION_INCLUDE_COLLISION_SOLVERS_BOOST_BOOST_HELPERS_H_ */
const BoostCollisionObject * get_boost_object_ptr(const CollisionObject *obj)
Definition: boost_helpers.h:10
virtual int getSolverEntity(solvers::solverFCL::SolverEntity_FCL *&ptr) const
Base class for CollisionObjects and some of their groups.
Provides functionality to use different collision solvers.
virtual BOOST_COLLISION_ENTITY_TYPE getBoostEntityType(void) const