#include <drawable_marble_widget.h>
Public Member Functions | |
DrawableMarbleWidget (QWidget *parent=0) | |
void | referenceGpsCallback (const sensor_msgs::NavSatFixConstPtr &reference) |
void | setCurrentPosition (GeoDataCoordinates &postion) |
void | setMatchedPosition (GeoDataCoordinates &postion) |
void | visualizationCallback (const visualization_msgs::MarkerConstPtr &marker) |
void | visualizationMarkerArrayCallback (const visualization_msgs::MarkerArrayConstPtr &markers) |
Protected Member Functions | |
virtual void | customPaint (GeoPainter *painter) |
Private Member Functions | |
void | addLineList (const visualization_msgs::Marker &marker) |
void | addLineStrip (const visualization_msgs::Marker &marker) |
void | addMarker (const visualization_msgs::Marker &marker) |
void | addSphere (const visualization_msgs::Marker &marker) |
void | addSphereList (const visualization_msgs::Marker &marker) |
std::pair< double, double > | GetAbsoluteCoordinates (double x, double y, double ref_lat, double ref_lon, double ref_bearing=0.) |
void | getColor (QColor &outputColor, std_msgs::ColorRGBA color_msg) |
std::string | getMarkerId (visualization_msgs::Marker marker) |
std::pair< double, double > | GetNewPointBearingDistance (double a_lat, double a_lon, double bearing, double distance) |
void | loadImage (QImage &car, std::string &path) |
bool | posChanged (double x1, double y1, double x2, double y2, double threshold) |
Q_DISABLE_COPY (DrawableMarbleWidget) | |
void | removeOldCircles (const ros::Time &actual_time) |
void | removeOldPolygons (const ros::Time &actual_time) |
QImage | roateCar (QImage *car_image) |
std::pair< double, double > | toGpsCoordinates (double x, double y) |
Private Attributes | |
QImage | m_arrow |
GeoDataCoordinates | m_current_pos |
QImage | m_current_pos_icon |
GeoDataCoordinates | m_last_matched_position |
std::map< std::string, CircleSet > | m_marker_circle |
std::map< std::string, PolygonSet > | m_marker_line |
QImage | m_matched |
GeoDataCoordinates | m_matched_pos |
double | m_ref_lat |
double | m_ref_lon |
Definition at line 56 of file drawable_marble_widget.h.
DrawableMarbleWidget::DrawableMarbleWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 12 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::addLineList | ( | const visualization_msgs::Marker & | marker | ) | [private] |
Definition at line 217 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::addLineStrip | ( | const visualization_msgs::Marker & | marker | ) | [private] |
Definition at line 193 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::addMarker | ( | const visualization_msgs::Marker & | marker | ) | [private] |
Definition at line 289 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::addSphere | ( | const visualization_msgs::Marker & | marker | ) | [private] |
Definition at line 268 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::addSphereList | ( | const visualization_msgs::Marker & | marker | ) | [private] |
Definition at line 246 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::customPaint | ( | GeoPainter * | painter | ) | [protected, virtual] |
Definition at line 39 of file drawable_marble_widget.cpp.
std::pair< double, double > DrawableMarbleWidget::GetAbsoluteCoordinates | ( | double | x, |
double | y, | ||
double | ref_lat, | ||
double | ref_lon, | ||
double | ref_bearing = 0. |
||
) | [private] |
Get absolute coordinates in DEGREE of a given position to a reference position
Definition at line 342 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::getColor | ( | QColor & | outputColor, |
std_msgs::ColorRGBA | color_msg | ||
) | [private] |
Definition at line 103 of file drawable_marble_widget.cpp.
std::string DrawableMarbleWidget::getMarkerId | ( | visualization_msgs::Marker | marker | ) | [private] |
Definition at line 111 of file drawable_marble_widget.cpp.
std::pair< double, double > DrawableMarbleWidget::GetNewPointBearingDistance | ( | double | a_lat, |
double | a_lon, | ||
double | bearing, | ||
double | distance | ||
) | [private] |
Definition at line 350 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::loadImage | ( | QImage & | car, |
std::string & | path | ||
) | [private] |
Definition at line 30 of file drawable_marble_widget.cpp.
bool DrawableMarbleWidget::posChanged | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | threshold | ||
) | [private] |
Definition at line 169 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::referenceGpsCallback | ( | const sensor_msgs::NavSatFixConstPtr & | reference | ) |
Definition at line 334 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::removeOldCircles | ( | const ros::Time & | actual_time | ) | [private] |
Definition at line 118 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::removeOldPolygons | ( | const ros::Time & | actual_time | ) | [private] |
Definition at line 129 of file drawable_marble_widget.cpp.
QImage DrawableMarbleWidget::roateCar | ( | QImage * | car_image | ) | [private] |
Definition at line 150 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::setCurrentPosition | ( | GeoDataCoordinates & | postion | ) |
Definition at line 145 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::setMatchedPosition | ( | GeoDataCoordinates & | postion | ) |
Definition at line 139 of file drawable_marble_widget.cpp.
std::pair< double, double > DrawableMarbleWidget::toGpsCoordinates | ( | double | x, |
double | y | ||
) | [private] |
Definition at line 175 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::visualizationCallback | ( | const visualization_msgs::MarkerConstPtr & | marker | ) |
Definition at line 189 of file drawable_marble_widget.cpp.
void DrawableMarbleWidget::visualizationMarkerArrayCallback | ( | const visualization_msgs::MarkerArrayConstPtr & | markers | ) |
Definition at line 181 of file drawable_marble_widget.cpp.
QImage rqt_marble_plugin::DrawableMarbleWidget::m_arrow [private] |
Definition at line 97 of file drawable_marble_widget.h.
GeoDataCoordinates rqt_marble_plugin::DrawableMarbleWidget::m_current_pos [private] |
Definition at line 105 of file drawable_marble_widget.h.
QImage rqt_marble_plugin::DrawableMarbleWidget::m_current_pos_icon [private] |
Definition at line 98 of file drawable_marble_widget.h.
GeoDataCoordinates rqt_marble_plugin::DrawableMarbleWidget::m_last_matched_position [private] |
Definition at line 107 of file drawable_marble_widget.h.
std::map<std::string, CircleSet> rqt_marble_plugin::DrawableMarbleWidget::m_marker_circle [private] |
Definition at line 103 of file drawable_marble_widget.h.
std::map<std::string, PolygonSet> rqt_marble_plugin::DrawableMarbleWidget::m_marker_line [private] |
Definition at line 102 of file drawable_marble_widget.h.
QImage rqt_marble_plugin::DrawableMarbleWidget::m_matched [private] |
Definition at line 99 of file drawable_marble_widget.h.
GeoDataCoordinates rqt_marble_plugin::DrawableMarbleWidget::m_matched_pos [private] |
Definition at line 106 of file drawable_marble_widget.h.
double rqt_marble_plugin::DrawableMarbleWidget::m_ref_lat [private] |
Definition at line 110 of file drawable_marble_widget.h.
double rqt_marble_plugin::DrawableMarbleWidget::m_ref_lon [private] |
Definition at line 111 of file drawable_marble_widget.h.