Go to the documentation of this file.
44 #include <boost/function.hpp>
45 #include <Eigen/Geometry>
46 #include <eigen_stl_containers/eigen_stl_vector_container.h>
119 ObjectConstPtr
getObject(
const std::string& object_id)
const;
145 bool hasObject(
const std::string& object_id)
const;
155 const Eigen::Isometry3d&
getTransform(
const std::string& name)
const;
161 const Eigen::Isometry3d&
getTransform(
const std::string& name,
bool& frame_found)
const;
168 void addToObject(
const std::string& object_id,
const std::vector<shapes::ShapeConstPtr>&
shapes,
169 const EigenSTL::vector_Isometry3d& poses);
180 const Eigen::Isometry3d& pose);
183 bool moveObject(
const std::string& object_id,
const Eigen::Isometry3d& transform);
286 const Eigen::Isometry3d& pose);
ObserverHandle addObserver(const ObserverCallbackFn &callback)
register a callback function for notification of changes. callback will be called right after any cha...
EigenSTL::vector_Isometry3d shape_poses_
The poses of the corresponding entries in shapes_.
bool setSubframesOfObject(const std::string &object_id, const moveit::core::FixedTransformsMap &subframe_poses)
Set subframes on an object.
void notifyAll(Action action)
bool hasObject(const std::string &object_id) const
Check if a particular object exists in the collision world.
bool moveObject(const std::string &object_id, const Eigen::Isometry3d &transform)
Move all shapes in an object according to the given transform specified in world frame.
Object(const std::string &id)
MOVEIT_CLASS_FORWARD(AllowedCollisionMatrix)
bool removeShapeFromObject(const std::string &object_id, const shapes::ShapeConstPtr &shape)
Remove shape from object. Shape equality is verified by comparing pointers. Ownership of the object i...
std::vector< Observer * > observers_
All registered observers of this world representation.
const_iterator find(const std::string &id) const
bool moveShapeInObject(const std::string &object_id, const shapes::ShapeConstPtr &shape, const Eigen::Isometry3d &pose)
Update the pose of a shape in an object. Shape equality is verified by comparing pointers....
void addToObject(const std::string &object_id, const std::vector< shapes::ShapeConstPtr > &shapes, const EigenSTL::vector_Isometry3d &poses)
Add shapes to an object in the map. This function makes repeated calls to addToObjectInternal() to ad...
std::vector< shapes::ShapeConstPtr > shapes_
All the shapes making up this object.
const Observer * observer_
ObserverCallbackFn callback_
ROS/KDL based interface for the inverse kinematics of the PR2 arm.
Maintain a representation of the environment.
Represents an action that occurred on an object in the world. Several bits may be set indicating seve...
MOVEIT_CLASS_FORWARD(Shape)
MOVEIT_STRUCT_FORWARD(Object)
const_iterator begin() const
void notifyObserverAllObjects(const ObserverHandle observer_handle, Action action) const
const_iterator end() const
void removeObserver(const ObserverHandle observer_handle)
remove a notifier callback
ObserverHandle(const Observer *o)
ObjectConstPtr getObject(const std::string &object_id) const
Get a particular object.
boost::function< void(const ObjectConstPtr &, Action)> ObserverCallbackFn
moveit::core::FixedTransformsMap subframe_poses_
Transforms to subframes on the object. Use them to define points of interest on an object to plan wit...
bool knowsTransform(const std::string &name) const
Check if an object or subframe with given name exists in the collision world. A subframe name needs t...
virtual void addToObjectInternal(const ObjectPtr &obj, const shapes::ShapeConstPtr &shape, const Eigen::Isometry3d &pose)
EIGEN_MAKE_ALIGNED_OPERATOR_NEW std::string id_
The id for this object.
std::map< std::string, Eigen::Isometry3d, std::less< std::string >, Eigen::aligned_allocator< std::pair< const std::string, Eigen::Isometry3d > > > FixedTransformsMap
Map frame names to the transformation matrix that can transform objects from the frame name to the pl...
void notify(const ObjectConstPtr &, Action)
std::map< std::string, ObjectPtr >::const_iterator const_iterator
std::map< std::string, ObjectPtr > objects_
A representation of an object.
void ensureUnique(ObjectPtr &obj)
Make sure that the object named id is known only to this instance of the World. If the object is know...
std::shared_ptr< const Shape > ShapeConstPtr
const Eigen::Isometry3d & getTransform(const std::string &name) const
Get the transform to an object or subframe with given name. If name does not exist,...
bool removeObject(const std::string &object_id)
Remove a particular object. If there are no external pointers to the corresponding instance of Object...
Observer(const ObserverCallbackFn &callback)
void clearObjects()
Clear all objects. If there are no other pointers to corresponding instances of Objects,...
std::vector< std::string > getObjectIds() const
Get the list of Object ids.
moveit_core
Author(s): Ioan Sucan
, Sachin Chitta , Acorn Pooley
autogenerated on Sat Dec 12 2020 03:25:45