Project

General

Profile

Revision 43811241

ID43811241b4b22dba6e0abbbbb16af2e6ef041c0d

Added by Alex Zirbel over 11 years ago

Added services to set individual control for visualization tools.

However, there is a bug in the sonar viz for multiple scouts, looking into it now.

View differences:

scout/scoutsim/src/scout.h
112 112
                  const Vector2& pos, wxBitmap *path_bitmap, float orient);
113 113

  
114 114
            geometry_msgs::Pose2D update(double dt, wxMemoryDC& path_dc,
115
					 wxMemoryDC& sonar_dc,
116
                     bool sonar_visual,
115
                                         wxMemoryDC& sonar_dc,
117 116
                                         const wxImage& path_image,
118 117
                                         const wxImage& lines_image,
119 118
                                         const wxImage& walls_image,
120 119
                                         wxColour background_color,
121
         				 wxColour sonar_color,
120
                                         wxColour sonar_color,
122 121
                                         world_state state);
123 122
            void paint(wxDC& dc);
123
            void set_sonar_visual(bool on);
124 124

  
125 125
        private:
126 126
            float absolute_to_mps(int absolute_speed);

Also available in: Unified diff