Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
rqt_marble_plugin::DrawableMarbleWidget Class Reference

#include <drawable_marble_widget.h>

List of all members.

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, CircleSetm_marker_circle
std::map< std::string, PolygonSetm_marker_line
QImage m_matched
GeoDataCoordinates m_matched_pos
double m_ref_lat
double m_ref_lon

Detailed Description

Definition at line 56 of file drawable_marble_widget.h.


Constructor & Destructor Documentation

DrawableMarbleWidget::DrawableMarbleWidget ( QWidget *  parent = 0)

Definition at line 12 of file drawable_marble_widget.cpp.


Member Function Documentation

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]
Todo:
project CUBES to ground plane and draw them as filled polygons

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.


Member Data Documentation

Definition at line 97 of file drawable_marble_widget.h.

Definition at line 105 of file drawable_marble_widget.h.

Definition at line 98 of file drawable_marble_widget.h.

Definition at line 107 of file drawable_marble_widget.h.

Definition at line 103 of file drawable_marble_widget.h.

Definition at line 102 of file drawable_marble_widget.h.

Definition at line 99 of file drawable_marble_widget.h.

Definition at line 106 of file drawable_marble_widget.h.

Definition at line 110 of file drawable_marble_widget.h.

Definition at line 111 of file drawable_marble_widget.h.


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


marble_plugin
Author(s): Tobias Bär
autogenerated on Thu Aug 27 2015 13:56:10