Go to the documentation of this file.
47 class CollisionEnvBullet :
public CollisionEnv
52 CollisionEnvBullet(
const moveit::core::RobotModelConstPtr& model,
double padding = 0.0,
double scale = 1.0);
54 CollisionEnvBullet(
const moveit::core::RobotModelConstPtr& model,
const WorldPtr& world,
double padding = 0.0,
67 const AllowedCollisionMatrix& acm)
const override;
73 const AllowedCollisionMatrix& acm)
const override;
87 void setWorld(
const WorldPtr& world)
override;
92 const collision_detection_bullet::BulletDiscreteBVHManagerPtr& manager)
const;
100 std::vector<collision_detection_bullet::CollisionObjectWrapperPtr>& cows)
const;
117 collision_detection_bullet::BulletDiscreteBVHManagerPtr
manager_{
122 collision_detection_bullet::BulletCastBVHManagerPtr
manager_CCD_{
140 std::vector<std::string>
active_;
void updateTransformsFromState(const moveit::core::RobotState &state, const collision_detection_bullet::BulletDiscreteBVHManagerPtr &manager) const
Updates the poses of the objects in the manager according to given robot state.
void checkRobotCollisionHelperCCD(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state1, const moveit::core::RobotState &state2, const AllowedCollisionMatrix *acm) const
CollisionEnvBullet()=delete
void setWorld(const WorldPtr &world) override
void checkSelfCollision(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state) const override
Check for robot self collision. Any collision between any pair of links is checked for,...
A bounding volume hierarchy (BVH) implementaiton of a discrete bullet manager.
void distanceSelf(const DistanceRequest &req, DistanceResult &res, const moveit::core::RobotState &state) const override
The distance to self-collision given the robot is at state state.
Representation of a robot's state. This includes position, velocity, acceleration and effort.
void updateManagedObject(const std::string &id)
Updates a managed collision object with its world representation.
Representation of a collision checking request.
void distanceRobot(const DistanceRequest &req, DistanceResult &res, const moveit::core::RobotState &state) const override
Compute the distance between a robot and the world.
std::mutex collision_env_mutex_
void checkSelfCollisionHelper(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state, const AllowedCollisionMatrix *acm) const
Bundles the different checkSelfCollision functions into a single function.
Definition of a structure for the allowed collision matrix.
void addLinkAsCollisionObject(const urdf::LinkSharedPtr &link)
Construts a bullet collision object out of a robot link.
Representation of a collision checking result.
void notifyObjectChange(const ObjectConstPtr &obj, World::Action action)
Callback function executed for each change to the world environment.
void checkRobotCollisionHelper(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state, const AllowedCollisionMatrix *acm) const
World::ObjectConstPtr ObjectConstPtr
void addAttachedOjects(const moveit::core::RobotState &state, std::vector< collision_detection_bullet::CollisionObjectWrapperPtr > &cows) const
All of the attached objects in the robot state are wrapped into bullet collision objects.
void updatedPaddingOrScaling(const std::vector< std::string > &links) override
Updates the collision objects saved in the manager to reflect a new padding or scaling of the robot l...
collision_detection_bullet::BulletCastBVHManagerPtr manager_CCD_
Handles continuous robot world collision checks.
void checkRobotCollision(const CollisionRequest &req, CollisionResult &res, const moveit::core::RobotState &state) const override
Check whether the robot model is in collision with the world. Any collisions between a robot link and...
~CollisionEnvBullet() override
Result of a distance request.
void addToManager(const World::Object *obj)
Adds a world object to the collision managers.
std::vector< std::string > active_
The active links where active refers to the group which can collide with everything.
A bounding volume hierarchy (BVH) implementation of a tesseract contact manager.
Representation of a distance-reporting request.
collision_detection_bullet::BulletDiscreteBVHManagerPtr manager_
Handles self collision checks.
World::ObserverHandle observer_handle_
moveit_core
Author(s): Ioan Sucan
, Sachin Chitta , Acorn Pooley
autogenerated on Thu Nov 21 2024 03:23:41