Public Member Functions | Public Attributes | List of all members
swri_route_util::Route Class Reference

#include <route.h>

Public Member Functions

void deleteProperty (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::string getProperty (const std::string &name) const
 
std::vector< std::string > getPropertyNames () const
 
template<typename T >
getTypedProperty (const std::string &name) const
 
std::string guid () const
 
bool hasProperty (const std::string &name) const
 
std::string name () const
 
void rebuildPointIndex () const
 
 Route ()
 
 Route (const marti_nav_msgs::Route &msg)
 
void setGuid (const std::string &guid)
 
void setName (const std::string &name)
 
void setProperty (const std::string &name, const std::string &value)
 
void toMsg (marti_nav_msgs::Route &msg) const
 
marti_nav_msgs::RoutePtr toMsgPtr () const
 
bool valid () const
 

Public Attributes

std::string guid_
 
std_msgs::Header header
 
std::string name_
 
std::map< std::string, size_t > point_index_
 
std::vector< RoutePointpoints
 
std::map< std::string, std::string > properties_
 

Detailed Description

Definition at line 57 of file route.h.

Constructor & Destructor Documentation

◆ Route() [1/2]

swri_route_util::Route::Route ( )

Definition at line 37 of file route.cpp.

◆ Route() [2/2]

swri_route_util::Route::Route ( const marti_nav_msgs::Route &  msg)

Member Function Documentation

◆ deleteProperty()

void swri_route_util::Route::deleteProperty ( const std::string &  name)

Definition at line 206 of file route.cpp.

◆ findPointId()

bool swri_route_util::Route::findPointId ( size_t &  index,
const std::string &  id 
) const

Definition at line 113 of file route.cpp.

◆ findPointIdConst()

bool swri_route_util::Route::findPointIdConst ( size_t &  index,
const std::string &  id 
) const

Definition at line 143 of file route.cpp.

◆ getProperty()

std::string swri_route_util::Route::getProperty ( const std::string &  name) const

Definition at line 171 of file route.cpp.

◆ getPropertyNames()

std::vector< std::string > swri_route_util::Route::getPropertyNames ( ) const

Definition at line 158 of file route.cpp.

◆ getTypedProperty()

template<typename T >
T swri_route_util::Route::getTypedProperty ( const std::string &  name) const
inline

Definition at line 175 of file route.h.

◆ guid()

std::string swri_route_util::Route::guid ( ) const

Definition at line 226 of file route.cpp.

◆ hasProperty()

bool swri_route_util::Route::hasProperty ( const std::string &  name) const

Definition at line 184 of file route.cpp.

◆ name()

std::string swri_route_util::Route::name ( ) const

Definition at line 216 of file route.cpp.

◆ rebuildPointIndex()

void swri_route_util::Route::rebuildPointIndex ( ) const

Definition at line 236 of file route.cpp.

◆ setGuid()

void swri_route_util::Route::setGuid ( const std::string &  guid)

Definition at line 231 of file route.cpp.

◆ setName()

void swri_route_util::Route::setName ( const std::string &  name)

Definition at line 221 of file route.cpp.

◆ setProperty()

void swri_route_util::Route::setProperty ( const std::string &  name,
const std::string &  value 
)

Definition at line 195 of file route.cpp.

◆ toMsg()

void swri_route_util::Route::toMsg ( marti_nav_msgs::Route &  msg) const

Definition at line 84 of file route.cpp.

◆ toMsgPtr()

mnm::RoutePtr swri_route_util::Route::toMsgPtr ( ) const

Definition at line 101 of file route.cpp.

◆ valid()

bool swri_route_util::Route::valid ( ) const

Definition at line 108 of file route.cpp.

Member Data Documentation

◆ guid_

std::string swri_route_util::Route::guid_

Definition at line 164 of file route.h.

◆ header

std_msgs::Header swri_route_util::Route::header

Definition at line 77 of file route.h.

◆ name_

std::string swri_route_util::Route::name_

Definition at line 165 of file route.h.

◆ point_index_

std::map<std::string, size_t> swri_route_util::Route::point_index_
mutable

Definition at line 158 of file route.h.

◆ points

std::vector<RoutePoint> swri_route_util::Route::points

Definition at line 82 of file route.h.

◆ properties_

std::map<std::string, std::string> swri_route_util::Route::properties_

Definition at line 161 of file route.h.


The documentation for this class was generated from the following files:


swri_route_util
Author(s):
autogenerated on Sat Jan 21 2023 03:13:29