29 #ifndef SWRI_ROUTE_UTIL_ROUTE_H_ 30 #define SWRI_ROUTE_UTIL_ROUTE_H_ 36 #include <boost/lexical_cast.hpp> 38 #include <marti_nav_msgs/Route.h> 67 Route(
const marti_nav_msgs::Route &
msg);
70 void toMsg(marti_nav_msgs::Route &msg)
const;
94 bool findPointId(
size_t &index,
const std::string &
id)
const;
115 std::string
name()
const;
120 std::string
guid()
const;
136 template <
typename T>
183 #endif // SWRI_ROUTE_UTIL_ROUTE_H_
void rebuildPointIndex() const
void setGuid(const std::string &guid)
std::vector< std::string > getPropertyNames() const
void setProperty(const std::string &name, const std::string &value)
T getTypedProperty(const std::string &name) const
std::map< std::string, std::string > properties_
std::map< std::string, size_t > point_index_
marti_nav_msgs::RoutePtr toMsgPtr() const
void setName(const std::string &name)
bool findPointId(size_t &index, const std::string &id) const
bool hasProperty(const std::string &name) const
void toMsg(marti_nav_msgs::Route &msg) const
std::vector< RoutePoint > points
boost::shared_ptr< Route > RoutePtr
bool findPointIdConst(size_t &index, const std::string &id) const
std::string getProperty(const std::string &name) const
boost::shared_ptr< Route const > RouteConstPtr
void deleteProperty(const std::string &name)