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

mapviz_plugins::ObjectPlugin::ObjectPlugin ( )

Definition at line 47 of file object_plugin.cpp.

mapviz_plugins::ObjectPlugin::~ObjectPlugin ( )
virtual

Definition at line 73 of file object_plugin.cpp.

Member Function Documentation

void mapviz_plugins::ObjectPlugin::ClearHistory ( )
virtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 82 of file object_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 299 of file object_plugin.cpp.

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 284 of file object_plugin.cpp.

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

Definition at line 126 of file object_plugin.cpp.

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.

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

Definition at line 213 of file object_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 291 of file object_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 394 of file object_plugin.cpp.

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

Reimplemented from mapviz::MapvizPlugin.

Definition at line 325 of file object_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 269 of file object_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 274 of file object_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 279 of file object_plugin.cpp.

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

Implements mapviz::MapvizPlugin.

Definition at line 422 of file object_plugin.cpp.

void mapviz_plugins::ObjectPlugin::SelectTopic ( )
protectedslot

Definition at line 87 of file object_plugin.cpp.

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

Definition at line 77 of file object_plugin.cpp.

void mapviz_plugins::ObjectPlugin::Shutdown ( )
inlinevirtual

Implements mapviz::MapvizPlugin.

Definition at line 63 of file object_plugin.h.

bool mapviz_plugins::ObjectPlugin::SupportsPainting ( )
inlinevirtual

Reimplemented from mapviz::MapvizPlugin.

Definition at line 77 of file object_plugin.h.

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

Definition at line 432 of file object_plugin.cpp.

void mapviz_plugins::ObjectPlugin::TopicEdited ( )
protectedslot

Definition at line 102 of file object_plugin.cpp.

void mapviz_plugins::ObjectPlugin::Transform ( )
virtual

Implements mapviz::MapvizPlugin.

Definition at line 373 of file object_plugin.cpp.

Member Data Documentation

QColor mapviz_plugins::ObjectPlugin::color_
private

Definition at line 123 of file object_plugin.h.

QWidget* mapviz_plugins::ObjectPlugin::config_widget_
private

Definition at line 120 of file object_plugin.h.

bool mapviz_plugins::ObjectPlugin::connected_
private

Definition at line 126 of file object_plugin.h.

bool mapviz_plugins::ObjectPlugin::has_message_
private

Definition at line 127 of file object_plugin.h.

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

Definition at line 125 of file object_plugin.h.

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

Definition at line 129 of file object_plugin.h.

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

Definition at line 122 of file object_plugin.h.

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

Definition at line 119 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 Mar 19 2021 02:44:32