54 const std::map<std::string, std::vector<CollisionSphere>>& link_body_decompositions =
55 std::map<std::string, std::vector<CollisionSphere>>(),
56 double size_x = DEFAULT_SIZE_X,
double size_y = DEFAULT_SIZE_Y,
double size_z = DEFAULT_SIZE_Z,
58 bool use_signed_distance_field = DEFAULT_USE_SIGNED_DISTANCE_FIELD,
59 double resolution = DEFAULT_RESOLUTION,
double collision_tolerance = DEFAULT_COLLISION_TOLERANCE,
60 double max_propogation_distance = DEFAULT_MAX_PROPOGATION_DISTANCE,
double padding = 0.0,
63 CollisionEnvHybrid(
const moveit::core::RobotModelConstPtr& robot_model,
const WorldPtr& world,
64 const std::map<std::string, std::vector<CollisionSphere>>& link_body_decompositions =
65 std::map<std::string, std::vector<CollisionSphere>>(),
66 double size_x = DEFAULT_SIZE_X,
double size_y = DEFAULT_SIZE_Y,
double size_z = DEFAULT_SIZE_Z,
68 bool use_signed_distance_field = DEFAULT_USE_SIGNED_DISTANCE_FIELD,
69 double resolution = DEFAULT_RESOLUTION,
double collision_tolerance = DEFAULT_COLLISION_TOLERANCE,
70 double max_propogation_distance = DEFAULT_MAX_PROPOGATION_DISTANCE,
double padding = 0.0,
80 double size_x,
double size_y,
double size_z,
bool use_signed_distance_field,
81 double resolution,
double collision_tolerance,
double max_propogation_distance)
84 Eigen::Vector3d(0, 0, 0), use_signed_distance_field, resolution, collision_tolerance,
85 max_propogation_distance);
94 GroupStateRepresentationPtr& gsr)
const;
103 GroupStateRepresentationPtr& gsr)
const;
120 GroupStateRepresentationPtr& gsr)
const;
133 GroupStateRepresentationPtr& gsr)
const;
135 void setWorld(
const WorldPtr& world)
override;
ROS/KDL based interface for the inverse kinematics of the PR2 arm.
Definition of a structure for the allowed collision matrix. All elements in the collision world are r...
FCL implementation of the CollisionEnv.
This hybrid collision environment combines FCL and a distance field. Both can be used to calculate co...
~CollisionEnvHybrid() override
void getAllCollisions(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state, const AllowedCollisionMatrix *acm, GroupStateRepresentationPtr &gsr) const
void getCollisionGradients(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state, const AllowedCollisionMatrix *acm, GroupStateRepresentationPtr &gsr) const
void checkRobotCollisionDistanceField(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state) const
void checkSelfCollisionDistanceField(const collision_detection::CollisionRequest &req, collision_detection::CollisionResult &res, const moveit::core::RobotState &state) const
void initializeRobotDistanceField(const std::map< std::string, std::vector< CollisionSphere >> &link_body_decompositions, double size_x, double size_y, double size_z, bool use_signed_distance_field, double resolution, double collision_tolerance, double max_propogation_distance)
CollisionEnvDistanceFieldPtr cenv_distance_
void setWorld(const WorldPtr &world) override
const CollisionEnvDistanceFieldConstPtr getCollisionWorldDistanceField() const
EIGEN_MAKE_ALIGNED_OPERATOR_NEW CollisionEnvHybrid(const moveit::core::RobotModelConstPtr &robot_model, const std::map< std::string, std::vector< CollisionSphere >> &link_body_decompositions=std::map< std::string, std::vector< CollisionSphere >>(), double size_x=DEFAULT_SIZE_X, double size_y=DEFAULT_SIZE_Y, double size_z=DEFAULT_SIZE_Z, const Eigen::Vector3d &origin=Eigen::Vector3d(0, 0, 0), bool use_signed_distance_field=DEFAULT_USE_SIGNED_DISTANCE_FIELD, double resolution=DEFAULT_RESOLUTION, double collision_tolerance=DEFAULT_COLLISION_TOLERANCE, double max_propogation_distance=DEFAULT_MAX_PROPOGATION_DISTANCE, double padding=0.0, double scale=1.0)
const CollisionEnvDistanceFieldConstPtr getCollisionRobotDistanceField() const
void checkCollisionDistanceField(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state) const
Representation of a robot's state. This includes position, velocity, acceleration and effort.
Vec3fX< details::Vec3Data< double > > Vector3d
Representation of a collision checking request.
Representation of a collision checking result.