RigidBodyGeometry.h
45 RigidBodyGeometry(MotionModel mtype, CollisionChecker ctype) : mtype_(mtype), factor_(1.0), add_(0.0), ctype_(ctype)
109 const base::StateValidityCheckerPtr& allocStateValidityChecker(const base::SpaceInformationPtr &si, const GeometricStateExtractor &se, bool selfCollision);
133 {
void setBoundsAddition(double add)
The bounds of the environment are inferred based on the axis-aligned bounding box for the objects in ...
Definition: RigidBodyGeometry.h:148
RigidBodyGeometry(MotionModel mtype, CollisionChecker ctype)
Constructor expects a state space that can represent a rigid body.
Definition: RigidBodyGeometry.h:61
virtual void setStateValidityCheckerType(CollisionChecker ctype)
Change the type of collision checking for the rigid body.
Definition: RigidBodyGeometry.cpp:183
MotionModel
Specify whether bodies are moving in 2D or bodies moving in 3D.
Definition: GeometrySpecification.h:44
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
std::vector< std::shared_ptr< Assimp::Importer > > importerEnv_
Instance of assimp importer used to load environment.
Definition: RigidBodyGeometry.h:189
void setBoundsFactor(double factor)
The bounds of the environment are inferred based on the axis-aligned bounding box for the objects in ...
Definition: RigidBodyGeometry.h:133
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
std::vector< std::shared_ptr< Assimp::Importer > > importerRobot_
Instance of assimp importer used to load robot.
Definition: RigidBodyGeometry.h:192
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
double getBoundsAddition() const
Get the data set by setBoundsAddition()
Definition: RigidBodyGeometry.h:154
double getBoundsFactor() const
Get the data set by setBoundsFactor()
Definition: RigidBodyGeometry.h:139
void setMeshPath(const std::vector< boost::filesystem::path > &path)
set path to search for mesh files
Definition: RigidBodyGeometry.h:166
base::StateValidityCheckerPtr validitySvc_
Instance of the state validity checker for collision checking.
Definition: RigidBodyGeometry.h:198
GeometrySpecification geom_
Object containing mesh data for robot and environment.
Definition: RigidBodyGeometry.h:195
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
CollisionChecker ctype_
Value containing the type of collision checking to use.
Definition: RigidBodyGeometry.h:201
double factor_
The factor to multiply inferred environment bounds by (default 1)
Definition: RigidBodyGeometry.h:183
double add_
The value to add to inferred environment bounds (default 0)
Definition: RigidBodyGeometry.h:186
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:111