33 #include <maps/GridMap.h> 35 namespace viros {
namespace topomap {
45 MapAttribute() : optional(false), planner(false), localization(false) {}
47 channel(iChannel), optional(false), planner(false), localization(false) {}
50 return boost::make_shared<MapAttribute>();
54 return boost::make_shared<MapAttribute>(iChannel);
57 template<
typename Reflector>
61 r.member(
"channel",channel,
"");
62 r.member(
"optional",optional,
"");
63 r.member(
"planner",planner,
"");
64 r.member(
"localization",localization,
"");
82 return boost::make_shared<RegionAttribute>(r);
85 template<
typename Reflector>
89 r.member(
"rect",rect,
"");
104 return boost::make_shared<CostMapAttribute>(costmap);
107 template<
typename Reflector>
111 r.member(
"CostMap",costmap,
"");
void reflect(Reflector &r)
Definition: MapAttributes.h:58
void reflect(Reflector &r)
Definition: MapAttributes.h:86
std::string channel
Definition: MapAttributes.h:67
#define MIRA_REFLECT_BASE(reflector, BaseClass)
bool optional
Definition: MapAttributes.h:68
boost::shared_ptr< CostMapAttribute > CostMapAttributePtr
Definition: TopoMapFwd.h:78
void reflect(Reflector &r)
Definition: MapAttributes.h:108
CostMapAttribute()
Definition: MapAttributes.h:100
RegionAttribute(const Rect2i &r)
Definition: MapAttributes.h:79
Definition: Attribute.h:37
Definition: MapAttributes.h:40
static MapAttributePtr create()
Definition: MapAttributes.h:49
static MapAttributePtr create(const std::string &iChannel)
Definition: MapAttributes.h:53
static CostMapAttributePtr create(const Stamped< maps::GridMap< double >> &costmap)
Definition: MapAttributes.h:103
boost::shared_ptr< RegionAttribute > RegionAttributePtr
Definition: TopoMapFwd.h:77
MapAttribute()
Definition: MapAttributes.h:45
Definition: MapAttributes.h:95
Stamped< maps::GridMap< double > > costmap
Definition: MapAttributes.h:114
Rect2i rect
Definition: MapAttributes.h:92
static RegionAttributePtr create(const Rect2i &r)
Definition: MapAttributes.h:81
#define MIRA_OBJECT(classIdentifier)
MapAttribute(const std::string &iChannel)
Definition: MapAttributes.h:46
RegionAttribute()
Definition: MapAttributes.h:78
Definition: MapAttributes.h:73
bool planner
Definition: MapAttributes.h:69
Definition: MetricCostmapTopoMapPlanner.h:45
CostMapAttribute(const Stamped< maps::GridMap< double >> &costmap)
Definition: MapAttributes.h:101
bool localization
Definition: MapAttributes.h:70
boost::shared_ptr< MapAttribute > MapAttributePtr
Definition: TopoMapFwd.h:76