18 #ifndef SHAPES_MANAGER_HPP_ 19 #define SHAPES_MANAGER_HPP_ 22 #include <unordered_map> 24 #include <visualization_msgs/MarkerArray.h> 31 std::unordered_map<std::string, PtrIMarkerShape_t>
shapes_;
35 typedef std::unordered_map<std::string, PtrIMarkerShape_t>::iterator
MapIter_t;
36 typedef std::unordered_map<std::string, PtrIMarkerShape_t>::const_iterator
MapConstIter_t;
83 uint32_t
count()
const;
89 uint32_t
count(
const std::string&
id)
const;
92 MapIter_t
begin() {
return this->shapes_.begin(); }
93 MapConstIter_t
begin()
const {
return this->shapes_.begin(); }
94 MapIter_t
end() {
return this->shapes_.end(); }
95 MapConstIter_t
end()
const {
return this->shapes_.end(); }
Class to manage fcl::Shapes and connect with RVIZ marker type.
MapConstIter_t end() const
std::shared_ptr< IMarkerShape > PtrIMarkerShape_t
void addShape(const std::string &id, PtrIMarkerShape_t s)
ShapesManager(const ros::Publisher &pub)
MapConstIter_t begin() const
std::unordered_map< std::string, PtrIMarkerShape_t >::iterator MapIter_t
std::unordered_map< std::string, PtrIMarkerShape_t > shapes_
std::unordered_map< std::string, PtrIMarkerShape_t >::const_iterator MapConstIter_t
void removeShape(const std::string &id)
const ros::Publisher & pub_
bool getShape(const std::string &id, PtrIMarkerShape_t &s)