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_ marti_nav_msgs::RoutePtr toMsgPtr() const
void setGuid(const std::string &guid)
void setProperty(const std::string &name, const std::string &value)
std::map< std::string, std::string > properties_
bool hasProperty(const std::string &name) const
std::map< std::string, size_t > point_index_
std::vector< std::string > getPropertyNames() const
void toMsg(marti_nav_msgs::Route &msg) const
std::string getProperty(const std::string &name) const
void setName(const std::string &name)
bool findPointId(size_t &index, const std::string &id) const
bool findPointIdConst(size_t &index, const std::string &id) const
std::vector< RoutePoint > points
boost::shared_ptr< Route > RoutePtr
void rebuildPointIndex() const
T getTypedProperty(const std::string &name) const
boost::shared_ptr< Route const > RouteConstPtr
void deleteProperty(const std::string &name)