Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
turtlesim::TurtleFrame Class Reference

#include <turtle_frame.h>

Inheritance diagram for turtlesim::TurtleFrame:
Inheritance graph
[legend]

Public Member Functions

std::string spawnTurtle (const std::string &name, float x, float y, float angle)
 
std::string spawnTurtle (const std::string &name, float x, float y, float angle, size_t index)
 
 TurtleFrame (QWidget *parent=0, Qt::WindowFlags f=0)
 
 ~TurtleFrame ()
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 

Private Types

typedef std::map< std::string, TurtlePtrM_Turtle
 

Private Slots

void onUpdate ()
 

Private Member Functions

void clear ()
 
bool clearCallback (std_srvs::Empty::Request &, std_srvs::Empty::Response &)
 
bool hasTurtle (const std::string &name)
 
bool killCallback (turtlesim::Kill::Request &, turtlesim::Kill::Response &)
 
bool resetCallback (std_srvs::Empty::Request &, std_srvs::Empty::Response &)
 
bool spawnCallback (turtlesim::Spawn::Request &, turtlesim::Spawn::Response &)
 
void updateTurtles ()
 

Private Attributes

ros::ServiceServer clear_srv_
 
uint64_t frame_count_
 
float height_in_meters_
 
uint32_t id_counter_
 
ros::ServiceServer kill_srv_
 
ros::WallTime last_turtle_update_
 
float meter_
 
ros::NodeHandle nh_
 
QImage path_image_
 
QPainter path_painter_
 
ros::ServiceServer reset_srv_
 
ros::ServiceServer spawn_srv_
 
QVector< QImage > turtle_images_
 
M_Turtle turtles_
 
QTimer * update_timer_
 
float width_in_meters_
 

Detailed Description

Definition at line 52 of file turtle_frame.h.

Member Typedef Documentation

typedef std::map<std::string, TurtlePtr> turtlesim::TurtleFrame::M_Turtle
private

Definition at line 92 of file turtle_frame.h.

Constructor & Destructor Documentation

turtlesim::TurtleFrame::TurtleFrame ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Definition at line 45 of file turtle_frame.cpp.

turtlesim::TurtleFrame::~TurtleFrame ( )

Definition at line 117 of file turtle_frame.cpp.

Member Function Documentation

void turtlesim::TurtleFrame::clear ( )
private

Definition at line 190 of file turtle_frame.cpp.

bool turtlesim::TurtleFrame::clearCallback ( std_srvs::Empty::Request &  ,
std_srvs::Empty::Response &   
)
private

Definition at line 254 of file turtle_frame.cpp.

bool turtlesim::TurtleFrame::hasTurtle ( const std::string &  name)
private

Definition at line 151 of file turtle_frame.cpp.

bool turtlesim::TurtleFrame::killCallback ( turtlesim::Kill::Request &  req,
turtlesim::Kill::Response &   
)
private

Definition at line 136 of file turtle_frame.cpp.

void turtlesim::TurtleFrame::onUpdate ( )
privateslot

Definition at line 204 of file turtle_frame.cpp.

void turtlesim::TurtleFrame::paintEvent ( QPaintEvent *  event)
protected

Definition at line 216 of file turtle_frame.cpp.

bool turtlesim::TurtleFrame::resetCallback ( std_srvs::Empty::Request &  ,
std_srvs::Empty::Response &   
)
private

Definition at line 261 of file turtle_frame.cpp.

bool turtlesim::TurtleFrame::spawnCallback ( turtlesim::Spawn::Request &  req,
turtlesim::Spawn::Response &  res 
)
private

Definition at line 122 of file turtle_frame.cpp.

std::string turtlesim::TurtleFrame::spawnTurtle ( const std::string &  name,
float  x,
float  y,
float  angle 
)

Definition at line 156 of file turtle_frame.cpp.

std::string turtlesim::TurtleFrame::spawnTurtle ( const std::string &  name,
float  x,
float  y,
float  angle,
size_t  index 
)

Definition at line 161 of file turtle_frame.cpp.

void turtlesim::TurtleFrame::updateTurtles ( )
private

Definition at line 230 of file turtle_frame.cpp.

Member Data Documentation

ros::ServiceServer turtlesim::TurtleFrame::clear_srv_
private

Definition at line 87 of file turtle_frame.h.

uint64_t turtlesim::TurtleFrame::frame_count_
private

Definition at line 83 of file turtle_frame.h.

float turtlesim::TurtleFrame::height_in_meters_
private

Definition at line 100 of file turtle_frame.h.

uint32_t turtlesim::TurtleFrame::id_counter_
private

Definition at line 94 of file turtle_frame.h.

ros::ServiceServer turtlesim::TurtleFrame::kill_srv_
private

Definition at line 90 of file turtle_frame.h.

ros::WallTime turtlesim::TurtleFrame::last_turtle_update_
private

Definition at line 85 of file turtle_frame.h.

float turtlesim::TurtleFrame::meter_
private

Definition at line 98 of file turtle_frame.h.

ros::NodeHandle turtlesim::TurtleFrame::nh_
private

Definition at line 78 of file turtle_frame.h.

QImage turtlesim::TurtleFrame::path_image_
private

Definition at line 80 of file turtle_frame.h.

QPainter turtlesim::TurtleFrame::path_painter_
private

Definition at line 81 of file turtle_frame.h.

ros::ServiceServer turtlesim::TurtleFrame::reset_srv_
private

Definition at line 88 of file turtle_frame.h.

ros::ServiceServer turtlesim::TurtleFrame::spawn_srv_
private

Definition at line 89 of file turtle_frame.h.

QVector<QImage> turtlesim::TurtleFrame::turtle_images_
private

Definition at line 96 of file turtle_frame.h.

M_Turtle turtlesim::TurtleFrame::turtles_
private

Definition at line 93 of file turtle_frame.h.

QTimer* turtlesim::TurtleFrame::update_timer_
private

Definition at line 79 of file turtle_frame.h.

float turtlesim::TurtleFrame::width_in_meters_
private

Definition at line 99 of file turtle_frame.h.


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


turtlesim
Author(s): Josh Faust
autogenerated on Fri Jun 7 2019 22:01:46