Revision 594c3bb9
ID | 594c3bb9eb72bd9cd1a22685345ea66612634e78 |
Loads specific images for each scout if they exist
Otherwise, looks in the images folder for scout.png.
Added a few default scouts with numbers, and the xcf files they were created from.
scout/scoutsim/src/sim_frame.h | ||
---|---|---|
51 | 51 |
#include <wx/string.h> |
52 | 52 |
#include <wx/utils.h> |
53 | 53 |
|
54 |
#include <sys/stat.h> |
|
55 |
|
|
54 | 56 |
#include <ros/ros.h> |
55 | 57 |
|
56 | 58 |
#include <std_srvs/Empty.h> |
... | ... | |
111 | 113 |
void onUpdate(wxTimerEvent& evt); |
112 | 114 |
void onPaint(wxPaintEvent& evt); |
113 | 115 |
|
116 |
bool fileExists(const std::string& filename); |
|
117 |
|
|
114 | 118 |
void teleop_move_precise(); |
115 | 119 |
void teleop_move_fluid(); |
116 | 120 |
void teleop(); |
... | ... | |
160 | 164 |
M_Scout scouts; |
161 | 165 |
uint32_t id_counter; |
162 | 166 |
|
163 |
wxImage scout_images[SCOUTSIM_NUM_SCOUTS];
|
|
167 |
std::string images_path;
|
|
164 | 168 |
|
165 | 169 |
float meter; |
166 | 170 |
float width_in_meters; |
Also available in: Unified diff