#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 < 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 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_ |
typedef std::vector<TeleportRequest> turtlesim::Turtle::V_TeleportRequest [private] |
turtlesim::Turtle::Turtle | ( | const ros::NodeHandle & | nh, |
const QImage & | turtle_image, | ||
const QPointF & | pos, | ||
float | orient | ||
) |
Definition at line 42 of file turtle.cpp.
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 geometry_msgs::Twist::ConstPtr & | vel | ) | [private] |
Definition at line 66 of file turtle.cpp.
qreal turtlesim::Turtle::ang_vel_ [private] |
ros::Publisher turtlesim::Turtle::color_pub_ [private] |
qreal turtlesim::Turtle::lin_vel_ [private] |
float turtlesim::Turtle::meter_ [private] |
ros::NodeHandle turtlesim::Turtle::nh_ [private] |
qreal turtlesim::Turtle::orient_ [private] |
QPen turtlesim::Turtle::pen_ [private] |
bool turtlesim::Turtle::pen_on_ [private] |
QPointF turtlesim::Turtle::pos_ [private] |
ros::Publisher turtlesim::Turtle::pose_pub_ [private] |
QImage turtlesim::Turtle::turtle_image_ [private] |
QImage turtlesim::Turtle::turtle_rotated_image_ [private] |