Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
turtlesim::Turtle Class Reference

#include <turtle.h>

List of all members.

Classes

struct  TeleportRequest

Public Member Functions

void paint (QPainter &painter)
 Turtle (const ros::NodeHandle &nh, const QImage &turtle_image, const QPointF &pos, float orient)
bool update (double dt, QPainter &path_painter, const QImage &path_image, qreal canvas_width, qreal canvas_height)

Private Types

typedef std::vector
< TeleportRequest
V_TeleportRequest

Private Member Functions

void rotateImage ()
bool setPenCallback (turtlesim::SetPen::Request &, turtlesim::SetPen::Response &)
bool teleportAbsoluteCallback (turtlesim::TeleportAbsolute::Request &, turtlesim::TeleportAbsolute::Response &)
bool teleportRelativeCallback (turtlesim::TeleportRelative::Request &, turtlesim::TeleportRelative::Response &)
void velocityCallback (const VelocityConstPtr &vel)

Private Attributes

qreal ang_vel_
ros::Publisher color_pub_
ros::WallTime last_command_time_
qreal lin_vel_
float meter_
ros::NodeHandle nh_
qreal orient_
QPen pen_
bool pen_on_
QPointF pos_
ros::Publisher pose_pub_
ros::ServiceServer set_pen_srv_
ros::ServiceServer teleport_absolute_srv_
ros::ServiceServer teleport_relative_srv_
V_TeleportRequest teleport_requests_
QImage turtle_image_
QImage turtle_rotated_image_
ros::Subscriber velocity_sub_

Detailed Description

Definition at line 56 of file turtle.h.


Member Typedef Documentation

typedef std::vector<TeleportRequest> turtlesim::Turtle::V_TeleportRequest [private]

Definition at line 109 of file turtle.h.


Constructor & Destructor Documentation

turtlesim::Turtle::Turtle ( const ros::NodeHandle nh,
const QImage &  turtle_image,
const QPointF &  pos,
float  orient 
)

Definition at line 42 of file turtle.cpp.


Member Function Documentation

void turtlesim::Turtle::paint ( QPainter &  painter)

Definition at line 204 of file turtle.cpp.

void turtlesim::Turtle::rotateImage ( ) [private]

Definition at line 103 of file turtle.cpp.

bool turtlesim::Turtle::setPenCallback ( turtlesim::SetPen::Request &  req,
turtlesim::SetPen::Response &   
) [private]

Definition at line 73 of file turtle.cpp.

bool turtlesim::Turtle::teleportAbsoluteCallback ( turtlesim::TeleportAbsolute::Request &  req,
turtlesim::TeleportAbsolute::Response &   
) [private]

Definition at line 97 of file turtle.cpp.

bool turtlesim::Turtle::teleportRelativeCallback ( turtlesim::TeleportRelative::Request &  req,
turtlesim::TeleportRelative::Response &   
) [private]

Definition at line 91 of file turtle.cpp.

bool turtlesim::Turtle::update ( double  dt,
QPainter &  path_painter,
const QImage &  path_image,
qreal  canvas_width,
qreal  canvas_height 
)

Definition at line 110 of file turtle.cpp.

void turtlesim::Turtle::velocityCallback ( const VelocityConstPtr &  vel) [private]

Definition at line 66 of file turtle.cpp.


Member Data Documentation

qreal turtlesim::Turtle::ang_vel_ [private]

Definition at line 80 of file turtle.h.

Definition at line 86 of file turtle.h.

Definition at line 91 of file turtle.h.

qreal turtlesim::Turtle::lin_vel_ [private]

Definition at line 79 of file turtle.h.

float turtlesim::Turtle::meter_ [private]

Definition at line 93 of file turtle.h.

Definition at line 71 of file turtle.h.

qreal turtlesim::Turtle::orient_ [private]

Definition at line 77 of file turtle.h.

QPen turtlesim::Turtle::pen_ [private]

Definition at line 82 of file turtle.h.

Definition at line 81 of file turtle.h.

QPointF turtlesim::Turtle::pos_ [private]

Definition at line 76 of file turtle.h.

Definition at line 85 of file turtle.h.

Definition at line 87 of file turtle.h.

Definition at line 89 of file turtle.h.

Definition at line 88 of file turtle.h.

Definition at line 110 of file turtle.h.

Definition at line 73 of file turtle.h.

Definition at line 74 of file turtle.h.

Definition at line 84 of file turtle.h.


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


turtlesim
Author(s): Josh Faust
autogenerated on Mon Oct 6 2014 06:54:52