stdr_robot_visualization.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 
22 #ifndef STDR_ROBOT_VISUALIZATION
23 #define STDR_ROBOT_VISUALIZATION
24 
25 #include "stdr_gui/stdr_tools.h"
26 #include "ui_robotVisualization.h"
27 
32 namespace stdr_gui
33 {
39  public QWidget,
40  public Ui_robotVisualization
41  {
42  //------------------------------------------------------------------------//
43  private:
45  bool active_;
47  float resolution_;
51  QImage void_image_;
53  QString name_;
54  //------------------------------------------------------------------------//
55  public:
62  CRobotVisualisation(QString name,float resolution);
63 
69 
74  bool getActive(void);
75 
80  void destruct(void);
81 
87  void closeEvent(QCloseEvent *event);
88 
93  int getInternalImageSize(void);
94 
100  void setImage(QImage img);
101 
107  void setCurrentPose(geometry_msgs::Pose2D pose);
108 
114  void setCurrentSpeed(std::vector<float> msg);
115  };
116 }
117 
118 #endif
bool getActive(void)
Returns true if the visualizer is active.
Implements the functionalities of the robot visualization widget. Inherits form QWidget and Ui_robotV...
void setCurrentSpeed(std::vector< float > msg)
Sets the robot&#39;s current speed.
int getInternalImageSize(void)
Returns the internal image size.
void setCurrentPose(geometry_msgs::Pose2D pose)
Sets the robot&#39;s current pose.
void closeEvent(QCloseEvent *event)
Called when the close event is triggered.
QImage void_image_
The robot frame id.
float resolution_
The image to draw into.
void setImage(QImage img)
Sets the image to be shown.
CRobotVisualisation(QString name, float resolution)
Default contructor.
bool active_
< True if the visualizer is active
The main namespace for STDR GUI.
void destruct(void)
Destroys the visualizer.
~CRobotVisualisation(void)
Default destructor.


stdr_gui
Author(s): Manos Tsardoulias
autogenerated on Mon Jun 10 2019 15:15:17