Project

General

Profile

Revision dd5d7f53

IDdd5d7f53f35da669816c1c93b173eed3bfa0e962
Parent 3f5aa522
Child 071e2c1c

Added by tahm over 10 years ago

Converted back to msgs, before pushing to roboclub VCS

View differences:

turtlesim_ref/include/turtlesim/turtle.h
35 35
# include <ros/ros.h>
36 36
# include <boost/shared_ptr.hpp>
37 37

  
38
# include <turtlesim/Pose.h>
39
#include <turtlesim/Velocity.h>
40
# include <turtlesim/SetPen.h>
41
# include <turtlesim/TeleportRelative.h>
42
# include <turtlesim/TeleportAbsolute.h>
43
# include <turtlesim/Color.h>
38
# include <turtlesim_ref/Pose.h>
39
# include <turtlesim_ref/Velocity.h>
40
# include <turtlesim_ref/SetPen.h>
41
# include <turtlesim_ref/TeleportRelative.h>
42
# include <turtlesim_ref/TeleportAbsolute.h>
43
# include <turtlesim_ref/Color.h>
44 44
#endif
45 45

  
46 46
#include <QImage>
......
50 50

  
51 51
#define PI 3.14159265
52 52

  
53
namespace turtlesim
53
namespace turtlesim_ref
54 54
{
55 55

  
56 56
class Turtle
......
61 61
  bool update(double dt, QPainter& path_painter, const QImage& path_image, qreal canvas_width, qreal canvas_height);
62 62
  void paint(QPainter &painter);
63 63
private:
64
  void velocityCallback(const VelocityConstPtr& vel);
65
  bool setPenCallback(turtlesim::SetPen::Request&, turtlesim::SetPen::Response&);
66
  bool teleportRelativeCallback(turtlesim::TeleportRelative::Request&, turtlesim::TeleportRelative::Response&);
67
  bool teleportAbsoluteCallback(turtlesim::TeleportAbsolute::Request&, turtlesim::TeleportAbsolute::Response&);
64
  void velocityCallback(const turtlesim_ref::VelocityConstPtr& vel);
65
  bool setPenCallback(turtlesim_ref::SetPen::Request&, turtlesim_ref::SetPen::Response&);
66
  bool teleportRelativeCallback(turtlesim_ref::TeleportRelative::Request&, turtlesim_ref::TeleportRelative::Response&);
67
  bool teleportAbsoluteCallback(turtlesim_ref::TeleportAbsolute::Request&, turtlesim_ref::TeleportAbsolute::Response&);
68 68

  
69 69
  void rotateImage();
70 70

  

Also available in: Unified diff