Go to the documentation of this file.
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&);
93 typedef std::map<std::string, TurtlePtr>
M_Turtle;
TurtleFrame(QWidget *parent=0, Qt::WindowFlags f=0)
bool killCallback(turtlesim::Kill::Request &, turtlesim::Kill::Response &)
ros::ServiceServer reset_srv_
std::string spawnTurtle(const std::string &name, float x, float y, float angle)
bool spawnCallback(turtlesim::Spawn::Request &, turtlesim::Spawn::Response &)
ros::WallTime last_turtle_update_
ros::ServiceServer spawn_srv_
bool clearCallback(std_srvs::Empty::Request &, std_srvs::Empty::Response &)
ros::ServiceServer kill_srv_
void paintEvent(QPaintEvent *event)
ros::ServiceServer clear_srv_
QVector< QImage > turtle_images_
std::map< std::string, TurtlePtr > M_Turtle
bool resetCallback(std_srvs::Empty::Request &, std_srvs::Empty::Response &)
ros::NodeHandle private_nh_
bool hasTurtle(const std::string &name)
turtlesim
Author(s): Josh Faust, Dirk Thomas
autogenerated on Sat Apr 12 2025 02:28:03