13.08.2018 Views

[Studies in Computational Intelligence 481] Artur Babiarz, Robert Bieda, Karol Jędrasiak, Aleksander Nawrat (auth.), Aleksander Nawrat, Zygmunt Kuś (eds.) - Vision Based Systemsfor UAV Applications (2013, Sprin

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

168 A. <strong>Babiarz</strong>, R. <strong>Bieda</strong>, and K. Jaskot<br />

speed is be<strong>in</strong>g limited due to the distance of edge at approximately 0.18 from<br />

the edge <strong>in</strong> case of 0.6 global speed limitation.<br />

<br />

4.2 Distance Measurements<br />

The speed limit is parameterized by the distance to edge. That value has to be<br />

calculated. And <strong>in</strong> fact we do not want the m<strong>in</strong>imal absolute distance from the<br />

edge (see Figure 12, as this could cause a lock down - i.e. the robot speed would<br />

be limited to 0 without any chance of further movement.<br />

Fig. 12. M<strong>in</strong>imal absolute distance from the edge<br />

The better choice is to calculate distance to the edge <strong>in</strong> robot forward and<br />

backward orientations (see Figure 13). Even if the speed was limited to 0 at the<br />

edge, robot could still turn, mak<strong>in</strong>g possible the <strong>in</strong>crease of the distance and eventually<br />

to move aga<strong>in</strong>. This is however harder approach.<br />

Fig. 13. Distance from the edge <strong>in</strong> forward and backward orientations<br />

Hav<strong>in</strong>g coord<strong>in</strong>ates of the robot and size of the playground, we can calculate<br />

easily the absolute distances from the edges (see Figure 14):<br />

(10)<br />

2<br />

(11)<br />

2<br />

<br />

2<br />

<br />

2<br />

(12)<br />

(13)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!