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

#include <attitude_indicator_plugin.h>

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

Public Member Functions

 AttitudeIndicatorPlugin ()
 
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)
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
void Transform ()
 
virtual ~AttitudeIndicatorPlugin ()
 
- Public Member Functions inherited from mapviz::MapvizPlugin
virtual void ClearHistory ()
 
int DrawOrder () const
 
void DrawPlugin (double x, double y, double scale)
 
bool GetTransform (const ros::Time &stamp, swri_transform_util::Transform &transform, bool use_latest_transforms=true)
 
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
 
virtual void Paint (QPainter *painter, double x, double y, double scale)
 
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 SetUseLatestTransforms (bool value)
 
void SetVisible (bool visible)
 
std::string Type () const
 
bool Visible () const
 
virtual ~MapvizPlugin ()
 

Protected Slots

void SelectTopic ()
 
void TopicEdited ()
 

Protected Member Functions

void drawBackground ()
 
void drawBall ()
 
void drawPanel ()
 
void PrintError (const std::string &message)
 
void PrintInfo (const std::string &message)
 
void PrintWarning (const std::string &message)
 
void timerEvent (QTimerEvent *)
 
- Protected Member Functions inherited from mapviz::MapvizPlugin
 MapvizPlugin ()
 

Private Member Functions

void applyAttitudeOrientation (const geometry_msgs::Quaternion &orientation)
 
void AttitudeCallbackImu (const sensor_msgs::ImuConstPtr &imu)
 
void AttitudeCallbackOdom (const nav_msgs::OdometryConstPtr &odometry)
 
void AttitudeCallbackPose (const geometry_msgs::PoseConstPtr &pose)
 
void handleMessage (const topic_tools::ShapeShifter::ConstPtr &msg)
 

Private Attributes

QWidget * config_widget_
 
ros::Subscriber odometry_sub_
 
double pitch_
 
PlaceableWindowProxy placer_
 
double roll_
 
std::string topic_
 
std::vector< std::string > topics_
 
Ui::attitude_indicator_config ui_
 
double yaw_
 

Additional Inherited Members

- Public Slots inherited from mapviz::MapvizPlugin
virtual void DrawIcon ()
 
virtual bool SupportsPainting ()
 
- 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::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 use_latest_transforms_
 
bool visible_
 

Detailed Description

Definition at line 63 of file attitude_indicator_plugin.h.

Constructor & Destructor Documentation

◆ AttitudeIndicatorPlugin()

mapviz_plugins::AttitudeIndicatorPlugin::AttitudeIndicatorPlugin ( )

Definition at line 59 of file attitude_indicator_plugin.cpp.

◆ ~AttitudeIndicatorPlugin()

mapviz_plugins::AttitudeIndicatorPlugin::~AttitudeIndicatorPlugin ( )
virtual

Definition at line 85 of file attitude_indicator_plugin.cpp.

Member Function Documentation

◆ applyAttitudeOrientation()

void mapviz_plugins::AttitudeIndicatorPlugin::applyAttitudeOrientation ( const geometry_msgs::Quaternion &  orientation)
private

Definition at line 157 of file attitude_indicator_plugin.cpp.

◆ AttitudeCallbackImu()

void mapviz_plugins::AttitudeIndicatorPlugin::AttitudeCallbackImu ( const sensor_msgs::ImuConstPtr &  imu)
private

Definition at line 147 of file attitude_indicator_plugin.cpp.

◆ AttitudeCallbackOdom()

void mapviz_plugins::AttitudeIndicatorPlugin::AttitudeCallbackOdom ( const nav_msgs::OdometryConstPtr &  odometry)
private

Definition at line 142 of file attitude_indicator_plugin.cpp.

◆ AttitudeCallbackPose()

void mapviz_plugins::AttitudeIndicatorPlugin::AttitudeCallbackPose ( const geometry_msgs::PoseConstPtr &  pose)
private

Definition at line 152 of file attitude_indicator_plugin.cpp.

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 266 of file attitude_indicator_plugin.cpp.

◆ drawBackground()

void mapviz_plugins::AttitudeIndicatorPlugin::drawBackground ( )
protected

Definition at line 307 of file attitude_indicator_plugin.cpp.

◆ drawBall()

void mapviz_plugins::AttitudeIndicatorPlugin::drawBall ( )
protected

Definition at line 214 of file attitude_indicator_plugin.cpp.

◆ drawPanel()

void mapviz_plugins::AttitudeIndicatorPlugin::drawPanel ( )
protected

Definition at line 323 of file attitude_indicator_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 189 of file attitude_indicator_plugin.cpp.

◆ handleMessage()

void mapviz_plugins::AttitudeIndicatorPlugin::handleMessage ( const topic_tools::ShapeShifter::ConstPtr msg)
private

Definition at line 122 of file attitude_indicator_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 195 of file attitude_indicator_plugin.cpp.

◆ LoadConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 350 of file attitude_indicator_plugin.cpp.

◆ PrintError()

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

Implements mapviz::MapvizPlugin.

Definition at line 174 of file attitude_indicator_plugin.cpp.

◆ PrintInfo()

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

Implements mapviz::MapvizPlugin.

Definition at line 179 of file attitude_indicator_plugin.cpp.

◆ PrintWarning()

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

Implements mapviz::MapvizPlugin.

Definition at line 184 of file attitude_indicator_plugin.cpp.

◆ SaveConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 391 of file attitude_indicator_plugin.cpp.

◆ SelectTopic

void mapviz_plugins::AttitudeIndicatorPlugin::SelectTopic ( )
protectedslot

Definition at line 89 of file attitude_indicator_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::AttitudeIndicatorPlugin::Shutdown ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 204 of file attitude_indicator_plugin.cpp.

◆ timerEvent()

void mapviz_plugins::AttitudeIndicatorPlugin::timerEvent ( QTimerEvent *  )
protected

Definition at line 209 of file attitude_indicator_plugin.cpp.

◆ TopicEdited

void mapviz_plugins::AttitudeIndicatorPlugin::TopicEdited ( )
protectedslot

Definition at line 102 of file attitude_indicator_plugin.cpp.

◆ Transform()

void mapviz_plugins::AttitudeIndicatorPlugin::Transform ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 76 of file attitude_indicator_plugin.h.

Member Data Documentation

◆ config_widget_

QWidget* mapviz_plugins::AttitudeIndicatorPlugin::config_widget_
private

Definition at line 109 of file attitude_indicator_plugin.h.

◆ odometry_sub_

ros::Subscriber mapviz_plugins::AttitudeIndicatorPlugin::odometry_sub_
private

Definition at line 110 of file attitude_indicator_plugin.h.

◆ pitch_

double mapviz_plugins::AttitudeIndicatorPlugin::pitch_
private

Definition at line 105 of file attitude_indicator_plugin.h.

◆ placer_

PlaceableWindowProxy mapviz_plugins::AttitudeIndicatorPlugin::placer_
private

Definition at line 108 of file attitude_indicator_plugin.h.

◆ roll_

double mapviz_plugins::AttitudeIndicatorPlugin::roll_
private

Definition at line 106 of file attitude_indicator_plugin.h.

◆ topic_

std::string mapviz_plugins::AttitudeIndicatorPlugin::topic_
private

Definition at line 111 of file attitude_indicator_plugin.h.

◆ topics_

std::vector<std::string> mapviz_plugins::AttitudeIndicatorPlugin::topics_
private

Definition at line 112 of file attitude_indicator_plugin.h.

◆ ui_

Ui::attitude_indicator_config mapviz_plugins::AttitudeIndicatorPlugin::ui_
private

Definition at line 113 of file attitude_indicator_plugin.h.

◆ yaw_

double mapviz_plugins::AttitudeIndicatorPlugin::yaw_
private

Definition at line 107 of file attitude_indicator_plugin.h.


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


mapviz_plugins
Author(s): Marc Alban
autogenerated on Fri Dec 16 2022 03:59:34