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.

<strong>Vision</strong> System for Group of Mobile Robots 149<br />

smaller than m<strong>in</strong>imal width or height of objects of <strong>in</strong>terest. The implementation<br />

presented above additionally presumes that <strong>in</strong>put image consists of two values<br />

only: 0 for background and 255 for foreground objects.<br />

2.7 Estimation of Object’s Position and Orientation<br />

<strong>Vision</strong> algorithm is capable of precise estimation of position of all robots and ball<br />

and orientation of robots only. (Quite naturally, orientation is not calculated for<br />

a ball). Robots could be <strong>in</strong>terpreted as agents and the approach of plann<strong>in</strong>g could<br />

be used [9]. However , real time applications requires fast adaptation to changes.<br />

Therefore different approach was used. The method used here is described <strong>in</strong> more<br />

detail <strong>in</strong> [16]. Calculations are done <strong>in</strong> four stages. First, for each object, the follow<strong>in</strong>g<br />

<strong>in</strong>tegrals are calculated:<br />

<br />

<br />

(16)<br />

<br />

<br />

(17)<br />

<br />

(18)<br />

<br />

Where is a region occupied by the object, is its area and and are static<br />

moments. Next, the position of each object is found from the formulas describ<strong>in</strong>g<br />

center of the mass:<br />

<br />

<br />

(19)<br />

<br />

<br />

Then the angle of ma<strong>in</strong> axis of <strong>in</strong>ertia is calculated for each robot and f<strong>in</strong>ally, the<br />

direction of this axis is chosen, as the algorithm for f<strong>in</strong>d<strong>in</strong>g the angle of ma<strong>in</strong> axis<br />

of <strong>in</strong>ertia can’t do that automatically and additional heuristics is needed. These<br />

two stages are described <strong>in</strong> more detail <strong>in</strong> sections below.<br />

2.8 Angle of Ma<strong>in</strong> Axis of Inertia<br />

Estimat<strong>in</strong>g the orientation of robot on the basis of ma<strong>in</strong> axis of <strong>in</strong>ertia is possible<br />

thanks to the special shape of the color marker placed on the top of each robot.<br />

The shape is presented on Figure 6.<br />

(20)

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

Saved successfully!

Ooh no, something went wrong!