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

#include <object_plugin.h>

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

Classes

struct  Color
 
struct  ObjectData
 
struct  StampedPoint
 

Public Member Functions

void ClearHistory ()
 
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)
 
 ObjectPlugin ()
 
void Paint (QPainter *painter, double x, double y, double scale)
 
void SaveConfig (YAML::Emitter &emitter, const std::string &path)
 
void Shutdown ()
 
bool SupportsPainting ()
 
void Transform ()
 
virtual ~ObjectPlugin ()
 
- 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 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
 
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 SetColor (const QColor &color)
 
void TopicEdited ()
 

Protected Member Functions

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 handleMessage (const topic_tools::ShapeShifter::ConstPtr &msg)
 
void handleObstacle (const marti_nav_msgs::Obstacle &obj, const std_msgs::Header &header)
 
void handleTrack (const marti_nav_msgs::TrackedObject &obj)
 

Private Attributes

QColor color_
 
QWidget * config_widget_
 
bool connected_
 
bool has_message_
 
ros::Subscriber object_sub_
 
std::vector< ObjectDataobjects_
 
std::string topic_
 
Ui::object_config ui_
 

Additional Inherited Members

- 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::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 54 of file object_plugin.h.

Constructor & Destructor Documentation

◆ ObjectPlugin()

mapviz_plugins::ObjectPlugin::ObjectPlugin ( )

Definition at line 47 of file object_plugin.cpp.

◆ ~ObjectPlugin()

mapviz_plugins::ObjectPlugin::~ObjectPlugin ( )
virtual

Definition at line 73 of file object_plugin.cpp.

Member Function Documentation

◆ ClearHistory()

void mapviz_plugins::ObjectPlugin::ClearHistory ( )
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 82 of file object_plugin.cpp.

◆ Draw()

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

Implements mapviz::MapvizPlugin.

Definition at line 301 of file object_plugin.cpp.

◆ GetConfigWidget()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 286 of file object_plugin.cpp.

◆ handleMessage()

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

Definition at line 126 of file object_plugin.cpp.

◆ handleObstacle()

void mapviz_plugins::ObjectPlugin::handleObstacle ( const marti_nav_msgs::Obstacle &  obj,
const std_msgs::Header header 
)
private

Definition at line 157 of file object_plugin.cpp.

◆ handleTrack()

void mapviz_plugins::ObjectPlugin::handleTrack ( const marti_nav_msgs::TrackedObject &  obj)
private

Definition at line 214 of file object_plugin.cpp.

◆ Initialize()

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

Implements mapviz::MapvizPlugin.

Definition at line 293 of file object_plugin.cpp.

◆ LoadConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 401 of file object_plugin.cpp.

◆ Paint()

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 332 of file object_plugin.cpp.

◆ PrintError()

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

Implements mapviz::MapvizPlugin.

Definition at line 271 of file object_plugin.cpp.

◆ PrintInfo()

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

Implements mapviz::MapvizPlugin.

Definition at line 276 of file object_plugin.cpp.

◆ PrintWarning()

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

Implements mapviz::MapvizPlugin.

Definition at line 281 of file object_plugin.cpp.

◆ SaveConfig()

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

Implements mapviz::MapvizPlugin.

Definition at line 436 of file object_plugin.cpp.

◆ SelectTopic

void mapviz_plugins::ObjectPlugin::SelectTopic ( )
protectedslot

Definition at line 87 of file object_plugin.cpp.

◆ SetColor

void mapviz_plugins::ObjectPlugin::SetColor ( const QColor &  color)
protectedslot

Definition at line 77 of file object_plugin.cpp.

◆ Shutdown()

void mapviz_plugins::ObjectPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 63 of file object_plugin.h.

◆ SupportsPainting()

bool mapviz_plugins::ObjectPlugin::SupportsPainting ( )
inlinevirtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 77 of file object_plugin.h.

◆ timerEvent()

void mapviz_plugins::ObjectPlugin::timerEvent ( QTimerEvent *  event)
protected

Definition at line 448 of file object_plugin.cpp.

◆ TopicEdited

void mapviz_plugins::ObjectPlugin::TopicEdited ( )
protectedslot

Definition at line 102 of file object_plugin.cpp.

◆ Transform()

void mapviz_plugins::ObjectPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 380 of file object_plugin.cpp.

Member Data Documentation

◆ color_

QColor mapviz_plugins::ObjectPlugin::color_
private

Definition at line 124 of file object_plugin.h.

◆ config_widget_

QWidget* mapviz_plugins::ObjectPlugin::config_widget_
private

Definition at line 121 of file object_plugin.h.

◆ connected_

bool mapviz_plugins::ObjectPlugin::connected_
private

Definition at line 127 of file object_plugin.h.

◆ has_message_

bool mapviz_plugins::ObjectPlugin::has_message_
private

Definition at line 128 of file object_plugin.h.

◆ object_sub_

ros::Subscriber mapviz_plugins::ObjectPlugin::object_sub_
private

Definition at line 126 of file object_plugin.h.

◆ objects_

std::vector<ObjectData> mapviz_plugins::ObjectPlugin::objects_
private

Definition at line 130 of file object_plugin.h.

◆ topic_

std::string mapviz_plugins::ObjectPlugin::topic_
private

Definition at line 123 of file object_plugin.h.

◆ ui_

Ui::object_config mapviz_plugins::ObjectPlugin::ui_
private

Definition at line 120 of file object_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