$search
#include <turtle_frame.h>
Public Member Functions | |
std::string | spawnTurtle (const std::string &name, float x, float y, float angle) |
TurtleFrame (wxWindow *parent) | |
~TurtleFrame () | |
Private Types | |
typedef std::map< std::string, TurtlePtr > | M_Turtle |
Private Member Functions | |
void | clear () |
bool | clearCallback (std_srvs::Empty::Request &, std_srvs::Empty::Response &) |
bool | hasTurtle (const std::string &name) |
bool | killCallback (turtlesim::Kill::Request &, turtlesim::Kill::Response &) |
void | onPaint (wxPaintEvent &evt) |
void | onUpdate (wxTimerEvent &evt) |
bool | resetCallback (std_srvs::Empty::Request &, std_srvs::Empty::Response &) |
bool | spawnCallback (turtlesim::Spawn::Request &, turtlesim::Spawn::Response &) |
void | updateTurtles () |
Private Attributes | |
ros::ServiceServer | clear_srv_ |
uint64_t | frame_count_ |
float | height_in_meters_ |
uint32_t | id_counter_ |
ros::ServiceServer | kill_srv_ |
ros::WallTime | last_turtle_update_ |
float | meter_ |
ros::NodeHandle | nh_ |
wxBitmap | path_bitmap_ |
wxMemoryDC | path_dc_ |
wxImage | path_image_ |
ros::ServiceServer | reset_srv_ |
ros::ServiceServer | spawn_srv_ |
wxImage | turtle_images_ [TURTLESIM_NUM_TURTLES] |
M_Turtle | turtles_ |
wxTimer * | update_timer_ |
float | width_in_meters_ |
Definition at line 48 of file turtle_frame.h.
typedef std::map<std::string, TurtlePtr> turtlesim::TurtleFrame::M_Turtle [private] |
Definition at line 84 of file turtle_frame.h.
turtlesim::TurtleFrame::TurtleFrame | ( | wxWindow * | parent | ) |
Definition at line 43 of file turtle_frame.cpp.
turtlesim::TurtleFrame::~TurtleFrame | ( | ) |
Definition at line 95 of file turtle_frame.cpp.
void turtlesim::TurtleFrame::clear | ( | ) | [private] |
Definition at line 161 of file turtle_frame.cpp.
bool turtlesim::TurtleFrame::clearCallback | ( | std_srvs::Empty::Request & | , | |
std_srvs::Empty::Response & | ||||
) | [private] |
Definition at line 226 of file turtle_frame.cpp.
bool turtlesim::TurtleFrame::hasTurtle | ( | const std::string & | name | ) | [private] |
Definition at line 128 of file turtle_frame.cpp.
bool turtlesim::TurtleFrame::killCallback | ( | turtlesim::Kill::Request & | req, | |
turtlesim::Kill::Response & | ||||
) | [private] |
Definition at line 114 of file turtle_frame.cpp.
void turtlesim::TurtleFrame::onPaint | ( | wxPaintEvent & | evt | ) | [private] |
Definition at line 187 of file turtle_frame.cpp.
void turtlesim::TurtleFrame::onUpdate | ( | wxTimerEvent & | evt | ) | [private] |
Definition at line 175 of file turtle_frame.cpp.
bool turtlesim::TurtleFrame::resetCallback | ( | std_srvs::Empty::Request & | , | |
std_srvs::Empty::Response & | ||||
) | [private] |
Definition at line 233 of file turtle_frame.cpp.
bool turtlesim::TurtleFrame::spawnCallback | ( | turtlesim::Spawn::Request & | req, | |
turtlesim::Spawn::Response & | res | |||
) | [private] |
Definition at line 100 of file turtle_frame.cpp.
std::string turtlesim::TurtleFrame::spawnTurtle | ( | const std::string & | name, | |
float | x, | |||
float | y, | |||
float | angle | |||
) |
Definition at line 133 of file turtle_frame.cpp.
void turtlesim::TurtleFrame::updateTurtles | ( | ) | [private] |
Definition at line 201 of file turtle_frame.cpp.
Definition at line 79 of file turtle_frame.h.
uint64_t turtlesim::TurtleFrame::frame_count_ [private] |
Definition at line 75 of file turtle_frame.h.
float turtlesim::TurtleFrame::height_in_meters_ [private] |
Definition at line 92 of file turtle_frame.h.
uint32_t turtlesim::TurtleFrame::id_counter_ [private] |
Definition at line 86 of file turtle_frame.h.
Definition at line 82 of file turtle_frame.h.
Definition at line 77 of file turtle_frame.h.
float turtlesim::TurtleFrame::meter_ [private] |
Definition at line 90 of file turtle_frame.h.
ros::NodeHandle turtlesim::TurtleFrame::nh_ [private] |
Definition at line 69 of file turtle_frame.h.
wxBitmap turtlesim::TurtleFrame::path_bitmap_ [private] |
Definition at line 71 of file turtle_frame.h.
wxMemoryDC turtlesim::TurtleFrame::path_dc_ [private] |
Definition at line 73 of file turtle_frame.h.
wxImage turtlesim::TurtleFrame::path_image_ [private] |
Definition at line 72 of file turtle_frame.h.
Definition at line 80 of file turtle_frame.h.
Definition at line 81 of file turtle_frame.h.
wxImage turtlesim::TurtleFrame::turtle_images_[TURTLESIM_NUM_TURTLES] [private] |
Definition at line 88 of file turtle_frame.h.
M_Turtle turtlesim::TurtleFrame::turtles_ [private] |
Definition at line 85 of file turtle_frame.h.
wxTimer* turtlesim::TurtleFrame::update_timer_ [private] |
Definition at line 70 of file turtle_frame.h.
float turtlesim::TurtleFrame::width_in_meters_ [private] |
Definition at line 91 of file turtle_frame.h.