turtlesim::Turtle Class Reference

#include <turtle.h>

List of all members.


struct  TeleportRequest

Public Member Functions

void paint (wxDC &dc)
 Turtle (const ros::NodeHandle &nh, const wxImage &turtle_image, const Vector2 &pos, float orient)
void update (double dt, wxMemoryDC &path_dc, const wxImage &path_image, wxColour background_color, float canvas_width, float canvas_height)

Private Types

typedef std::vector
< TeleportRequest

Private Member Functions

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

float ang_vel_
ros::Publisher color_pub_
ros::WallTime last_command_time_
float lin_vel_
float meter_
ros::NodeHandle nh_
float orient_
wxPen pen_
bool pen_on_
Vector2 pos_
ros::Publisher pose_pub_
ros::ServiceServer set_pen_srv_
ros::ServiceServer teleport_absolute_srv_
ros::ServiceServer teleport_relative_srv_
V_TeleportRequest teleport_requests_
wxBitmap turtle_
wxImage turtle_image_
ros::Subscriber velocity_sub_

Detailed Description

Definition at line 76 of file turtle.h.

Member Typedef Documentation

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

Definition at line 127 of file turtle.h.

Constructor & Destructor Documentation

turtlesim::Turtle::Turtle ( const ros::NodeHandle &  nh,
const wxImage &  turtle_image,
const Vector2 pos,
float  orient 

Definition at line 41 of file turtle.cpp.

Member Function Documentation

void turtlesim::Turtle::paint ( wxDC &  dc  ) 

Definition at line 203 of file turtle.cpp.

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

Definition at line 72 of file turtle.cpp.

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

Definition at line 96 of file turtle.cpp.

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

Definition at line 90 of file turtle.cpp.

void turtlesim::Turtle::update ( double  dt,
wxMemoryDC &  path_dc,
const wxImage &  path_image,
wxColour  background_color,
float  canvas_width,
float  canvas_height 

Definition at line 102 of file turtle.cpp.

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

Definition at line 65 of file turtle.cpp.

Member Data Documentation

float turtlesim::Turtle::ang_vel_ [private]

Definition at line 98 of file turtle.h.

ros::Publisher turtlesim::Turtle::color_pub_ [private]

Definition at line 104 of file turtle.h.

ros::WallTime turtlesim::Turtle::last_command_time_ [private]

Definition at line 109 of file turtle.h.

float turtlesim::Turtle::lin_vel_ [private]

Definition at line 97 of file turtle.h.

float turtlesim::Turtle::meter_ [private]

Definition at line 111 of file turtle.h.

ros::NodeHandle turtlesim::Turtle::nh_ [private]

Definition at line 89 of file turtle.h.

float turtlesim::Turtle::orient_ [private]

Definition at line 95 of file turtle.h.

wxPen turtlesim::Turtle::pen_ [private]

Definition at line 100 of file turtle.h.

Definition at line 99 of file turtle.h.

Definition at line 94 of file turtle.h.

ros::Publisher turtlesim::Turtle::pose_pub_ [private]

Definition at line 103 of file turtle.h.

ros::ServiceServer turtlesim::Turtle::set_pen_srv_ [private]

Definition at line 105 of file turtle.h.

ros::ServiceServer turtlesim::Turtle::teleport_absolute_srv_ [private]

Definition at line 107 of file turtle.h.

ros::ServiceServer turtlesim::Turtle::teleport_relative_srv_ [private]

Definition at line 106 of file turtle.h.

Definition at line 128 of file turtle.h.

wxBitmap turtlesim::Turtle::turtle_ [private]

Definition at line 92 of file turtle.h.

Definition at line 91 of file turtle.h.

ros::Subscriber turtlesim::Turtle::velocity_sub_ [private]

Definition at line 102 of file turtle.h.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines

Author(s): Josh Faust
autogenerated on Fri Jan 11 09:54:39 2013