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/src/turtle_frame.cpp
39 39
#define DEFAULT_BG_G 0x56
40 40
#define DEFAULT_BG_B 0xff
41 41

  
42
namespace turtlesim
42
namespace turtlesim_ref
43 43
{
44 44

  
45 45
TurtleFrame::TurtleFrame(QWidget* parent, Qt::WindowFlags f)
......
103 103
  delete update_timer_;
104 104
}
105 105

  
106
bool TurtleFrame::spawnCallback(turtlesim::Spawn::Request& req, turtlesim::Spawn::Response& res)
106
bool TurtleFrame::spawnCallback(turtlesim_ref::Spawn::Request& req, 
107
				turtlesim_ref::Spawn::Response& res)
107 108
{
108 109
  std::string name = spawnTurtle(req.name, req.x, req.y, req.theta);
109 110
  if (name.empty())
......
117 118
  return true;
118 119
}
119 120

  
120
bool TurtleFrame::killCallback(turtlesim::Kill::Request& req, turtlesim::Kill::Response&)
121
bool TurtleFrame::killCallback(turtlesim_ref::Kill::Request& req, 
122
			       turtlesim_ref::Kill::Response&)
121 123
{
122 124
  M_Turtle::iterator it = turtles_.find(req.name);
123 125
  if (it == turtles_.end())

Also available in: Unified diff