Public Member Functions | |
bool | buildRoadMap (void) |
MapLanesDriver () | |
int | Setup (ros::NodeHandle node) |
int | Shutdown (void) |
void | Spin (void) |
~MapLanesDriver () | |
Private Member Functions | |
void | markCar () |
create marker for car pose. | |
void | processOdom (const nav_msgs::Odometry::ConstPtr &odomIn) |
void | publishGlobalMap (void) |
void | publishLocalMap (void) |
void | publishMapCloud (ros::Publisher &pub, const art_msgs::ArtLanes &lane_data) |
Publish map point cloud. | |
void | publishMapMarks (ros::Publisher &pub, const std::string &map_name, ros::Duration life, const art_msgs::ArtLanes &lane_data) |
Publish map visualization markers. | |
Private Attributes | |
ros::Publisher | car_image_ |
sensor_msgs::PointCloud | cloud_msg_ |
std::string | frame_id_ |
frame ID of map (default "/map") | |
Graph * | graph_ |
graph object (used by MapLanes) | |
bool | initial_position_ |
true if initial odometry received | |
MapLanes * | map_ |
MapLanes object instance. | |
ros::Publisher | mapmarks_ |
visualization_msgs::MarkerArray | marks_msg_ |
nav_msgs::Odometry | odom_msg_ |
ros::Subscriber | odom_topic_ |
double | poly_size_ |
maximum polygon size (m) | |
double | range_ |
radius of local lanes to report (m) | |
std::string | rndf_name_ |
Road Network Definition File name. | |
ros::Publisher | roadmap_cloud_ |
ros::Publisher | roadmap_global_ |
ros::Publisher | roadmap_local_ |
MapLanesDriver::MapLanesDriver | ( | void | ) |
MapLanesDriver::~MapLanesDriver | ( | ) | [inline] |
bool MapLanesDriver::buildRoadMap | ( | void | ) |
void MapLanesDriver::markCar | ( | ) | [private] |
void MapLanesDriver::processOdom | ( | const nav_msgs::Odometry::ConstPtr & | odomIn | ) | [private] |
void MapLanesDriver::publishGlobalMap | ( | void | ) | [private] |
void MapLanesDriver::publishLocalMap | ( | void | ) | [private] |
void MapLanesDriver::publishMapCloud | ( | ros::Publisher & | pub, |
const art_msgs::ArtLanes & | lane_data | ||
) | [private] |
void MapLanesDriver::publishMapMarks | ( | ros::Publisher & | pub, |
const std::string & | map_name, | ||
ros::Duration | life, | ||
const art_msgs::ArtLanes & | lane_data | ||
) | [private] |
Publish map visualization markers.
Converts polygon data into an array of rviz visualization markers.
pub | topic to publish |
map_name | marker namespace |
life | lifespan for these markers |
lane_data | polygons to publish |
int MapLanesDriver::Setup | ( | ros::NodeHandle | node | ) |
int MapLanesDriver::Shutdown | ( | void | ) |
void MapLanesDriver::Spin | ( | void | ) |
ros::Publisher MapLanesDriver::car_image_ [private] |
std::string MapLanesDriver::frame_id_ [private] |
Graph* MapLanesDriver::graph_ [private] |
bool MapLanesDriver::initial_position_ [private] |
MapLanes* MapLanesDriver::map_ [private] |
ros::Publisher MapLanesDriver::mapmarks_ [private] |
visualization_msgs::MarkerArray MapLanesDriver::marks_msg_ [private] |
nav_msgs::Odometry MapLanesDriver::odom_msg_ [private] |
ros::Subscriber MapLanesDriver::odom_topic_ [private] |
double MapLanesDriver::poly_size_ [private] |
double MapLanesDriver::range_ [private] |
std::string MapLanesDriver::rndf_name_ [private] |
ros::Publisher MapLanesDriver::roadmap_cloud_ [private] |
ros::Publisher MapLanesDriver::roadmap_local_ [private] |