RigidBodyGeometry.h
44 RigidBodyGeometry(MotionModel mtype, CollisionChecker ctype) : mtype_(mtype), factor_(1.0), add_(0.0), ctype_(ctype)
46 }
108 const base::StateValidityCheckerPtr& allocStateValidityChecker(const base::SpaceInformationPtr &si, const GeometricStateExtractor &se, bool selfCollision);
177 }
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:144
RigidBodyGeometry(MotionModel mtype, CollisionChecker ctype)
Constructor expects a state space that can represent a rigid body.
Definition: RigidBodyGeometry.h:57
virtual void setStateValidityCheckerType(CollisionChecker ctype)
Change the type of collision checking for the rigid body.
Definition: RigidBodyGeometry.cpp:160
MotionModel
Specify whether bodies are moving in 2D or bodies moving in 3D.
Definition: GeometrySpecification.h:41
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:18
virtual bool setEnvironmentMesh(const std::string &env)
This function specifies the name of the CAD file representing the environment (env)....
Definition: RigidBodyGeometry.cpp:60
std::vector< std::shared_ptr< Assimp::Importer > > importerEnv_
Instance of assimp importer used to load environment.
Definition: RigidBodyGeometry.h:174
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:129
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:25
CollisionChecker
Enumeration of the possible collision checker types.
Definition: RigidBodyGeometry.h:46
aiVector3D getRobotCenter(unsigned int robotIndex) const
Get the robot's center (average of all the vertices of all its parts)
Definition: RigidBodyGeometry.cpp:150
std::vector< std::shared_ptr< Assimp::Importer > > importerRobot_
Instance of assimp importer used to load robot.
Definition: RigidBodyGeometry.h:177
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:67
double getBoundsAddition() const
Get the data set by setBoundsAddition()
Definition: RigidBodyGeometry.h:150
double getBoundsFactor() const
Get the data set by setBoundsFactor()
Definition: RigidBodyGeometry.h:135
base::StateValidityCheckerPtr validitySvc_
Instance of the state validity checker for collision checking.
Definition: RigidBodyGeometry.h:183
GeometrySpecification geom_
Object containing mesh data for robot and environment.
Definition: RigidBodyGeometry.h:180
const base::StateValidityCheckerPtr & allocStateValidityChecker(const base::SpaceInformationPtr &si, const GeometricStateExtractor &se, bool selfCollision)
Allocate default state validity checker using FCL.
Definition: RigidBodyGeometry.cpp:174
base::RealVectorBounds inferEnvironmentBounds() const
Given the representation of an environment, infer its bounds. The bounds will be 2-dimensional when p...
Definition: RigidBodyGeometry.cpp:104
CollisionChecker ctype_
Value containing the type of collision checking to use.
Definition: RigidBodyGeometry.h:186
double factor_
The factor to multiply inferred environment bounds by (default 1)
Definition: RigidBodyGeometry.h:168
double add_
The value to add to inferred environment bounds (default 0)
Definition: RigidBodyGeometry.h:171
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:108