Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
turtlesim::Turtle Class Reference

#include <turtle.h>

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< TeleportRequestV_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 geometry_msgs::Twist::ConstPtr &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

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 209 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 geometry_msgs::Twist::ConstPtr &  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.

ros::Publisher turtlesim::Turtle::color_pub_
private

Definition at line 86 of file turtle.h.

ros::WallTime turtlesim::Turtle::last_command_time_
private

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.

ros::NodeHandle turtlesim::Turtle::nh_
private

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.

bool turtlesim::Turtle::pen_on_
private

Definition at line 81 of file turtle.h.

QPointF turtlesim::Turtle::pos_
private

Definition at line 76 of file turtle.h.

ros::Publisher turtlesim::Turtle::pose_pub_
private

Definition at line 85 of file turtle.h.

ros::ServiceServer turtlesim::Turtle::set_pen_srv_
private

Definition at line 87 of file turtle.h.

ros::ServiceServer turtlesim::Turtle::teleport_absolute_srv_
private

Definition at line 89 of file turtle.h.

ros::ServiceServer turtlesim::Turtle::teleport_relative_srv_
private

Definition at line 88 of file turtle.h.

V_TeleportRequest turtlesim::Turtle::teleport_requests_
private

Definition at line 110 of file turtle.h.

QImage turtlesim::Turtle::turtle_image_
private

Definition at line 73 of file turtle.h.

QImage turtlesim::Turtle::turtle_rotated_image_
private

Definition at line 74 of file turtle.h.

ros::Subscriber turtlesim::Turtle::velocity_sub_
private

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 Fri Jun 7 2019 22:01:46