RigidBodyGeometry.cpp
108 OMPL_ERROR("There is no mesh specified in the indicated environment resource: %s", env.c_str());
147 const ompl::app::GeometrySpecification& ompl::app::RigidBodyGeometry::getGeometrySpecification() const
197 const ompl::base::StateValidityCheckerPtr& ompl::app::RigidBodyGeometry::allocStateValidityChecker(const base::SpaceInformationPtr &si, const GeometricStateExtractor &se, bool selfCollision)
209 validitySvc_ = std::make_shared<PQPStateValidityChecker<Motion_2D>>(si, geom, se, selfCollision);
211 validitySvc_ = std::make_shared<PQPStateValidityChecker<Motion_3D>>(si, geom, se, selfCollision);
216 validitySvc_ = std::make_shared<FCLStateValidityChecker<Motion_2D>>(si, geom, se, selfCollision);
virtual void setStateValidityCheckerType(CollisionChecker ctype)
Change the type of collision checking for the rigid body.
Definition: RigidBodyGeometry.cpp:183
A shared pointer wrapper for ompl::base::StateValidityChecker.
virtual bool setRobotMesh(const std::string &robot)
This function specifies the name of the CAD file representing the robot (robot). Returns 1 on success...
Definition: RigidBodyGeometry.cpp:35
virtual bool setEnvironmentMesh(const std::string &env)
This function specifies the name of the CAD file representing the environment (env)....
Definition: RigidBodyGeometry.cpp:80
virtual bool addRobotMesh(const std::string &robot)
This function specifies the name of the CAD file representing a part of the robot (robot)....
Definition: RigidBodyGeometry.cpp:42
CollisionChecker
Enumeration of the possible collision checker types.
Definition: RigidBodyGeometry.h:50
std::vector< boost::filesystem::path > meshPath_
Paths to search for mesh files if mesh file names do not correspond to absolute paths.
Definition: RigidBodyGeometry.h:205
aiVector3D getRobotCenter(unsigned int robotIndex) const
Get the robot's center (average of all the vertices of all its parts)
Definition: RigidBodyGeometry.cpp:173
virtual bool addEnvironmentMesh(const std::string &env)
This function specifies the name of the CAD file representing a part of the environment (env)....
Definition: RigidBodyGeometry.cpp:87
const base::StateValidityCheckerPtr & allocStateValidityChecker(const base::SpaceInformationPtr &si, const GeometricStateExtractor &se, bool selfCollision)
Allocate default state validity checker using FCL.
Definition: RigidBodyGeometry.cpp:197
boost::filesystem::path findMeshFile(const std::string &fname)
return absolute path to mesh file if it exists and an empty path otherwise
Definition: RigidBodyGeometry.cpp:19
base::RealVectorBounds inferEnvironmentBounds() const
Given the representation of an environment, infer its bounds. The bounds will be 2-dimensional when p...
Definition: RigidBodyGeometry.cpp:127
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:111