Public Member Functions | Protected Slots | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
mapviz_plugins::OdometryPlugin Class Reference

#include <odometry_plugin.h>

Inheritance diagram for mapviz_plugins::OdometryPlugin:
Inheritance graph
[legend]

Public Member Functions

void Draw (double x, double y, double scale)
 
QWidget * GetConfigWidget (QWidget *parent)
 
bool Initialize (QGLWidget *canvas)
 
void LoadConfig (const YAML::Node &node, const std::string &path)
 
 OdometryPlugin ()
 
void Paint (QPainter *painter, double x, double y, double scale)
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
bool SupportsPainting ()
 
virtual ~OdometryPlugin ()
 
- Public Member Functions inherited from mapviz_plugins::PointDrawingPlugin
void ClearHistory ()
 
virtual void CollectLaps ()
 
virtual bool DrawArrow (const StampedPoint &point)
 
virtual bool DrawArrows ()
 
virtual void DrawCovariance ()
 
virtual bool DrawLaps ()
 
virtual bool DrawLapsArrows ()
 
virtual bool DrawLines ()
 
virtual bool DrawPoints (double scale)
 
 PointDrawingPlugin ()
 
virtual void Transform ()
 
virtual bool TransformPoint (StampedPoint &point)
 
virtual void TransformPoint (StampedPoint &point, const swri_transform_util::Transform &transform)
 
virtual void UpdateColor (QColor base_color, int i)
 
virtual ~PointDrawingPlugin ()
 
- Public Member Functions inherited from mapviz::MapvizPlugin
int DrawOrder () const
 
void DrawPlugin (double x, double y, double scale)
 
bool GetTransform (const ros::Time &stamp, swri_transform_util::Transform &transform)
 
bool GetTransform (const std::string &source, const ros::Time &stamp, swri_transform_util::Transform &transform)
 
virtual bool Initialize (boost::shared_ptr< tf::TransformListener > tf_listener, swri_transform_util::TransformManagerPtr tf_manager, QGLWidget *canvas)
 
std::string Name () const
 
void PaintPlugin (QPainter *painter, double x, double y, double scale)
 
void PrintMeasurements ()
 
void SetDrawOrder (int order)
 
void SetIcon (IconWidget *icon)
 
void SetName (const std::string &name)
 
virtual void SetNode (const ros::NodeHandle &node)
 
void SetTargetFrame (std::string frame_id)
 
void SetType (const std::string &type)
 
void SetVisible (bool visible)
 
std::string Type () const
 
bool Visible () const
 
virtual ~MapvizPlugin ()
 

Protected Slots

void SelectTopic ()
 
void TopicEdited ()
 
- Protected Slots inherited from mapviz_plugins::PointDrawingPlugin
virtual void BufferSizeChanged (int value)
 
void ClearPoints ()
 
virtual void CovariancedToggled (bool checked)
 
virtual void DrawIcon ()
 
virtual void LapToggled (bool checked)
 
virtual void PositionToleranceChanged (double value)
 
void ResetTransformedPoints ()
 
virtual void SetArrowSize (int arrowSize)
 
virtual void SetColor (const QColor &color)
 
virtual void SetDrawStyle (DrawStyle style)
 
virtual void SetDrawStyle (QString style)
 
virtual void SetStaticArrowSizes (bool isChecked)
 
virtual void SetUseLatestTransforms (bool checked)
 
virtual void ShowAllCovariancesToggled (bool checked)
 

Protected Member Functions

void PrintError (const std::string &message)
 
void PrintInfo (const std::string &message)
 
void PrintWarning (const std::string &message)
 
- Protected Member Functions inherited from mapviz_plugins::PointDrawingPlugin
double bufferSize () const
 
const std::deque< StampedPoint > & points () const
 
double positionTolerance () const
 
void pushPoint (StampedPoint point)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

Private Member Functions

void odometryCallback (const nav_msgs::OdometryConstPtr odometry)
 

Private Attributes

QWidget * config_widget_
 
bool has_message_
 
ros::Subscriber odometry_sub_
 
std::string topic_
 
Ui::odometry_config ui_
 

Additional Inherited Members

- Public Types inherited from mapviz_plugins::PointDrawingPlugin
enum  DrawStyle { LINES = 0, POINTS, ARROWS }
 
- Public Slots inherited from mapviz::MapvizPlugin
virtual void DrawIcon ()
 
- Signals inherited from mapviz::MapvizPlugin
void DrawOrderChanged (int draw_order)
 
void SizeChanged ()
 
void TargetFrameChanged (const std::string &target_frame)
 
void UseLatestTransformsChanged (bool use_latest_transforms)
 
void VisibleChanged (bool visible)
 
- Static Public Member Functions inherited from mapviz::MapvizPlugin
static void PrintErrorHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
static void PrintInfoHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
static void PrintWarningHelper (QLabel *status_label, const std::string &message, double throttle=0.0)
 
- Protected Attributes inherited from mapviz_plugins::PointDrawingPlugin
bool single_frame_
 
- Protected Attributes inherited from mapviz::MapvizPlugin
QGLWidget * canvas_
 
int draw_order_
 
IconWidgeticon_
 
bool initialized_
 
std::string name_
 
ros::NodeHandle node_
 
std::string source_frame_
 
std::string target_frame_
 
boost::shared_ptr< tf::TransformListenertf_
 
swri_transform_util::TransformManagerPtr tf_manager_
 
std::string type_
 
bool visible_
 

Detailed Description

Definition at line 57 of file odometry_plugin.h.

Constructor & Destructor Documentation

◆ OdometryPlugin()

mapviz_plugins::OdometryPlugin::OdometryPlugin ( )

Definition at line 57 of file odometry_plugin.cpp.

◆ ~OdometryPlugin()

mapviz_plugins::OdometryPlugin::~OdometryPlugin ( )
virtual

Definition at line 100 of file odometry_plugin.cpp.

Member Function Documentation

◆ Draw()

void mapviz_plugins::OdometryPlugin::Draw ( double  x,
double  y,
double  scale 
)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 237 of file odometry_plugin.cpp.

◆ GetConfigWidget()

QWidget * mapviz_plugins::OdometryPlugin::GetConfigWidget ( QWidget *  parent)
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 222 of file odometry_plugin.cpp.

◆ Initialize()

bool mapviz_plugins::OdometryPlugin::Initialize ( QGLWidget *  canvas)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 229 of file odometry_plugin.cpp.

◆ LoadConfig()

void mapviz_plugins::OdometryPlugin::LoadConfig ( const YAML::Node &  node,
const std::string &  path 
)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 286 of file odometry_plugin.cpp.

◆ odometryCallback()

void mapviz_plugins::OdometryPlugin::odometryCallback ( const nav_msgs::OdometryConstPtr  odometry)
private

Definition at line 139 of file odometry_plugin.cpp.

◆ Paint()

void mapviz_plugins::OdometryPlugin::Paint ( QPainter *  painter,
double  x,
double  y,
double  scale 
)
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 250 of file odometry_plugin.cpp.

◆ PrintError()

void mapviz_plugins::OdometryPlugin::PrintError ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 207 of file odometry_plugin.cpp.

◆ PrintInfo()

void mapviz_plugins::OdometryPlugin::PrintInfo ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 212 of file odometry_plugin.cpp.

◆ PrintWarning()

void mapviz_plugins::OdometryPlugin::PrintWarning ( const std::string &  message)
protectedvirtual

Implements mapviz::MapvizPlugin.

Definition at line 217 of file odometry_plugin.cpp.

◆ SaveConfig()

void mapviz_plugins::OdometryPlugin::SaveConfig ( YAML::Emitter &  emitter,
const std::string &  path 
)
virtual

Implements mapviz::MapvizPlugin.

Definition at line 396 of file odometry_plugin.cpp.

◆ SelectTopic

void mapviz_plugins::OdometryPlugin::SelectTopic ( )
protectedslot

Definition at line 104 of file odometry_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::OdometryPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 66 of file odometry_plugin.h.

◆ SupportsPainting()

bool mapviz_plugins::OdometryPlugin::SupportsPainting ( )
inlinevirtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 77 of file odometry_plugin.h.

◆ TopicEdited

void mapviz_plugins::OdometryPlugin::TopicEdited ( )
protectedslot

Definition at line 116 of file odometry_plugin.cpp.

Member Data Documentation

◆ config_widget_

QWidget* mapviz_plugins::OdometryPlugin::config_widget_
private

Definition at line 95 of file odometry_plugin.h.

◆ has_message_

bool mapviz_plugins::OdometryPlugin::has_message_
private

Definition at line 98 of file odometry_plugin.h.

◆ odometry_sub_

ros::Subscriber mapviz_plugins::OdometryPlugin::odometry_sub_
private

Definition at line 97 of file odometry_plugin.h.

◆ topic_

std::string mapviz_plugins::OdometryPlugin::topic_
private

Definition at line 96 of file odometry_plugin.h.

◆ ui_

Ui::odometry_config mapviz_plugins::OdometryPlugin::ui_
private

Definition at line 94 of file odometry_plugin.h.


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


mapviz_plugins
Author(s): Marc Alban
autogenerated on Sun Sep 8 2024 02:27:14