33 #include <QPaintEvent> 38 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829 41 # include <std_srvs/Empty.h> 42 # include <turtlesim/Spawn.h> 43 # include <turtlesim/Kill.h> 59 std::string
spawnTurtle(
const std::string& name,
float x,
float y,
float angle);
60 std::string
spawnTurtle(
const std::string& name,
float x,
float y,
float angle,
size_t index);
73 bool clearCallback(std_srvs::Empty::Request&, std_srvs::Empty::Response&);
74 bool resetCallback(std_srvs::Empty::Request&, std_srvs::Empty::Response&);
75 bool spawnCallback(turtlesim::Spawn::Request&, turtlesim::Spawn::Response&);
76 bool killCallback(turtlesim::Kill::Request&, turtlesim::Kill::Response&);
92 typedef std::map<std::string, TurtlePtr>
M_Turtle;
bool hasTurtle(const std::string &name)
bool spawnCallback(turtlesim::Spawn::Request &, turtlesim::Spawn::Response &)
ros::ServiceServer kill_srv_
bool clearCallback(std_srvs::Empty::Request &, std_srvs::Empty::Response &)
void paintEvent(QPaintEvent *event)
ros::ServiceServer clear_srv_
TurtleFrame(QWidget *parent=0, Qt::WindowFlags f=0)
bool killCallback(turtlesim::Kill::Request &, turtlesim::Kill::Response &)
bool resetCallback(std_srvs::Empty::Request &, std_srvs::Empty::Response &)
ros::ServiceServer spawn_srv_
ros::ServiceServer reset_srv_
std::string spawnTurtle(const std::string &name, float x, float y, float angle)
ros::WallTime last_turtle_update_
QVector< QImage > turtle_images_
std::map< std::string, TurtlePtr > M_Turtle