11.07.2015 Views

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

System Introspection for System Analysis on Mobile Devices

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The selected sensors give a good impressi<strong>on</strong> the data collected <strong>on</strong> differenttasks the robot can per<str<strong>on</strong>g>for</str<strong>on</strong>g>m. Laser and SLAM sensors are used <str<strong>on</strong>g>for</str<strong>on</strong>g> navigati<strong>on</strong>,pers<strong>on</strong> and speech sensor represent in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> needed <str<strong>on</strong>g>for</str<strong>on</strong>g> human-machineinteracti<strong>on</strong>.The USB camera was used <str<strong>on</strong>g>for</str<strong>on</strong>g> testing the capability of sendingbigger payloads by using higher frequencies. Laser and SLAM sensors providetheir data as arrays of numbers and some additi<strong>on</strong>ally in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> about therobot positi<strong>on</strong>. To filter this data the different arrays have been translated toa visual presentati<strong>on</strong> as image. The additi<strong>on</strong>al data, like the positi<strong>on</strong> of therobot, is added to each images. XMPP does not support binary attachment.In order to still send the image, each image is decoded to a string by usingbase64 2 and then attached to a new message. On the client side the stringis encoded with base64 back to an image. Base64 allows to translate a bytearray to a string and vice versa. The same principle has been used <str<strong>on</strong>g>for</str<strong>on</strong>g> sendingimages captured by the USB camera. The data of the pers<strong>on</strong> sensor and thespeech sensor is provided as string c<strong>on</strong>taining in<str<strong>on</strong>g>for</str<strong>on</strong>g>mati<strong>on</strong> about spoken wordsor angle of leg pairs from pers<strong>on</strong>s standing in fr<strong>on</strong>t of the robot. This data isadded as normal String-pair to a message.Each implemented comp<strong>on</strong>ent thread c<strong>on</strong>trolling an actuator can receive specificcommands which are <str<strong>on</strong>g>for</str<strong>on</strong>g>warded to the robot via the comp<strong>on</strong>ent holder.The comp<strong>on</strong>ent thread <str<strong>on</strong>g>for</str<strong>on</strong>g> the navigati<strong>on</strong> actuator can receive X/Y coordinates<str<strong>on</strong>g>for</str<strong>on</strong>g> navigati<strong>on</strong> or direct commands like “manual_stop“. The comp<strong>on</strong>entthread communicating with the speech actuator parses the sentence to be spokenand calls the corresp<strong>on</strong>ding functi<strong>on</strong> <strong>on</strong> the speech actuator by using thecomp<strong>on</strong>ent holder.6.4 ClientThe design <str<strong>on</strong>g>for</str<strong>on</strong>g> the client described in chapter 5.3 has been implemented <strong>on</strong> thethe android operati<strong>on</strong> system and <strong>on</strong> a comm<strong>on</strong> computer. To display the dataof the comp<strong>on</strong>ent threads a tabbed navigati<strong>on</strong> system is implemented in bothclients presenting data inside tab views. Although the views presented can besimilar implemented, the system in the background <str<strong>on</strong>g>for</str<strong>on</strong>g> c<strong>on</strong>trolling the viewsis different <str<strong>on</strong>g>for</str<strong>on</strong>g> the clients. On mobile devices the resources are very limitedcompared to the comm<strong>on</strong> computer. At the time of this thesis a mobile deviceis not capable of using multi-cores <str<strong>on</strong>g>for</str<strong>on</strong>g> threading. On the comm<strong>on</strong> computermore resources are available which allows to use more resources and displaymore views at <strong>on</strong>ce. For example two views presenting the laser data and thenavigati<strong>on</strong> planing can be combined inside <strong>on</strong>e view. The following secti<strong>on</strong>gives an introducti<strong>on</strong> of the implementati<strong>on</strong> <strong>on</strong> both systems.2 http://www.webcitati<strong>on</strong>.org/5x3gUQW3U - Base64 (RFC 4648)42

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

Saved successfully!

Ooh no, something went wrong!