Go to the documentation of this file.
41 #include <moveit_msgs/ObjectColor.h>
42 #include <moveit_msgs/CollisionObject.h>
43 #include <moveit_msgs/AttachedCollisionObject.h>
44 #include <moveit_msgs/PlanningScene.h>
52 class PlanningSceneInterface
61 explicit PlanningSceneInterface(
const std::string& ns =
"",
bool wait =
true,
bool persistent_connections =
false);
77 double maxz,
bool with_type, std::vector<std::string>& types);
83 double maxz,
bool with_type =
false)
85 std::vector<std::string> empty_vector_string;
90 std::map<std::string, geometry_msgs::Pose>
getObjectPoses(
const std::vector<std::string>& object_ids);
94 std::map<std::string, moveit_msgs::CollisionObject>
95 getObjects(
const std::vector<std::string>& object_ids = std::vector<std::string>());
99 std::map<std::string, moveit_msgs::AttachedCollisionObject>
100 getAttachedObjects(
const std::vector<std::string>& object_ids = std::vector<std::string>());
109 const std_msgs::ColorRGBA& object_color);
115 const std::vector<moveit_msgs::CollisionObject>& collision_objects,
116 const std::vector<moveit_msgs::ObjectColor>& object_colors = std::vector<moveit_msgs::ObjectColor>());
140 const std::vector<moveit_msgs::CollisionObject>& collision_objects,
141 const std::vector<moveit_msgs::ObjectColor>& object_colors = std::vector<moveit_msgs::ObjectColor>())
const;
bool applyAttachedCollisionObject(const moveit_msgs::AttachedCollisionObject &attached_collision_object)
Apply attached collision object to the planning scene of the move_group node synchronously....
bool clear()
Remove all the collision and attached objects from the world via the planning scene of the move_group...
bool applyAttachedCollisionObjects(const std::vector< moveit_msgs::AttachedCollisionObject > &attached_collision_objects)
Apply attached collision objects to the planning scene of the move_group node synchronously....
std::vector< std::string > getKnownObjectNames(bool with_type=false)
Get the names of all known objects in the world. If with_type is set to true, only return objects tha...
bool applyPlanningScene(const moveit_msgs::PlanningScene &ps)
Update the planning_scene of the move_group node with the given ps synchronously. Other PlanningScene...
std::map< std::string, geometry_msgs::Pose > getObjectPoses(const std::vector< std::string > &object_ids)
Get the poses from the objects identified by the given object ids list.
MOVEIT_CLASS_FORWARD(MoveGroupInterface)
PlanningSceneInterfaceImpl * impl_
~PlanningSceneInterface()
void removeCollisionObjects(const std::vector< std::string > &object_ids) const
Remove collision objects from the world via /planning_scene.
std::map< std::string, moveit_msgs::CollisionObject > getObjects(const std::vector< std::string > &object_ids=std::vector< std::string >())
Get the objects identified by the given object ids list. If no ids are provided, return all the known...
bool applyCollisionObjects(const std::vector< moveit_msgs::CollisionObject > &collision_objects, const std::vector< moveit_msgs::ObjectColor > &object_colors=std::vector< moveit_msgs::ObjectColor >())
Apply collision objects to the planning scene of the move_group node synchronously....
PlanningSceneInterface(const std::string &ns="", bool wait=true, bool persistent_connections=false)
std::map< std::string, moveit_msgs::AttachedCollisionObject > getAttachedObjects(const std::vector< std::string > &object_ids=std::vector< std::string >())
Get the attached objects identified by the given object ids list. If no ids are provided,...
bool applyCollisionObject(const moveit_msgs::CollisionObject &collision_object)
Apply collision object to the planning scene of the move_group node synchronously....
void addCollisionObjects(const std::vector< moveit_msgs::CollisionObject > &collision_objects, const std::vector< moveit_msgs::ObjectColor > &object_colors=std::vector< moveit_msgs::ObjectColor >()) const
Add collision objects to the world via /planning_scene. Make sure object.operation is set to object....
std::vector< std::string > getKnownObjectNamesInROI(double minx, double miny, double minz, double maxx, double maxy, double maxz, bool with_type, std::vector< std::string > &types)
Get the names of known objects in the world that are located within a bounding region (specified in t...
moveit_msgs::PlanningScene getPlanningSceneMsg(uint32_t components)
Get given components from move_group's PlanningScene.