<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1568445665356514244</id><updated>2026-09-02T16:24:05.856+02:00</updated><category term="beagleboard"/><category term="vehicle"/><category term="control"/><category term="robot"/><category term="omap"/><category term="remote"/><category term="gstreamer"/><category term="real-time"/><category term="streaming"/><category term="video"/><category term="veter"/><category term="conference"/><category term="localization"/><category term="opencv"/><category term="veterobot"/><category term="xenomai"/><category term="embedded"/><category term="example"/><category term="kernel"/><category term="pwm"/><category term="python"/><category term="startup"/><category term="exhibition"/><category term="investor"/><category term="linux"/><category term="presentation"/><category term="raspberry pi"/><category term="servo"/><category term="toolchain"/><category term="wheeled"/><category term="anaglyph"/><category term="augmented reality"/><category term="buildroot"/><category term="color measurement"/><category term="cross-compile"/><category term="driver"/><category term="electronics"/><category term="gesture"/><category term="gesture recognition"/><category term="hololens"/><category term="innorobo"/><category term="kinect"/><category term="motor control"/><category term="navigation"/><category term="nfsroot"/><category term="ompl"/><category term="path"/><category term="perceptual computing"/><category term="planning"/><category term="rtdm"/><category term="stereo"/><category term="stream"/><category term="u-boot"/><category term="voice"/><category term="voice recognition"/><category term="workflow"/><title type='text'>Veterobot.org</title><subtitle type='html'>Robot controlled over the internet.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.veterobot.org/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-3024069512357454090</id><published>2017-06-10T12:35:00.000+02:00</published><updated>2018-01-24T08:24:07.479+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="augmented reality"/><category scheme="http://www.blogger.com/atom/ns#" term="color measurement"/><category scheme="http://www.blogger.com/atom/ns#" term="hololens"/><title type='text'>Using HoloLens with color measurement devices</title><content type='html'>&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;There is the &lt;a href=&quot;https://unity3d.com/partners/microsoft/hololens-contest&quot; target=&quot;_blank&quot;&gt;HoloLens contest&lt;/a&gt; organized by Unity and Microsoft. I decide to join it with my idea and quick prototype I have already made. It is about using &lt;a href=&quot;https://www.microsoft.com/en-us/hololens&quot; target=&quot;_blank&quot;&gt;HoloLens&lt;/a&gt; with color measurement devices to streamline user experience. In particular, implemented scenario could be useful for automotive &lt;span style=&quot;font-family: inherit;&quot;&gt;sector&lt;/span&gt; and body shops. This post describes the idea.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigsVfDsao2EMrtDpS30ZLxd39HDVqqnBB0bclJMiySmkhXJTf205zU9yOkZenwvWAkL5HGYABR10LLcFU5XT0hL6ZupNsQnz0TEAAOVNJdQVVWdD4Rkm1_OZpzFX91TRv8q54eqNxJ9uQ/s1600/hololens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;600&quot; data-original-width=&quot;1600&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigsVfDsao2EMrtDpS30ZLxd39HDVqqnBB0bclJMiySmkhXJTf205zU9yOkZenwvWAkL5HGYABR10LLcFU5XT0hL6ZupNsQnz0TEAAOVNJdQVVWdD4Rkm1_OZpzFX91TRv8q54eqNxJ9uQ/s400/hololens.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h2&gt;
Context&lt;/h2&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span id=&quot;docs-internal-guid-5f7091b3-9166-71f2-2728-5fc264604ca1&quot; style=&quot;background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Painted surfaces could be characterized by many parameters such as color, gloss, fluorescence, etc. They all together define total appearance for the human eye. Ability to measure these parameters is very useful. For example, car manufacturers using it to ensure that parts from different suppliers have exact the same appearance and fit together when assembled. Also, body shops using measurement devices to order matching color mix for repairing. There are a lot of other application areas such as cosmetic, packaging industry and even in ISS space station. Most of the modern color measurement devices are handheld, equipped with WiFi and have rather small display.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span id=&quot;docs-internal-guid-5f7091b3-916a-bef6-d1ad-0608f11d40ea&quot; style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; margin-left: 1em; margin-right: 1em; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;spectroguide_on_wheel.jpg&quot; height=&quot;192&quot; src=&quot;https://lh3.googleusercontent.com/IhgByfX3bgErm-XI_G79W5PYT_yfQIaTB82ZHZODIy0RaSMWyCvSh7s6ZHeo_Koe3J4g6rvHFC-PHaoMftIH-lBpQd8njCFgcMLAuaZMQFb6YqyJ7dD4u03W2WiuC8nyffPVxh9-&quot; style=&quot;border: medium none; transform: rotate(0rad);&quot; width=&quot;230&quot; /&gt; &lt;/span&gt;&lt;/div&gt;
&lt;h2&gt;
Problem&lt;/h2&gt;
It is hard to develop rich user interface for small displays. In addition, using touch functionality is complicated if the user should wear gloves which is typically the case by painting. Additional PC is required to further process measurement data and order color mix. In body shops, places to repair (such as scratches, etc.) should be documented while talking to customer. It is not always the same person who marks the places and performs actual repairing so it is important to avoid mistakes. Training materials and user manuals are not instantly available for the users.&lt;br /&gt;
&lt;h2&gt;
Possible Solution&lt;/h2&gt;
Develop HoloLens application initially targeted for body shops but extendable for other application domains in the future. The following functionality could be offered:&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Provide extensive training materials instantly whenever they are required.&lt;/li&gt;
&lt;li&gt;Create so-called work-list which is a set of cars (or other objects) which should be handled. The work-list contains photos of the objects to handle (taken with HoloLens), additional information such as manufacturer, license plates, etc., and labeled set of places where measurement should be taken. Labeling is made by sticking virtual measurement device on the place of interest.&lt;/li&gt;
&lt;li&gt;The person who should process work-list items can retrieve the labeled places (HoloLens app will place virtual measurement devices on the stored positions) and perform measurements.&lt;/li&gt;
&lt;li&gt;HoloLens app will retrieve measurements from device using WiFi connectivity, visualize it and store the data in the cloud for further processing. For example, to send the order for color mix and provide corresponding information to the bookkeeping department.&lt;/li&gt;
&lt;/ol&gt;
Such application could overcome small screen constraints by offering reach AR interface, eliminate the need for additional computer, improve user experience in painting facilities and simplify further processing of measurement data. Potentially, if widely accepted, it could eliminate the need for display on measurement devices at all which in turn reduce device costs, weight, size and can considerably increase battery operation time.&lt;br /&gt;
&lt;h2&gt;
Screen-cast from HoloLens prototype implementation&lt;/h2&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/4lhVdxuhSls/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;266&quot; src=&quot;https://www.youtube.com/embed/4lhVdxuhSls?feature=player_embedded&quot; width=&quot;320&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-8ea1a4d0-917c-3f2b-cf04-a760c41d520a&quot; style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;It illustrates the very early prototype of the application described above. &lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;docs-internal-guid-8ea1a4d0-917c-7efe-39b1-68b70ba5afea&quot; style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;In particular, it shows three main objects - &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;measure&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;order mix&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt; and &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;academy&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;. It is a kind of main menu.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7hy9HfZtXf9ion6mSH5vbwqCNA5uU4LIv8FfdBSm25Txuxx_GTvXwHID1jKN9HAaqvwQ5TgBDGoguhuF0e0XZkUEpuYP36pCxpfTOtwajxzSMPdw-LL5J1_-8nLxQ2Fwhu9a6wF1eASk/s1600/20170606_183343_HoloLens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;792&quot; data-original-width=&quot;1408&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7hy9HfZtXf9ion6mSH5vbwqCNA5uU4LIv8FfdBSm25Txuxx_GTvXwHID1jKN9HAaqvwQ5TgBDGoguhuF0e0XZkUEpuYP36pCxpfTOtwajxzSMPdw-LL5J1_-8nLxQ2Fwhu9a6wF1eASk/s400/20170606_183343_HoloLens.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span id=&quot;docs-internal-guid-8ea1a4d0-917d-4465-0c17-d7fe4302a9cc&quot; style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;Activating the &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;academy&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt; object shows disassembled measurement device, provides instructional video and offers virtual car which could be used for training.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia8hTj1D_5vBrYBe9fuyUg9PefTlW069Q_lb9sKWFmLj-lmhI9N8aLIQpggJX82pS1WZ-3D-dVLliQAbPU4L9v6rfbtF1CdQZetGvtlGUBko5DosCTLhjCOPfFvjPiLBdYmJINNEQm7xw/s1600/20170606_183456_HoloLens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;792&quot; data-original-width=&quot;1408&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia8hTj1D_5vBrYBe9fuyUg9PefTlW069Q_lb9sKWFmLj-lmhI9N8aLIQpggJX82pS1WZ-3D-dVLliQAbPU4L9v6rfbtF1CdQZetGvtlGUBko5DosCTLhjCOPfFvjPiLBdYmJINNEQm7xw/s200/20170606_183456_HoloLens.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUPtI1VmVQjgv5Hm3YVf7A5UZomStbeU9glNgm2ck90gYPubaD9T2Ve7OtjUZt8Rwu_xY5ZUjjFiLxh3P8mtbVRb5mbiC2aYcAM1fhjy0iHXXrbNLMVV2_ZUD56dg3un37hXLEZf23bHo/s1600/20170606_183532_HoloLens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;792&quot; data-original-width=&quot;1408&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUPtI1VmVQjgv5Hm3YVf7A5UZomStbeU9glNgm2ck90gYPubaD9T2Ve7OtjUZt8Rwu_xY5ZUjjFiLxh3P8mtbVRb5mbiC2aYcAM1fhjy0iHXXrbNLMVV2_ZUD56dg3un37hXLEZf23bHo/s200/20170606_183532_HoloLens.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span id=&quot;docs-internal-guid-8ea1a4d0-9181-b10e-54ce-60f6d04523ef&quot; style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;Activating the &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;measure&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt; object shows the work-list populated with three items. In addition, the user can mark places for measurement by sticking virtual measurement devices to the gazed spot.&lt;/span&gt;&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfup1kp-q7KDGwnPFFcHbxEF6N-dNRVKV7spbeAhiXXzTeOFV1eo_c-eF_InXHCA8SETXBqAv9krg43_FuhT62ZUczsDMs00-EQ2UNUHXk73KxKgDClPvg3uSbT752UOtibOJNzl-tKCY/s1600/20170606_183700_HoloLens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;792&quot; data-original-width=&quot;1408&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfup1kp-q7KDGwnPFFcHbxEF6N-dNRVKV7spbeAhiXXzTeOFV1eo_c-eF_InXHCA8SETXBqAv9krg43_FuhT62ZUczsDMs00-EQ2UNUHXk73KxKgDClPvg3uSbT752UOtibOJNzl-tKCY/s200/20170606_183700_HoloLens.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRGGm_j837GTsiHNZcGTKp70KOh78l3Ri7d60iJ61qNcDfax-v6sVy1QOpeLd8iyQqnDjFwKauZjbufRu5SFzcbVdtFTQQmMK1RppE0DRG7HAUGoIkWQALkt2ZoUrpkLa9j4SKnOm6tck/s1600/20170606_183804_HoloLens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;792&quot; data-original-width=&quot;1408&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRGGm_j837GTsiHNZcGTKp70KOh78l3Ri7d60iJ61qNcDfax-v6sVy1QOpeLd8iyQqnDjFwKauZjbufRu5SFzcbVdtFTQQmMK1RppE0DRG7HAUGoIkWQALkt2ZoUrpkLa9j4SKnOm6tck/s200/20170606_183804_HoloLens.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span id=&quot;docs-internal-guid-8ea1a4d0-9185-6340-94a1-525b8bc9b091&quot; style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;Selecting &lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: italic; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;order mix&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt; object retrieves measurement from the real measurement device, displays the results (spectrum and Lab values) on the virtual panels and uploads the data to the cloud (not implemented yet) to place the order and further processing.&lt;/span&gt;&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-xaGet9de5I0qhQ6H8PMI49YoMHvqdtmIG4YrOEdWV5Db3tZ60h5j1_SYAQaj_g8GoRTLctGR9gwLzfAmakvRsQFIvpqa0sVwiwkxWUaayLwGp81CR8VBn4vMbby4TNECd_s7ZTnZCqs/s1600/20170606_183828_HoloLens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;792&quot; data-original-width=&quot;1408&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-xaGet9de5I0qhQ6H8PMI49YoMHvqdtmIG4YrOEdWV5Db3tZ60h5j1_SYAQaj_g8GoRTLctGR9gwLzfAmakvRsQFIvpqa0sVwiwkxWUaayLwGp81CR8VBn4vMbby4TNECd_s7ZTnZCqs/s200/20170606_183828_HoloLens.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQlIJ_grgKruwSl9hqItcc0A9ZjKsSLDUkrIF2zrJGCjUGcbDoddLemwk987VCbvDSPLfQhBkqDUIab2ekLndO3d4RV0NFyCeplver1QUHRpoCHaHU1b1tzqGC39UgXNiBtZJJWgpQVU8/s1600/20170606_183838_HoloLens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;792&quot; data-original-width=&quot;1408&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQlIJ_grgKruwSl9hqItcc0A9ZjKsSLDUkrIF2zrJGCjUGcbDoddLemwk987VCbvDSPLfQhBkqDUIab2ekLndO3d4RV0NFyCeplver1QUHRpoCHaHU1b1tzqGC39UgXNiBtZJJWgpQVU8/s200/20170606_183838_HoloLens.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/3024069512357454090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2017/06/using-hololens-with-color-measurement.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3024069512357454090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3024069512357454090'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2017/06/using-hololens-with-color-measurement.html' title='Using HoloLens with color measurement devices'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigsVfDsao2EMrtDpS30ZLxd39HDVqqnBB0bclJMiySmkhXJTf205zU9yOkZenwvWAkL5HGYABR10LLcFU5XT0hL6ZupNsQnz0TEAAOVNJdQVVWdD4Rkm1_OZpzFX91TRv8q54eqNxJ9uQ/s72-c/hololens.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-1752017093644439369</id><published>2017-04-15T13:25:00.000+02:00</published><updated>2017-04-17T21:12:37.368+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="navigation"/><category scheme="http://www.blogger.com/atom/ns#" term="ompl"/><category scheme="http://www.blogger.com/atom/ns#" term="path"/><category scheme="http://www.blogger.com/atom/ns#" term="planning"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><title type='text'>Learning OMPL</title><content type='html'>&lt;h2&gt;
Compiling &lt;/h2&gt;
I just start learning the &lt;a href=&quot;http://ompl.kavrakilab.org/index.html&quot; target=&quot;_blank&quot;&gt;Open Motion Planning Library (OMPL)&lt;/a&gt; to implement some new robot control ideas. Was able to build the current C++ version from Git without problems. However, building python binding did not went smooth because of missing dependencies and lack of required versions in standard Ubuntu repository. So I leave it because I am interesting in C++ anyway.&lt;br /&gt;
&lt;h2&gt;
Running demos&lt;/h2&gt;
The closest demo to what I need is &lt;a href=&quot;http://ompl.kavrakilab.org/RigidBodyPlanningWithODESolverAndControls_8cpp_source.html&quot; target=&quot;_blank&quot;&gt;RigidBodyPlanningWithODESolverAndControls.cpp&lt;/a&gt; . The first run produces result which I do not understand for 100%. It reach the goal, but trajectory looks strange to me.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirdD-ihRkLV1Kz89a2280XTgK63idGdrT5ckh3SDGcGLmq9S09Cw8Wcro0QeYaoKqFZwwTDcQIsN1FFXBuzL2Y9IwuF030C_Wd1aIqul2voWvX4_GZ3-w9PpIgq9jsqxresA4WaJUgOs8/s1600/run0.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;290&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirdD-ihRkLV1Kz89a2280XTgK63idGdrT5ckh3SDGcGLmq9S09Cw8Wcro0QeYaoKqFZwwTDcQIsN1FFXBuzL2Y9IwuF030C_Wd1aIqul2voWvX4_GZ3-w9PpIgq9jsqxresA4WaJUgOs8/s400/run0.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
In particular, I can not explain the movements around x=0.1, y=0.05 and similar back and forth on the other places. Maybe there are certain parameters to tweak, but it would be nice if demo will already have them set right. Of course, it could be that am just interpreting the output wrong. Anyway, I am not going to give up that soon and will try to ask this question on mail list. Let&#39;s see if the community friendly there ;-) .&lt;br /&gt;
&lt;h2&gt;
Tailoring the demo&lt;/h2&gt;
In my case the map has size somewhere around 1000x1000 in contrast to the size 2 (-1:1) used in demo. So I decide to adjust the demo by increasing the state space bounds correspondingly. In addition, I&#39;ve made the car longer (5 instead of original 0.2). Also to let it drive faster, I&#39;ve adjust control space bounds to 0:50 for the speed dimension. The following is reported by printSettings() function:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;OMPL version: 1.3.0&lt;br /&gt;Settings for the state space &#39;SE2CompoundSpace0&#39;&lt;br /&gt;&amp;nbsp; - state validity check resolution: 3%&lt;br /&gt;&amp;nbsp; - valid segment count factor: 1&lt;br /&gt;&amp;nbsp; - state space:&lt;br /&gt;Compound state space &#39;SE2CompoundSpace0&#39; of dimension 3 (locked) [&lt;br /&gt;Real vector state space &#39;RealVectorSpace1&#39; of dimension 2 with bounds: &lt;br /&gt;&amp;nbsp; - min: 0 0 &lt;br /&gt;&amp;nbsp; - max: 1000 1000 &lt;br /&gt;&amp;nbsp;of weight 1&lt;br /&gt;SO2 state space &#39;SO2Space2&#39;&lt;br /&gt;&amp;nbsp;of weight 0.5&lt;br /&gt;]&lt;br /&gt;No registered projections&lt;br /&gt;&lt;br /&gt;Declared parameters:&lt;br /&gt;longest_valid_segment_fraction = 0.029999999999999999&lt;br /&gt;valid_segment_count_factor = 1&lt;br /&gt;Valid state sampler named uniform with parameters:&lt;br /&gt;nr_attempts = 100&lt;br /&gt;&amp;nbsp; - control space:&lt;br /&gt;Real vector control space &#39;RealVectorControl[SE2CompoundSpace0]&#39; with bounds: &lt;br /&gt;&amp;nbsp; - min: 0 -0.3 &lt;br /&gt;&amp;nbsp; - max: 50 0.3 &lt;br /&gt;&amp;nbsp; - can propagate backward: yes&lt;br /&gt;&amp;nbsp; - propagation step size: 0&lt;br /&gt;&amp;nbsp; - propagation duration: [0, 0]&lt;br /&gt;Warning: Assuming propagation will always have between 1 and 10 steps&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at line 56 in /home/andrey/projects/piwars/ompl/src/ompl/control/src/SpaceInformation.cpp&lt;br /&gt;Warning: The propagation step size is assumed to be 42.473531&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at line 66 in /home/andrey/projects/piwars/ompl/src/ompl/control/src/SpaceInformation.cpp&lt;br /&gt;Info:&amp;nbsp;&amp;nbsp;&amp;nbsp; No planner specified. Using default.&lt;br /&gt;Info:&amp;nbsp;&amp;nbsp;&amp;nbsp; KPIECE1: Attempting to use default projection.&lt;br /&gt;Info:&amp;nbsp;&amp;nbsp;&amp;nbsp; KPIECE1: Starting planning with 1 states already in datastructure&lt;br /&gt;Info:&amp;nbsp;&amp;nbsp;&amp;nbsp; ProblemDefinition: Adding approximate solution from planner KPIECE1&lt;br /&gt;Info:&amp;nbsp;&amp;nbsp;&amp;nbsp; KPIECE1: Created 563 states in 165 cells (55 internal + 110 external)&lt;br /&gt;Info:&amp;nbsp;&amp;nbsp;&amp;nbsp; Solution found in 5.002863 seconds&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
OMPL was able to find solution. But again, similar to the original demo, the path is quite weird as could be seen on the following image:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqzj7x1Xck-DfDgJOIxcHbgwGOx0dMbsDL6UkA7dUcU-BGxolmBy6Jqss_w_gJXrtQBDOX49LsQOaSSdXNWsToQaWwOJZ5Op_fKBsx7ee4erJP13t6qKMI-itVjMMJEmQyBr3kT7WbfO8/s1600/run2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqzj7x1Xck-DfDgJOIxcHbgwGOx0dMbsDL6UkA7dUcU-BGxolmBy6Jqss_w_gJXrtQBDOX49LsQOaSSdXNWsToQaWwOJZ5Op_fKBsx7ee4erJP13t6qKMI-itVjMMJEmQyBr3kT7WbfO8/s400/run2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Of course, my first reaction was to blame OMPL for it ;-) . But it seems like a lot of projects are using it, so it could not be that bad. Obviously I am doing something wrong here. But I still have to find out what... Maybe someone in mail-list would respond to my questions and can help.&lt;br /&gt;
&lt;h2&gt;
I hear and I forget. I see and I remember. I do and I understand. (c) Confucius.&lt;/h2&gt;
Actually, my own robotics vehicle is differentially steered, not car-like as assumed in the OMPL example mentioned above. It looks like this:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzJaDs-m89-WlEfv2VdPYHneWyqYCd5_ack2z6ndkwhXrc0dU9Hs1k4ZdhqUjqISxC_DCsZPNK7aRks5p0r0bzg76lT5NnOXvQP3znHm88JyMt4Z6PKYZIwYy6qyT-XO7ev5IYgmofCbU/s1600/rendering.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzJaDs-m89-WlEfv2VdPYHneWyqYCd5_ack2z6ndkwhXrc0dU9Hs1k4ZdhqUjqISxC_DCsZPNK7aRks5p0r0bzg76lT5NnOXvQP3znHm88JyMt4Z6PKYZIwYy6qyT-XO7ev5IYgmofCbU/s320/rendering.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Rendering from CAD&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkTg5viDupKH-mIOQ-D6w7SH9YbrbnmH69VLlzSZsYu5kKIBVspXP1sczY2QQs_FZNPR7v_dH2ZHG4Si0RZ4cLkJxniRVK-EaC4MU4uuAOknzQi28yVi58Hn1GvxvO0L9XoqXpY-ZpGZI/s1600/remotectltest.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;179&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkTg5viDupKH-mIOQ-D6w7SH9YbrbnmH69VLlzSZsYu5kKIBVspXP1sczY2QQs_FZNPR7v_dH2ZHG4Si0RZ4cLkJxniRVK-EaC4MU4uuAOknzQi28yVi58Hn1GvxvO0L9XoqXpY-ZpGZI/s320/remotectltest.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;The very first working prototype&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
So I decide to adjust the kinematics model appropriately. There is a nice easy to understand &lt;a href=&quot;http://rossum.sourceforge.net/papers/DiffSteer/DiffSteer.html&quot; target=&quot;_blank&quot;&gt;article by G.W. Lucas&lt;/a&gt; to this topic. So after spending quite some time tweaking propagation step size, the propagation duration and map size I was able to get more or less reasonable result:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOxPxgLmA5BD9Vy6hf8xrNlSfyh5kb_5wLGN-Tu0y3Xr-ZUQFyjLolnjsfXn8A6MclS6KZXqnrv7eIt4d6ssdrHpc63pxk_8CJAYQi3RXtZVy_Y8YVBXGpLncwWw_8h9T5HQQlIXnu5Y8/s1600/run4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOxPxgLmA5BD9Vy6hf8xrNlSfyh5kb_5wLGN-Tu0y3Xr-ZUQFyjLolnjsfXn8A6MclS6KZXqnrv7eIt4d6ssdrHpc63pxk_8CJAYQi3RXtZVy_Y8YVBXGpLncwWw_8h9T5HQQlIXnu5Y8/s400/run4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
It is obviously not optimal, but much better then my previous attempts described above. Also, I&#39;ve got &lt;a href=&quot;https://sourceforge.net/p/ompl/mailman/message/35792160/&quot; target=&quot;_blank&quot;&gt;response from Mark Moll&lt;/a&gt; to my question in mail list. He states that with this implementation it is expected to get not optimal solution which confirms my experience so far. In addition, he suggests to try SST planner. This is what I am going to do next.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/1752017093644439369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2017/04/learning-ompl.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/1752017093644439369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/1752017093644439369'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2017/04/learning-ompl.html' title='Learning OMPL'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirdD-ihRkLV1Kz89a2280XTgK63idGdrT5ckh3SDGcGLmq9S09Cw8Wcro0QeYaoKqFZwwTDcQIsN1FFXBuzL2Y9IwuF030C_Wd1aIqul2voWvX4_GZ3-w9PpIgq9jsqxresA4WaJUgOs8/s72-c/run0.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-5509335349678618807</id><published>2015-07-12T22:22:00.000+02:00</published><updated>2015-07-12T22:25:56.481+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="electronics"/><category scheme="http://www.blogger.com/atom/ns#" term="embedded"/><category scheme="http://www.blogger.com/atom/ns#" term="example"/><category scheme="http://www.blogger.com/atom/ns#" term="motor control"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="veter"/><category scheme="http://www.blogger.com/atom/ns#" term="veterobot"/><title type='text'>Building robotics ground vehicle. Part 2 - remote control.</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGgAa2uyPjQsAMx__MDp6JeqcmynsHTene5lmijpBuJLRQWUUPCDlKup-GCk1w0nrXJZ9DwdD6U0QtifUwxGt2mIGjii8s7EXk_g2jSZN-Fx6pnTArmLgsqvZnb87iTDEiTQmEphbvCAk/s1600/remote_control.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGgAa2uyPjQsAMx__MDp6JeqcmynsHTene5lmijpBuJLRQWUUPCDlKup-GCk1w0nrXJZ9DwdD6U0QtifUwxGt2mIGjii8s7EXk_g2jSZN-Fx6pnTArmLgsqvZnb87iTDEiTQmEphbvCAk/s200/remote_control.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
In &lt;a href=&quot;http://veter-project.blogspot.com/2015/06/building-robotics-ground-vehicle-part-1.html&quot; target=&quot;_blank&quot;&gt;Part 1 of this series&lt;/a&gt; we covered the mechanics of the our small robotics ground vehicle. The next step is to add electronics required to control the vehicle remotely or let it drive in autonomous mode. Following articles will present how to control the motors using standard RC sender and receiver, autonomous driving with Arduino and Raspberry Pi.&lt;br /&gt;
&lt;h2&gt;
General idea &lt;/h2&gt;
This particular article is focused on manual control with standard RC device typically used in modeling and toys. So what we want to make is to place receiver on the robot and connect it in such a way that it can set motors rotation speed according to the control sticks position on the sender.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju1epp7JJZfqx3hjDbvsF3TFgBJFOnmYsCmXkUh-Tq8G0ak9NUSiqa6TEDq3pp0uZC8aRvzsVpe9CRz69u3keifXuUEkFmzJJekBIS6Q2C-lfggRw8T6qaUay7av2FBacfOzJtVL47-hE/s1600/rc-control-general.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju1epp7JJZfqx3hjDbvsF3TFgBJFOnmYsCmXkUh-Tq8G0ak9NUSiqa6TEDq3pp0uZC8aRvzsVpe9CRz69u3keifXuUEkFmzJJekBIS6Q2C-lfggRw8T6qaUay7av2FBacfOzJtVL47-hE/s400/rc-control-general.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;General structure of RC-based manual control&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Before we continue, it is important to understand what output is generated by RC receiver and how to interpret it for motor control.&lt;br /&gt;
&lt;h2&gt;
Few words about standard remote control&lt;/h2&gt;
The simplest way to test our newly build vehicle is to connect standard remote control. There two parts - sender and receiver.&lt;br /&gt;
&lt;table border=&quot;0&quot; style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Ffph_D4jIExiv944gGVYWVwmJe_LwS7cT_71QvzLpSD0NeTRMfh2h_GVE_x7uWXeOsZhoinnI5Cc29WXXhZAphsOeyySIjnnoCD5zd5TA8zt_JGf-WyAzHXfUKHXpOnMJ34mN0z9iyU/s1600/rc-sender.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5Ffph_D4jIExiv944gGVYWVwmJe_LwS7cT_71QvzLpSD0NeTRMfh2h_GVE_x7uWXeOsZhoinnI5Cc29WXXhZAphsOeyySIjnnoCD5zd5TA8zt_JGf-WyAzHXfUKHXpOnMJ34mN0z9iyU/s400/rc-sender.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;RC sender&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;
&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0_c5eZKUV6m1JgmnN4LuWqGTbwnTI3v5gggcMEEScqWUIliK0eBwIw6Zzyzfa1mDaO7Cg6pjxRE4-0sn7eXjz6EczMiTKlNDFlSp1cqnEDiEOBJn6Enp4plm5LVacNmOhjKWGVOv3Hj8/s1600/rc-receiver.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0_c5eZKUV6m1JgmnN4LuWqGTbwnTI3v5gggcMEEScqWUIliK0eBwIw6Zzyzfa1mDaO7Cg6pjxRE4-0sn7eXjz6EczMiTKlNDFlSp1cqnEDiEOBJn6Enp4plm5LVacNmOhjKWGVOv3Hj8/s200/rc-receiver.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;RC receiver&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Receiver is placed on the vehicle and generates standardized Pulse Width Modulation (PWM) signal on each of it&#39;s outputs. At the bottom of the receiver there are several three-pins columns. Each column is an output terminal (also might be referenced as channels). Where first pin provides ground connection, second provides +5V power signal and the third one generates PWM signals with duty cycle proportional to the position of the control stick on the sender. Here is an example of such PWM signal used to control standard servo motor.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU5WUm2_PMjAhY164AOoo9KmEbZY1tVSqsurrHVN-4NwVabS0nHwpPJtxCKQiAZGOytFHLgDtUmIA81FMYzk-FnGMhBkRhC-KOFWAEQUa3Mkkq92ZgPHhctNLKObdho6jKl6CBKRCPnkU/s1600/pwm.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;393&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU5WUm2_PMjAhY164AOoo9KmEbZY1tVSqsurrHVN-4NwVabS0nHwpPJtxCKQiAZGOytFHLgDtUmIA81FMYzk-FnGMhBkRhC-KOFWAEQUa3Mkkq92ZgPHhctNLKObdho6jKl6CBKRCPnkU/s640/pwm.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
So the idea is to use one PWM output (channel) to control the overall wheel rotation speed and the second channel to steer, i.e. to define the difference in rotation speed of the wheels on the left and right side of our vehicle.&lt;br /&gt;
&lt;h2&gt;
Need for &lt;strike&gt;speed&lt;/strike&gt; motor control interfacing board &lt;/h2&gt;
Since we have decided for 12V motors, we need somehow convert +5V PWM signals to the up to +12V voltage to drive our motors. This is the typical task for motor control (or motor driver) board. It&#39;s main task is to receive the input which says what is the desired rotation speed and convert this input to the output voltage connected to the motors to rotate with target speed. In hobby robotics domain, there are three popular ways to provide an input: a) standard PWM signals; b) setting target rotation speed over serial connection; c) using &lt;a href=&quot;https://en.wikipedia.org/wiki/I%C2%B2C&quot; target=&quot;_blank&quot;&gt;I2C bus&lt;/a&gt; to transmit target rotation speed. Which way to use depends on the particular project requirements and capabilities of the motor control board and corresponding receiver/processor part.&lt;br /&gt;
In this particular project we decide to use &lt;a href=&quot;http://www.robot-electronics.co.uk/htm/md22tech.htm&quot; target=&quot;_blank&quot;&gt;MD22 motor control board&lt;/a&gt;.&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDqFVl4e_5WfIxg2fVFbNLt0waNIpr6sbC-BxneTS0awXdCdH1tlH6B1VMYX_Y96QgjsHuTDf2ZfgPDF65weiaNoTLraw-ftcghv9j6r1HQscVGMEK_ubYz2QdApzDxQRDY1h57evI8wQ/s1600/md22.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDqFVl4e_5WfIxg2fVFbNLt0waNIpr6sbC-BxneTS0awXdCdH1tlH6B1VMYX_Y96QgjsHuTDf2ZfgPDF65weiaNoTLraw-ftcghv9j6r1HQscVGMEK_ubYz2QdApzDxQRDY1h57evI8wQ/s200/md22.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;MD22 - dual 24V 5A H-Bridge motor drive&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;

&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeugYc-HahER_bsFhHXSc6bd-jPcPwiwqDV47-XBFFX_ivkaV5-OtBb59FgKlpGDXjJurVi55Makw8dfAO1Al-CKkWjGLdI0oH2441iSxSlE1ZQ0ja_6AJGvNlgo7BKmoZS5-L2SE7Mjo/s1600/md22c.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeugYc-HahER_bsFhHXSc6bd-jPcPwiwqDV47-XBFFX_ivkaV5-OtBb59FgKlpGDXjJurVi55Makw8dfAO1Al-CKkWjGLdI0oH2441iSxSlE1ZQ0ja_6AJGvNlgo7BKmoZS5-L2SE7Mjo/s320/md22c.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Inputs and outputs connectors&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Among others, one nice thing by this controller is it&#39;s ability to handle standard RC signals as well as I2C commands as the input for motor control. So we can easily switch between different control techniques depending on the connected electronics and particular project needs. In addition, it can provide up to 5A current to each motor and this is what we need for our rather powerful motors. Motor controllers which can not provide such current may burn out if we connect our motors and then for example block them causing the maximum current flowing through controller.&lt;br /&gt;
&lt;h2&gt;
Providing power to the whole system&lt;/h2&gt;
We are using 12V on-board battery to supply power for motors. However, during development it is convenient to have the possibility to power up the whole system from wall adapter. In addition, while using the battery we need to answer the question how to charge it. There are basically two possibilities: use external charger (&lt;a href=&quot;http://shop.graupner.de/webuerp/AA?wgr=71&quot; target=&quot;_blank&quot;&gt;here are some examples&lt;/a&gt;) or use some on-board electronics which can charge the battery. For convenience, we decide to use on-board charger which can in addition instantly switch between wall adapter and battery power. The following picture illustrates this decision. &lt;br /&gt;
&lt;table&gt;

&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWIMGMYXwHzr_sYkga2ddwJEXT3aZi0PBW-choEiPJJzH95MWJorJOtiLvpLsrAXWyQkQUgcTo-cD2vYYVSGLkbkH6JMc2Jar8xlSBN4qQvWA1tkFetOZTOxSdbekVlGg8rO7Gy9Iu0aY/s1600/rc-control-battery.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWIMGMYXwHzr_sYkga2ddwJEXT3aZi0PBW-choEiPJJzH95MWJorJOtiLvpLsrAXWyQkQUgcTo-cD2vYYVSGLkbkH6JMc2Jar8xlSBN4qQvWA1tkFetOZTOxSdbekVlGg8rO7Gy9Iu0aY/s640/rc-control-battery.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Adding power source&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Fortunately, there is ready made UPS module which satisfy our requirements. For this particular project we decide to use &lt;a href=&quot;http://www.mini-box.com/picoUPS-120-12V-DC-micro-UPS-battery-backup?sc=8&amp;amp;category=980&quot; target=&quot;_blank&quot;&gt;picoUPS-120-ATVX&amp;nbsp; DC micro UPS system&lt;/a&gt;. The picoPSU-120-ATV ensures uninterrupted power for electronics by automatically switching in between a DC input source (13-16V) and a Lead Acid (SLA battery). The switching in between the power sources is instantaneous, thus allowing smooth, uninterrupted device operation. The picoUPS-120-ATV also has a built-in, 1.2A fast battery charger unit.&lt;br /&gt;
With this solution we supply power for motors and solve battery charging problem. However, what is still needed is +5V power for on-board electronics. In particular, we need to power up the RC receiver and provide +5V for motor interfacing board. For these purposes, we need to convert +12V out of UPS module down to +5V.&lt;br /&gt;
There is a bunch of the step-down voltage converters &lt;a href=&quot;http://nodna.de/navi.php?suchausdruck=step+down&amp;amp;JTLSHOP=4b034a4cdab04a8460d6b50aa068128a&quot; target=&quot;_blank&quot;&gt;available on the market&lt;/a&gt;. What is important to decide which one to use is to consider input voltage range, output voltage and output current. Input voltage range should include our +12V. Required output voltage in our case is +5V. This is a fix output we need, so there is no need for adjustable regulator (it only increase the price). Requirements for the output power could be estimated by summing up current requirements of all modules need to be powered. Taking in account our future plans to connect Raspberry Pi, BeagleBoard or similar embedded systems, we decide that 3.5A out current should be enough. Correspondingly, we decide to use &lt;a href=&quot;https://www.pololu.com/product/2110&quot; target=&quot;_blank&quot;&gt;Pololu D15V35F5S3 Step-Down Voltage Regulator&lt;/a&gt;.&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;

&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhriAxRhthxDzZ-nCeY0ZhKV83Icr-Xi4rBaxwoLCmffeus_b4u4R3zvtr35OfHiZEYiOlO7UfcATmBx6kG8ePEDL_u79ry64nxY4WFwfOwSnrabV7hpfccT_z5aKC-Ni1r2PEv47X_XlE/s1600/pololu-step-down.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhriAxRhthxDzZ-nCeY0ZhKV83Icr-Xi4rBaxwoLCmffeus_b4u4R3zvtr35OfHiZEYiOlO7UfcATmBx6kG8ePEDL_u79ry64nxY4WFwfOwSnrabV7hpfccT_z5aKC-Ni1r2PEv47X_XlE/s1600/pololu-step-down.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3.5A 12V to 5V step-down voltage regulator.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;
&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqXJVnPlwgkXIFYZSbPpwW0NgiSgvfRRyEL2WpvW7qtx-hNjEgFdjT1ai1PhWEuT5G_Ny22VihWvJlPEPtf6htfo5FHVSS4ny07qcvAExkUz_fHc_c2sR0NmZ36kkKuaYtXHdMNq_8Vds/s1600/pololu-step-down2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqXJVnPlwgkXIFYZSbPpwW0NgiSgvfRRyEL2WpvW7qtx-hNjEgFdjT1ai1PhWEuT5G_Ny22VihWvJlPEPtf6htfo5FHVSS4ny07qcvAExkUz_fHc_c2sR0NmZ36kkKuaYtXHdMNq_8Vds/s1600/pololu-step-down2.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Dimensions and connectors labels&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
It is very easy to connect this module. +12V from UPS goes to VIN and ground to GND (on the right side at the second picture). By default (without jumper) the module provides regulated +5V at the VOUT and GND (on the left side at the second picture). This output voltage could be used to supply RC receiver and MD22 interfacing board with required power.&lt;br /&gt;
&lt;h2&gt;
Wiring everything together&lt;/h2&gt;
The following picture illustrates everything we need to wire together to achieve our goal - controlling the vehicle with standard RC.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSQNWj1KoVt-F_nerijP1LMi8R4H5lRV7ln-e2HzaVFCEcC3JMdzuyzm-zin3ayo0gI-6Dy2C1VcLFtaojJ3QdUp4fUYQuSisKcDMsC3cNLXK7pKfsytu1x8FSWUgbtXa2I5bHbVJfmSY/s1600/rc-control-battery-step-down.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSQNWj1KoVt-F_nerijP1LMi8R4H5lRV7ln-e2HzaVFCEcC3JMdzuyzm-zin3ayo0gI-6Dy2C1VcLFtaojJ3QdUp4fUYQuSisKcDMsC3cNLXK7pKfsytu1x8FSWUgbtXa2I5bHbVJfmSY/s640/rc-control-battery-step-down.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Final wiring diagram&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
After wiring everything together for the very first time we have got what is illustrated on the pictures below&lt;br /&gt;
&lt;table style=&quot;width: 100%;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFCI2HBEVx-KR3xoNOcnGo09K-vfn5eD2nZqbzchLxVAZSo6kPNzQeVgPJDdzGFYJ2JT6hVDW56AvaDA7KUPkf0A4uvoO_jeBWHyUNYBhTjdbQMi7p4lnCQ4GmAD7BRyC6PRAb7zkO_tU/s1600/20140907_002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFCI2HBEVx-KR3xoNOcnGo09K-vfn5eD2nZqbzchLxVAZSo6kPNzQeVgPJDdzGFYJ2JT6hVDW56AvaDA7KUPkf0A4uvoO_jeBWHyUNYBhTjdbQMi7p4lnCQ4GmAD7BRyC6PRAb7zkO_tU/s320/20140907_002.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Cable salad after wiring everything together&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;td&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSh-JLRgwoukb5rhYZAgKzZGVqAsDdnKaMNf6JNrQXQyNbMGjp62oDUJW9LpqzRygkUKSG70Bn7Orhhcc67Sy6dDYLViHAF7TYJXPKgb8-bWbSELlmkFfw2sOFzkhaUJz499WqCvEh6-o/s1600/20140907_004.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSh-JLRgwoukb5rhYZAgKzZGVqAsDdnKaMNf6JNrQXQyNbMGjp62oDUJW9LpqzRygkUKSG70Bn7Orhhcc67Sy6dDYLViHAF7TYJXPKgb8-bWbSELlmkFfw2sOFzkhaUJz499WqCvEh6-o/s320/20140907_004.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Nevertheless it works!&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
This is what is typically called the cable salad :-) . Nevertheless &lt;a href=&quot;https://youtu.be/W47cyLSvp90&quot; target=&quot;_blank&quot;&gt;it works&lt;/a&gt;! But obviously we need to deal with this cable salad. The situation will become even worth if we add sensors and on-board computer for autonomous navigation. This is where we decide to develop simple custom board which mainly provides exactly the same wiring as described above but integrate them on printed circuit board (PCB) and provides convenient connectors for all external modules.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikvLoshNx4aDNbouhauqUb73HAOcgoju5NTx859YoeOgfVGHqUgHwEpdTLjwy2DUX2QnrWvHHfkrQmvQitUvRqEjl5YvxrqTrL1LkRa1B2-8U4-MTfQr9PcLSn7xSzPgHOWZJfy_gJ4_4/s1600/20150425_203018.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikvLoshNx4aDNbouhauqUb73HAOcgoju5NTx859YoeOgfVGHqUgHwEpdTLjwy2DUX2QnrWvHHfkrQmvQitUvRqEjl5YvxrqTrL1LkRa1B2-8U4-MTfQr9PcLSn7xSzPgHOWZJfy_gJ4_4/s320/20150425_203018.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Interfacing board to get rid of cable salad&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
The next article in this series will provide more details on this board and illustrate how to connect Arduino, Rasperry Pi and sensors for autonomous drive. Stay tuned! :-) &lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/5509335349678618807/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2015/07/building-robotics-ground-vehicle-part-2.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5509335349678618807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5509335349678618807'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2015/07/building-robotics-ground-vehicle-part-2.html' title='Building robotics ground vehicle. Part 2 - remote control.'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGgAa2uyPjQsAMx__MDp6JeqcmynsHTene5lmijpBuJLRQWUUPCDlKup-GCk1w0nrXJZ9DwdD6U0QtifUwxGt2mIGjii8s7EXk_g2jSZN-Fx6pnTArmLgsqvZnb87iTDEiTQmEphbvCAk/s72-c/remote_control.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-6277456571105378726</id><published>2015-06-27T19:03:00.001+02:00</published><updated>2015-07-12T22:37:36.946+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="embedded"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="raspberry pi"/><category scheme="http://www.blogger.com/atom/ns#" term="real-time"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="veter"/><category scheme="http://www.blogger.com/atom/ns#" term="veterobot"/><category scheme="http://www.blogger.com/atom/ns#" term="wheeled"/><title type='text'>Building robotics ground vehicle. Part 1 - mechanics.</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHPxQTfUWHu6gm7l8lC6FKcsukKPHOD9J9UCI3uW07rE1Mf70Zd-kL4CUWW0POwZWjWiw_8-V0VKFUXhaV89Gl5EUmEVcX0yz4VLmZZjre4YZzN0BR6AT_c0VmCzc9fIoXtpMOHxZhjhQ/s1600/title-image.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHPxQTfUWHu6gm7l8lC6FKcsukKPHOD9J9UCI3uW07rE1Mf70Zd-kL4CUWW0POwZWjWiw_8-V0VKFUXhaV89Gl5EUmEVcX0yz4VLmZZjre4YZzN0BR6AT_c0VmCzc9fIoXtpMOHxZhjhQ/s640/title-image.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
There are a lot of small robotics platforms available on the market. However, they are usually not very robust and it is hard to place additional mechanics or senors on them. There are also good platforms which are big and robust enough but they are usually quite expensive. With this project we want to build robust, easily customizable, yet affordable robotics platform.&lt;br /&gt;
&lt;br /&gt;
Fortunately, nowadays building small robotics ground vehicle is not that difficult. However, it might not be easy for beginners to figure out how to put everything together. This series of articles address exactly this problem. After building our &lt;a href=&quot;http://veterobot.org/&quot; target=&quot;_blank&quot;&gt;3D-printed Veterobot&lt;/a&gt; vehicle we have learned a lot and decide to make the new one taking in account our previous experience. We provide the guide through the complete process of building small (420mm x 297mm DIN A3 page size) robust ground vehicle. Having hobby makers as our target audience we select the set of technologies and components which are maker- and budget-friendly (like 3D-printing, Raspberry Pi, Python, etc.). All the CAD models, schematics and software is open-source and &lt;a href=&quot;https://github.com/veter-team/a20&quot; target=&quot;_blank&quot;&gt;available on GitHub&lt;/a&gt;. Articles in this series will cover three&amp;nbsp; main topics: mechanics, &lt;a href=&quot;http://veter-project.blogspot.com/2015/07/building-robotics-ground-vehicle-part-2.html&quot; target=&quot;_blank&quot;&gt;electronics&lt;/a&gt; and software.This article is about mechanics.&lt;br /&gt;
&lt;h2&gt;
Mechanics&lt;/h2&gt;
In general, it is a good idea to think thoroughly before you start doing something. Building mechanical parts is not an exception. Fortunately, open-source community offers more or less usable CAD tools which can help by mechanical design. Since we are using Linux, there are basically two choices - &lt;a href=&quot;http://www.openscad.org/&quot; target=&quot;_blank&quot;&gt;OpenSCAD&lt;/a&gt; and &lt;a href=&quot;http://freecadweb.org/&quot; target=&quot;_blank&quot;&gt;FreeCAD&lt;/a&gt;. Both of them are not perfect. OpenSCAD becoming extremely slow in visualization if models are of moderate complexity. It also does not easily support some useful features like for example filets and chamfers. There is also no support for constraints. FreeCAD in turn is feature rich but extremely buggy and lack some nice parametric modeling features offered by OpenSCAD. Latest stable FreeCAD version (0.15 at the time of writing) is more stable but still buggy enough to make me pulling out my hairs several times. I was switching several times between OpenSCAD and FreeCAD driven by lack of features and performance problems of OpenSCAD and annoying bugs of FreeCAD. For this particular vehicle we decide to stick with OpenSCAD.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK8CLOfTS7-Iw5SthfoRW1fvdwhQYDkCD0Uw9E2-EyUKCX2NsKfJxjlbnd_sEhvk-VDwiK7gZfYsMxhust2XEYY2uaeZME0Yp42i0y_RB375pXRshv58e7j0Tj-qwyX7gj7K3z3L7XR6M/s1600/mechanical-design.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;412&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhK8CLOfTS7-Iw5SthfoRW1fvdwhQYDkCD0Uw9E2-EyUKCX2NsKfJxjlbnd_sEhvk-VDwiK7gZfYsMxhust2XEYY2uaeZME0Yp42i0y_RB375pXRshv58e7j0Tj-qwyX7gj7K3z3L7XR6M/s640/mechanical-design.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Mechanics designed in OpenSCAD. Semi-transparent rectangle is DIN A3 size for reference.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
While thinking about mechanical design, there are two main questions to answer: a) how to steer, and b) how to propel the vehicle.&lt;br /&gt;
&lt;h3&gt;
Steering&lt;/h3&gt;
In hobby domain there are two popular solutions. The first one is car-like steering where front wheels could be rotated around vertical axis.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh8473Aj6pJ0x74eAHvhqNmfcih0irQG_k0TOkvSrCJuDxgsMR940sQEzaHOpTxUcCvdL2PczOrJJmaGVDT7ypvmYgRM2f0qQgqR_3Tv-YB5AFOn4eEDn5VsfsUejYLjbd7XrGR0EpWq8/s1600/car-style-steering.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjh8473Aj6pJ0x74eAHvhqNmfcih0irQG_k0TOkvSrCJuDxgsMR940sQEzaHOpTxUcCvdL2PczOrJJmaGVDT7ypvmYgRM2f0qQgqR_3Tv-YB5AFOn4eEDn5VsfsUejYLjbd7XrGR0EpWq8/s320/car-style-steering.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Car-style steering&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
The second one is so called differential steering where wheels or tracks on the left and right side of the vehicle can rotate with different speed to steer the vehicle.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghyphenhyphennxoxCA5KEjRTlfGJjj1U6JOnaplcz-447CtD_YTT1QrKGoR6Zl7lKiXPPkHJJWUb66_eM-fcqrAIdr3dEXYgeF8-r9oPQcsIIMP4Pr5J4iYXZP5CtMX2TB9QjdRVjxVwD4qWzO9av0/s1600/differential-steering.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghyphenhyphennxoxCA5KEjRTlfGJjj1U6JOnaplcz-447CtD_YTT1QrKGoR6Zl7lKiXPPkHJJWUb66_eM-fcqrAIdr3dEXYgeF8-r9oPQcsIIMP4Pr5J4iYXZP5CtMX2TB9QjdRVjxVwD4qWzO9av0/s320/differential-steering.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Differential steering&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Since the car-like steering requires slightly more complicated mechanics, we decide here to use the differential steering.&lt;br /&gt;
&lt;br /&gt;
The next question to answer is whether to use tracks or wheels. Tracks have their advantage in case of heavy vehicle which is supposed to drive on the soft surfaces such as sand, dirt, snow, etc. The disadvantage of the tracks is large friction they cause by turning. It means there are higher requirement for the motors torque and correspondingly higher energy consumption (shorter battery life). Since we are building small light vehicle, we decide to use wheels instead of trucks.&lt;br /&gt;
&lt;br /&gt;
Having decided for wheels, now we need to decide how many and how to position them. There are again two popular solutions in hobby domain. The first one is to use three wheels with two active and one passive support wheel which can freely rotate around vertical axis (caster wheel). The second option is to use two active wheels on each side. The advantage of the three wheels option is very low friction by turning. The disadvantage is lower stability of the whole platform due to only three wheels. Four wheels version has much better stability but similar to trucks can expose high friction by turning. This problem could be reduced by placing two wheels on the same side as close as possible to each other. This is the way we decide to go with this project.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYleglftaxS7hZvwiArD0u6ShuhZh426JGVV3On9OWHS1xvJqXip5NvKg8Xja_KXWZnHY1uF4IC63fmezUrKZ0TBHgwNLO4J8XkGSsHVcVe1SRaeP_HlIngpJqNXhdM6vXOiAqFhKKPSA/s1600/differential-steering2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;235&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYleglftaxS7hZvwiArD0u6ShuhZh426JGVV3On9OWHS1xvJqXip5NvKg8Xja_KXWZnHY1uF4IC63fmezUrKZ0TBHgwNLO4J8XkGSsHVcVe1SRaeP_HlIngpJqNXhdM6vXOiAqFhKKPSA/s400/differential-steering2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
Locomotion&lt;/h3&gt;
The first fundamental decision here is which technology to use for propulsion. We can decide between electric motors, combustion engines, jet turbines, etc.&amp;nbsp; For simple ground vehicle, electric motors are the choice. The question is however how many of them to use. To make our vehicle able to drive something more challenging then parquet, we want all four wheels to be active, i.e driven by the motor. &lt;br /&gt;
&lt;br /&gt;
Unfortunately, reasonable motors are expensive, they take quite some space and might increase requirements for hardware to handle encoder signals (more about them later). So we need to find the trade-off here. In this particular project we decide to use one motor per side but ensure that two wheels on the side are driven by the motor.&lt;br /&gt;
&lt;br /&gt;
Speaking about motor selection - in hobby domain there are mainly 6V, 12V and 24V motors. Depending on the weight and desired speed, makers can decide which one to use. Since our vehicle is not too small, will have some weight and we want it to be more or less fast, we decide to use 12V motors. In addition we want feedback from motors for precise control. Consider the simplest task - drive straight forward. Despite it&#39;s simplicity it is not easy to achieve in real-life. Just applying exactly the same voltage to left and right motor will not work. The problem is that motors, bearings, springs and wheels are mechanically slightly different. There is different friction by moving parts. That is why, even exposed by the same voltage, motors and wheels will rotate with different speed causing the vehicle to deviate from straight line. To overcome this problems we need constantly observe wheel rotation speed and adjust voltage correspondingly to achieve equal rotation speed at the left and right side. Such a feedback could be obtained from encoders - special sensors which generates several electrical pulses per revolution. Ideally our motors should already have such encoders. In fact, even with encoders it is not possible to drive absolutely straight forward because of imprecise placement of wheel shafts, differences in underlying surface, tires, etc. One possibility to deal with these problems is to use visual odometry, but it is definitely out of scope for this article.&lt;br /&gt;
&lt;br /&gt;
Back to motor choice - we decide to use &lt;a href=&quot;https://www.pololu.com/product/1444&quot; target=&quot;_blank&quot;&gt;these motors&lt;/a&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp0s7fbpUk-rguSv9vPVfPqtxxZmky2iUmLpSyin9V4pv_LVREpyf7EX1VWiQLUUQUTxCdWLEFj72Qi8EUoWQkSCzrjMUELrVJzpeW9lYWeSfZZsaNXo-YRa7O3wD2GLsICsZAjyza41A/s1600/motor.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp0s7fbpUk-rguSv9vPVfPqtxxZmky2iUmLpSyin9V4pv_LVREpyf7EX1VWiQLUUQUTxCdWLEFj72Qi8EUoWQkSCzrjMUELrVJzpeW9lYWeSfZZsaNXo-YRa7O3wD2GLsICsZAjyza41A/s320/motor.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
They are already equipped with quadrature encoders and there are different gear rations available to trade between power and speed. In this particular vehicle we use 50:1 200 RPM 12V motors http://www.exp-tech.de/50-1-metall-getriebemotor-37dx54l-mm-mit-64-cpr-encoder. It means that the maximum theoretical speed will be&amp;nbsp; RPM * 60 * (D / 1000 / 1000) * 3.1415 , where D is wheel diameter in millimeters. For our vehicle D is 125mm and RPM is 200 which gives 4.7 Km/h. In fact, the top speed will be lower because under load the motor will not be able to reach 200 RPM. But this is good speed for indoor usage.&lt;br /&gt;
&lt;br /&gt;
Based on our decision to use one motor per side but drive both wheels we need to figure out how to transmit the motor power to wheels. There are thousands possibilities here. We decide to connect the motor shaft directly to one wheel and use timing belt with corresponding gears to drive the second wheel.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOhfNOnE8Pvr2ys7y-RY9xB5SFVJEolZuSJhNHQ_1zewck1OjzYUM73HxaoSxTXbwX4K4e3LFTFTuAzOgCrCs6LQUCANvcyazTeEg0BByM0JXOuXMSbJMJ2W-TZ_yQVJFLYmIPwzL_1K4/s1600/wheel-holders.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOhfNOnE8Pvr2ys7y-RY9xB5SFVJEolZuSJhNHQ_1zewck1OjzYUM73HxaoSxTXbwX4K4e3LFTFTuAzOgCrCs6LQUCANvcyazTeEg0BByM0JXOuXMSbJMJ2W-TZ_yQVJFLYmIPwzL_1K4/s640/wheel-holders.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Active and slave wheel connected with timing belt.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Timing belts should be always in tension to prevent slipping. For this purposes we place the gear and bearing holder on two aluminum rods in such a way that they can freely slip. The required tension is achieved with two springs which are pushing holders in opposite directions.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlrOfEyVrpUC8wkAm8mNBiN4aTvQk2Uz24s2iSB2fUJEYUk50lMX44tmxM4cQqXyY0tyQ2JuSPW3uk26colGWEwxvwCo15_BFMRpNbZKM_yO5GJUJcp-j6UxbTCAPRbo8F8GlxJvB0lM/s1600/wheel-holders-with-rods.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwlrOfEyVrpUC8wkAm8mNBiN4aTvQk2Uz24s2iSB2fUJEYUk50lMX44tmxM4cQqXyY0tyQ2JuSPW3uk26colGWEwxvwCo15_BFMRpNbZKM_yO5GJUJcp-j6UxbTCAPRbo8F8GlxJvB0lM/s640/wheel-holders-with-rods.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Springs are keeping timing belt in tension.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Gears and bearing holder has not trivial shape. Thus we decide to 3D-print it. Even with 30% filling they are strong enough (actually more then enough) to hold the weight of this particular vehicle.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBl-GDlOk0WybXDgUau0oPHWMwNvALnTILByGCUHSXiNfFvfBTezg50_9TKBU5C0Hf0HwFEFOiM7teHXd1JEgjs3ovcpVMERrA7vUBQp0L-JyIRwaxB_-UgsXX6aaLn52SgQG0vQ5EYbA/s1600/wheel-holder.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBl-GDlOk0WybXDgUau0oPHWMwNvALnTILByGCUHSXiNfFvfBTezg50_9TKBU5C0Hf0HwFEFOiM7teHXd1JEgjs3ovcpVMERrA7vUBQp0L-JyIRwaxB_-UgsXX6aaLn52SgQG0vQ5EYbA/s640/wheel-holder.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3D-printable bearing and gear holder&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Electric motors obviously require battery. We were considering three 
battery technologies: a) LiPo - they have highest energy density but 
require special attention by charging and rather expensive; b) NiMh is 
not that sensible as LiPo and in general a good choice; c) lead (Pb) is 
the heaviest but the easiest to handle and cheapest compared to LiPo and
 NiMh. For this particular project we decide for Pb battery mainly 
because price and simplicity by charging. There are a lot of 12V Pb 
batteries available on the market. We are using similar to this one:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDVoAARwMJPhnGeZBxqEBJe8VWZw2aMCfmrBVwbrvdmBMo5FpbRt3tp5hREMNzGSd7-S0NS-94tf2CdJ-K9L3rG6Diu9_GawEQt1s81gGGBjivL-ATSVom84wBMhgsCT-rPI0A5Hm5by8/s1600/akku.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDVoAARwMJPhnGeZBxqEBJe8VWZw2aMCfmrBVwbrvdmBMo5FpbRt3tp5hREMNzGSd7-S0NS-94tf2CdJ-K9L3rG6Diu9_GawEQt1s81gGGBjivL-ATSVom84wBMhgsCT-rPI0A5Hm5by8/s320/akku.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;12v sealed lead acid battery&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;h3&gt;
Assembly&lt;/h3&gt;
To hold all mechanical parts together we decide to use two horizontal plates and mount them together using two vertical panels on front and back side of the vehicle. &lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwTN1U-imiS-JNBEUsxcXaXREFvxiWFBB205qCLUOdkPr0FeVAmL6_9J-oiBWcScs7NemMf_cMXr1VSeBT0_0PAVtou32J4A2ELSyFhkhyphenhyphenv3iDHpcCFZEzF8K8YLwGdt8FDb9qJgjfs3g/s1600/base-box.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwTN1U-imiS-JNBEUsxcXaXREFvxiWFBB205qCLUOdkPr0FeVAmL6_9J-oiBWcScs7NemMf_cMXr1VSeBT0_0PAVtou32J4A2ELSyFhkhyphenhyphenv3iDHpcCFZEzF8K8YLwGdt8FDb9qJgjfs3g/s640/base-box.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Taking in account the dimensions of the vehicle, horizontal plates are quite big and it is not practical to 3D-print them. It would be hard to find 3D-printer with large enough working area. In addition it will take quite some time on hobby-level printers. That is why we decide to use plywood to produce them. The very first version was made with fretsaw and file. Later, we used laser cutter to speed up the process.&lt;br /&gt;
&lt;br /&gt;
Front and back panels are smaller and can be printed for example on Ultimaker. However, it takes quite some time, so we are considering small redesign to make these panels also producible with laser cutter or simply fretsaw and drilling machine.&lt;br /&gt;
&lt;br /&gt;
Additional stability is achieved with sliding rods we used for wheel holders. They are fixed on the vertical panels with nuts.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFjbhIIXFK3LwZPMF4wXhnRKR9vGQ4FfhupuT-qB4dnDO13Q0gfh_UPbCY3ur-w6R_rGstLu3Jb4Bhn3Ah0squUqFNCsWpaFeMm7MXf0wj_otTI8fcJm1EOzx62eO8OI6kYiaTjF21Sgs/s1600/base-box-with-rods.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFjbhIIXFK3LwZPMF4wXhnRKR9vGQ4FfhupuT-qB4dnDO13Q0gfh_UPbCY3ur-w6R_rGstLu3Jb4Bhn3Ah0squUqFNCsWpaFeMm7MXf0wj_otTI8fcJm1EOzx62eO8OI6kYiaTjF21Sgs/s640/base-box-with-rods.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Actually, both sides of the rods have screw-threads. It is not shown in the CAD model.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Sliding rods are relatively easy to produce. We just cut corresponding size and make screw-thread manually. There are a lot of instructions in the Internet how to do it. Here is just one example out of many:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/x-Q34j0NceE/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;480&quot; src=&quot;https://www.youtube.com/embed/x-Q34j0NceE?feature=player_embedded&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
Rods are made intentionally a little bit longer. We can use them later to mount some tools or sensors. For example, front and back blade for sumo competition.&lt;br /&gt;
&lt;br /&gt;
Wheel shafts might be tricky to make depending on mounting technique used for gears and stoppers. To prevent slipping of the gears, the areas where fixing screws touching the shaft should be made flat or kind of deepening should be drilled. The most tedious way would be to fix the shaft with vise and use file to flatten corresponding places. In this case using something softer then steel would be advisable :-) . However, if you have access to milling-machine that would be the simplest way to make shafts.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgstvXezbCrl5rqDUE18T-HjIOlMj1khgGwWiAKmz7akxU0UXWJgdRtYPgUSMCq4qu_-yLdn_g13WKPd74Oc9m87pNWDDoUE70CMz0cZoRCWjFw8IGQYyZqk_3GdCxUTRt62YFdG5LhaMI/s1600/wheel-shaft.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgstvXezbCrl5rqDUE18T-HjIOlMj1khgGwWiAKmz7akxU0UXWJgdRtYPgUSMCq4qu_-yLdn_g13WKPd74Oc9m87pNWDDoUE70CMz0cZoRCWjFw8IGQYyZqk_3GdCxUTRt62YFdG5LhaMI/s640/wheel-shaft.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Flattened surfaces are preventing slipping of the gear and motor coupling.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
One end of the shaft should also have screw thread. It is not that difficult to make it even with cutting die. What is important however to use some kind of locking nut to mount wheels. Otherwise, after some driving vibrations will cause nuts to become not tight.&lt;br /&gt;
&lt;br /&gt;
Regarding wheels - RC cars guys already collected bunch of experience with mechanical parts. So we just decide to use standard RC car wheels with their standard mounts. For this purposes it is necessary to drill the perpendicular hole in the shaft. This is the only step which you can not really do without proper drilling machine. Hand drilling machine would not work (unless you are drilling top gun :-) ). The problem is to make the hole really perpendicular to the shaft. Otherwise the wheel will wobble which is not good.&lt;br /&gt;
&lt;br /&gt;
So now if you you put everything together, it will looks like this:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglGs8_3VVZKUrXHU_fhWqr2iqMayQ33Wu83Cp4KKe7JwD7vV_DJWOgKzIPIp6rns63cro3eBcij2b-KW9vrOaMjKMj4z11TYMjpZ8SGre5jyLo2uZUeljuNr-3Hq4WGYljSRDynAoV_ao/s1600/base-assembly-no-battery.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglGs8_3VVZKUrXHU_fhWqr2iqMayQ33Wu83Cp4KKe7JwD7vV_DJWOgKzIPIp6rns63cro3eBcij2b-KW9vrOaMjKMj4z11TYMjpZ8SGre5jyLo2uZUeljuNr-3Hq4WGYljSRDynAoV_ao/s640/base-assembly-no-battery.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Assembly without battery&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&amp;nbsp;The place in the middle is where the battery will be placed. To fix the battery we decide to make holders and use hook-and-loop fasteners:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNFaSLZNWsMwojw_aO-pOHL6yWoTwIvKHnSkU3Ir3FMdPRl6PX_jzD8L_EqB8m7qTiJy0tA8TJ_gZdoYI04gDtns0cryalQ_3GEHmfGHDBm8qeC1HrriHwBL9kFGZUy6JkOiYqKpBzu5M/s1600/base-assembly-with-battery.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNFaSLZNWsMwojw_aO-pOHL6yWoTwIvKHnSkU3Ir3FMdPRl6PX_jzD8L_EqB8m7qTiJy0tA8TJ_gZdoYI04gDtns0cryalQ_3GEHmfGHDBm8qeC1HrriHwBL9kFGZUy6JkOiYqKpBzu5M/s640/base-assembly-with-battery.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Battery with holders&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
So finally, placing the top cover will provide additional stability for the battery and convenient access to the power pads. In addition, there are corresponding holes for hook-and-loop fasteners as well as for wires to connect motors to the on-board electronic which will be placed on this top cover.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEpEdvzhVCQSu-lwwxx3pUhFj_X816S3Kt5AHQ5A7jXam32rh_z4fshDbKOu4VLHwrzGiKR3UfqkWFCZKdD3ByguPH4eCeAi4ypr4yTXl89aee4F8BJngVXIEAVJBVLNzKnHu33_Fbd7M/s1600/base-assembly-covered.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;378&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEpEdvzhVCQSu-lwwxx3pUhFj_X816S3Kt5AHQ5A7jXam32rh_z4fshDbKOu4VLHwrzGiKR3UfqkWFCZKdD3ByguPH4eCeAi4ypr4yTXl89aee4F8BJngVXIEAVJBVLNzKnHu33_Fbd7M/s640/base-assembly-covered.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Placing top deck.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
So now the mechanic is ready for the first test-drive. However, some control electronic is missing. This is what will be covered in the next article.&lt;br /&gt;
&lt;br /&gt;
The following pictures are from the real vehicle we have made according to the description above. There are some details which might be useful if you decide to try to build it yourself.&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table border=&quot;0&quot; style=&quot;width: 100%px;&quot;&gt;

&lt;tbody&gt;
&lt;tr&gt;

&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0R6Q5a8uAoc0dx4_cRCdsehMflbgQJHr8y5Ccsy0pw96NuSlhXod5ONfcfMiF4duhtx3rHQKYqpHYs8rVHZKk_wGAU33kgWSlCZy7HW0dVNIBUShbe-1PO-YpC3V8Wo5kSczLSZQdJEQ/s1600/20150627_180209.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0R6Q5a8uAoc0dx4_cRCdsehMflbgQJHr8y5Ccsy0pw96NuSlhXod5ONfcfMiF4duhtx3rHQKYqpHYs8rVHZKk_wGAU33kgWSlCZy7HW0dVNIBUShbe-1PO-YpC3V8Wo5kSczLSZQdJEQ/s200/20150627_180209.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyyjV0XDIizWtFJULwHMZDcxa-jgPTweHy8idpv9-j6E7dBH0_UumWL-lzdyZ9q_ZuOvvo-wAtW3KWy22A4JYsdqJZSFeQigzURvvM6_nfAwtVhYlqQIvmLDWTeCf_z03lhazT3U4sokM/s1600/20150627_180534.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyyjV0XDIizWtFJULwHMZDcxa-jgPTweHy8idpv9-j6E7dBH0_UumWL-lzdyZ9q_ZuOvvo-wAtW3KWy22A4JYsdqJZSFeQigzURvvM6_nfAwtVhYlqQIvmLDWTeCf_z03lhazT3U4sokM/s200/20150627_180534.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHVwAiCrm3KFOq8wTrv-Dj8WRo7QOarEGRhPscqvfjFHDoT0pxEeNTTt-BlOlZuVHvTTGBohwrQAMc1XbognIeKDkwkC6OiUIhb3NxznN-4fEqYaEf1pIsBArbrPuit-fKDhCqTybmraA/s1600/20150627_180611.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHVwAiCrm3KFOq8wTrv-Dj8WRo7QOarEGRhPscqvfjFHDoT0pxEeNTTt-BlOlZuVHvTTGBohwrQAMc1XbognIeKDkwkC6OiUIhb3NxznN-4fEqYaEf1pIsBArbrPuit-fKDhCqTybmraA/s200/20150627_180611.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB33n2E2mnfVAQztqFhMRnznApYwkywUMXf2CTwW4IUS_pc69g2A3opBePdcJz2zDq23V5d8laKZH-159dT18qXgkukDD580U158YPtpZ0rJyg1Xe8wwo9G3BfDBJfv-CwtJvtLdP0Va4/s1600/20150627_180759.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB33n2E2mnfVAQztqFhMRnznApYwkywUMXf2CTwW4IUS_pc69g2A3opBePdcJz2zDq23V5d8laKZH-159dT18qXgkukDD580U158YPtpZ0rJyg1Xe8wwo9G3BfDBJfv-CwtJvtLdP0Va4/s200/20150627_180759.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;

&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl18-Ys8TYpdDSBsKt242YAyQXpBjVmThu8M8ZQwd4vjtbDKM-op5j6HsuOMRp2gwEJ5Td-ioYtqN0BvJzqIFIzzXCUqadQO_wzvt4-KxSoQuPPVjm5E1LiQuI8PrAMAbhvX5TNKXi4SM/s1600/20150627_180812.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl18-Ys8TYpdDSBsKt242YAyQXpBjVmThu8M8ZQwd4vjtbDKM-op5j6HsuOMRp2gwEJ5Td-ioYtqN0BvJzqIFIzzXCUqadQO_wzvt4-KxSoQuPPVjm5E1LiQuI8PrAMAbhvX5TNKXi4SM/s200/20150627_180812.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCeHyKkjAj2nvpV4j5-RX99rlNtYCVm_SYpeI1I8MIvH2UaOM75W6UvwFxCvJ_WE0p5K1Cu617NmK9N-ah0fQl72xkv4XjB4Xx5-STLtuelAEaagxjT5EE-THYQgiZtAhxv0KXs9KRa8w/s1600/20150627_180848.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCeHyKkjAj2nvpV4j5-RX99rlNtYCVm_SYpeI1I8MIvH2UaOM75W6UvwFxCvJ_WE0p5K1Cu617NmK9N-ah0fQl72xkv4XjB4Xx5-STLtuelAEaagxjT5EE-THYQgiZtAhxv0KXs9KRa8w/s200/20150627_180848.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjycpojOSsvDecNBSlNzesYL8ApaRgz0MNbkWho2OWx2NxYhxKgdnsJWtSUETVHAslPaH3bP4RqH6Y2LLI9pkh6Q_T4cPrrr_NwwvhnzfKyBcjDlU2eUd_vBVzfjkGHtrTh8YdqnGUXVy4/s1600/20150627_180939.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjycpojOSsvDecNBSlNzesYL8ApaRgz0MNbkWho2OWx2NxYhxKgdnsJWtSUETVHAslPaH3bP4RqH6Y2LLI9pkh6Q_T4cPrrr_NwwvhnzfKyBcjDlU2eUd_vBVzfjkGHtrTh8YdqnGUXVy4/s200/20150627_180939.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;td&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinUUkRfHv2pWCGd5CGx8uFydrUwX86ktPLad0Vk3bx7s4Ulva6uiwJXrcCuL444bBLu-Wpb9ubJ5__E_WqA7TtYV3KNNBJqRNuHRZ2sFyjVlTtk8CPmpJ5i9-gP4IjFspqCV-F01olvZ4/s1600/20150627_181042.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinUUkRfHv2pWCGd5CGx8uFydrUwX86ktPLad0Vk3bx7s4Ulva6uiwJXrcCuL444bBLu-Wpb9ubJ5__E_WqA7TtYV3KNNBJqRNuHRZ2sFyjVlTtk8CPmpJ5i9-gP4IjFspqCV-F01olvZ4/s200/20150627_181042.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;

&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
When we reached this stage in the project, we were so keen to test-drive the platform that we hook up motor controller with RC receiver just to remotely control it with standard RC device. It resulted in absolutely unmanageable cable salad, but we did not care :-) . So here is the video of the very first RC-controlled test-drive.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; class=&quot;YOUTUBE-iframe-video&quot; data-thumbnail-src=&quot;https://i.ytimg.com/vi/W47cyLSvp90/0.jpg&quot; frameborder=&quot;0&quot; height=&quot;480&quot; src=&quot;https://www.youtube.com/embed/W47cyLSvp90?feature=player_embedded&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/6277456571105378726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2015/06/building-robotics-ground-vehicle-part-1.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/6277456571105378726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/6277456571105378726'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2015/06/building-robotics-ground-vehicle-part-1.html' title='Building robotics ground vehicle. Part 1 - mechanics.'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHPxQTfUWHu6gm7l8lC6FKcsukKPHOD9J9UCI3uW07rE1Mf70Zd-kL4CUWW0POwZWjWiw_8-V0VKFUXhaV89Gl5EUmEVcX0yz4VLmZZjre4YZzN0BR6AT_c0VmCzc9fIoXtpMOHxZhjhQ/s72-c/title-image.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-6475857052761930775</id><published>2015-04-17T18:16:00.002+02:00</published><updated>2015-05-05T07:45:16.588+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="buildroot"/><category scheme="http://www.blogger.com/atom/ns#" term="embedded"/><category scheme="http://www.blogger.com/atom/ns#" term="kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="raspberry pi"/><category scheme="http://www.blogger.com/atom/ns#" term="startup"/><category scheme="http://www.blogger.com/atom/ns#" term="toolchain"/><category scheme="http://www.blogger.com/atom/ns#" term="workflow"/><title type='text'>Embedded workflow with buildroot for Raspberry Pi: toolchain</title><content type='html'>&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-uGhLns_lePyxtIHQY30z0OYy_b6BjyB07y04ohnhSxheDzI0KQ4bwJPq5i0fzDxHFSkHE56nRKRrem_zsR76kPTnGNAQlqGBJ1vxqm_P3hYWWmRrQbTte8wIBTuKfi5AbU0OV-22MWQ/s1600/Buildroot.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-uGhLns_lePyxtIHQY30z0OYy_b6BjyB07y04ohnhSxheDzI0KQ4bwJPq5i0fzDxHFSkHE56nRKRrem_zsR76kPTnGNAQlqGBJ1vxqm_P3hYWWmRrQbTte8wIBTuKfi5AbU0OV-22MWQ/s1600/Buildroot.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Motivation&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;During our experiments with electronics and as part of ongoing effort to find out best setup for next robot we decided to experiment with different &lt;a href=&quot;https://www.raspberrypi.org/&quot;&gt;Raspberry Pi&lt;/a&gt; versions. Getting &lt;a href=&quot;http://www.raspbian.org/&quot;&gt;Raspbian&lt;/a&gt; is super easy and described elsewhere. This allows to start developing in no time. But if we speak about time, being debian, it relatively complex system and it takes time to boot. Additionaly it take a lot of space and requires read-write partition, which doesn&#39;t work well in robot scenario where robot could be restarted at any time or loose power. That&#39;s why I decided to experiment with other options.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;
Having some experience with &lt;a href=&quot;http://www.openembedded.org/&quot;&gt;openembedded&lt;/a&gt; on the &lt;a href=&quot;http://beagleboard.org/&quot;&gt;beagleboard&lt;/a&gt; I wanted to check something else and this time had a look to &lt;a href=&quot;http://buildroot.uclibc.org/&quot;&gt;Buildroot&lt;/a&gt;. Buildroot environment is conceptionally similar to openembedded as it allows to build completely custom embedded linux distribution. First impression shows that it is smaller, which on the negative side has much less packages, but on the pro side it is simpler. It is based on Makefiles, which are very well understood. Here I would like to document steps taken to setup and use buildroot to build custom image.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Requirements&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Target for this series is to setup comfortable wokrflow with following requirements:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Buildroot based images&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Separated toolchain and image setup, which allows to re-build image without re-building toolchain&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Toolchain allows building u-boot and other custom software with easy deployment&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Possibility to build from the same source different targets, for example, pi and qemu&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Image is built with ramdisk in one big zImage file&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The image should as slim as possible to minimize startup time targeting first interaction with user under 2 seconds&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The system should not write anything to the filesystem&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Alternative booting scenarios such as nfsroot mounted for iterative development should be possible&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Development system should separate board specifics so that update to new version is pretty easy&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Example of custom kernel module should be present. I will try to integrate small LCD display and show welcome message on the start&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Setup&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The development happens on the &lt;a href=&quot;https://www.debian.org/&quot;&gt;Debian&lt;/a&gt; jessy, which at the moment 04/2015 is testing. User is able to do sudo and all development happens in &quot;~/work/&quot; folder.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;# This is base for project
~ -&amp;gt; mkdir work; cd work/

# Directory structure 
~/work -&amp;gt; mkdir src # this is where all unpacked sources are stored
~/work -&amp;gt; mkdir dl  # this folder contains downloaded packages
~/work -&amp;gt; mkdir pi  # here we build pi image
~/work -&amp;gt; mkdir tc  # this is folder for toolchain build

# buildroot get from git for easy updates
~/work -&amp;gt; cd src/
~/work/src -&amp;gt; git clone git://git.buildroot.net/buildroot 
~/work/src -&amp;gt; cd buildroot/
~/work/src/buildroot -&amp;gt; git checkout 2015.02   # current stable version
~/work/src/buildroot -&amp;gt; cd ../&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Short version&amp;nbsp;&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The prepared package could be downloaded from github and will get toolchain working in no time. For those who want to do it manually and learn a bit you can skip to longer version below.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;# Get piwf 
~/work/src -&amp;gt; git clone git://github.com/veter-team/piwf.git; cd piwf/
~/work/scr/piwf -&amp;gt; git checkout toolchain
~/work/src/buildroot -&amp;gt; cd ../../tc/

# Let&#39;s create Makefile and initial .config
~/work/tc -&amp;gt; make O=$PWD -C ../src/buildroot BR2_EXTERNAL=../piwf pitc_defconfig 

# Time for coffee, on my notebook it takes with download around 10 minutes
~/work/tc -&amp;gt; make 
~/work/tc -&amp;gt; ls host/usr/
arm-buildroot-linux-uclibcgnueabi  bin  include  lib  libexec  share
&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Here is your brand new buildroot toolchain for Raspberry Pi.&lt;/span&gt;&lt;br /&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Long version&lt;/span&gt;&lt;/h4&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now let us create overlay for buildroot with custom configuration. The overlay will contain additional files with buildroot structure and custom packages. The overlay is refered with BR2_EXTERNAL variable and pretty good documented in buildroot manual.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;


&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;# Let us create overlay
~/work/src -&amp;gt; mkdir -p piwf/configs; cd piwf/
# Required for BR2_EXTERNAL and will be used to add packages
~/work/src/piwf -&amp;gt; touch Config.in external.mk

# Always good idea to put files under git
~/work/src/piwf -&amp;gt; git init
~/work/src -&amp;gt; cd ../tc/

# Let&#39;s create Makefile and initial .config
~/work/tc -&amp;gt; make O=$PWD -C ../src/buildroot raspberrypi_defconfig

# Show me the options
~/work/tc -&amp;gt; make menuconfig
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Now you presented with a lot of options. On this stage we would like to switch off as many packages as possible. Target is to build only toolchain and no native packages. After all these packages switched off, the buildroot still copies skeleton of rootfs, but it just takes space. The [*] should be switched on and if below table show [ ] it should be switched off. The rest of the options could be left as it is as they are already off.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;Build options -&amp;gt;
    ($(BASE_DIR)/../src/piwf/configs/pitc_defconfig) Location to save buildroot config
    ($(BASE_DIR)/../dl) Download dir
    [*] Enable compiler cache
        $(BASE_DIR)/../.buildroot-ccache
Toolchain -&amp;gt;
    Kernel Headers (Linux 3.18.x kernel headers) 
    [*] Enable large file support
    [*] Enable IPv6 support
    [*] Enable RPC support
    [*] Enable WCHAR support
    [*] Enable stack protection support
    Binutils version (binutils 2.25)
    *** GCC version ***
        GCC Compiler version (gcc 4.9.x)
    [*] Enable C++ support
    [*] Enable compiler tls support
    [*] Purge unwanted locales
        (C en_US)

System Configuration -&amp;gt;
    Init System -&amp;gt; None
    /bin/sh -&amp;gt; None
    Root FS skeleton (custom target skeleton)

Kernel -&amp;gt;
    [ ] Linux Kernel

Target Packages -&amp;gt;
    [ ] Busybox
    Hardware handling -&amp;gt;
       Firmware -&amp;gt;
           [ ] rpi-firmware
Filesystem images
    [ ] tar the root filesystem
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;It is time to exit and on the question save &quot;.config&quot; file. Now &quot;.config&quot; file contains only options required for toolchain. Obviously, if the requirements are different, for example, IPV6 support is needed, it should be switched on. But presented here options should be enough for most of the cases.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;


&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;# Let save config in our overlay
~/work/tc -&amp;gt; make savedefconfig

# And now building
~/work/tc -&amp;gt; make
~/work/tc -&amp;gt; ls host/usr/
arm-buildroot-linux-uclibcgnueabi  bin  include  lib  lib exec  share
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;The toolchain is built and the defaut config for toolchain is saved in overlay. Time to commit changes.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;


&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;~/work/tc -&amp;gt; cd ../src/piwf/
~/work/src/piwf -&amp;gt; git add .
~/work/src/piwf -&amp;gt; git commit -m &quot;Added initial toolchain&quot;
~/work/src/piwf -&amp;gt; git tag -a &quot;toolchain&quot; -m &quot;Toolchain article&quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Building actual image with this toolchain will be discussed in next article.&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/6475857052761930775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2015/04/embedded-workflow-with-buildroot-for.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/6475857052761930775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/6475857052761930775'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2015/04/embedded-workflow-with-buildroot-for.html' title='Embedded workflow with buildroot for Raspberry Pi: toolchain'/><author><name>Maxim Parkachov</name><uri>http://www.blogger.com/profile/10077336269417186107</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-uGhLns_lePyxtIHQY30z0OYy_b6BjyB07y04ohnhSxheDzI0KQ4bwJPq5i0fzDxHFSkHE56nRKRrem_zsR76kPTnGNAQlqGBJ1vxqm_P3hYWWmRrQbTte8wIBTuKfi5AbU0OV-22MWQ/s72-c/Buildroot.png" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-4126559367921637382</id><published>2013-09-24T22:44:00.001+02:00</published><updated>2019-12-17T14:50:56.585+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="gesture"/><category scheme="http://www.blogger.com/atom/ns#" term="gesture recognition"/><category scheme="http://www.blogger.com/atom/ns#" term="opencv"/><category scheme="http://www.blogger.com/atom/ns#" term="perceptual computing"/><category scheme="http://www.blogger.com/atom/ns#" term="voice"/><category scheme="http://www.blogger.com/atom/ns#" term="voice recognition"/><title type='text'>Using gestures and voice commands to control the robot</title><content type='html'>Couple of months ago we decide to participate in Intel&#39;s perceptual computing challenge (&lt;a href=&quot;http://perceptualchallenge.intel.com/&quot;&gt;http://perceptualchallenge.intel.com&lt;/a&gt;).  The idea was to extend driver cockpit application to control Veterobot  (&lt;a href=&quot;http://veterobot.org/&quot;&gt;http://veterobot.org&lt;/a&gt;)
 with gestures and voice recognition. We are using detected thumb 
position in 3D space. Position along horizontal axis is used as a 
steering signal and distance to the camera (depth) to control 
acceleration (forward and backward).&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji3hBiGEHsMOYUy39iiSlog87hZr6jVvse2uY268g73EuT6TG9_z-qX-Y4iWcBABZU9n6Hn5UuR3c1Rejnek0lJ57dnAW5RJdD02CH_Cmdm2pIYv33lximSm31SPGEqk4wtV3b_4WhUK4/s1600/perceptualbot.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;163&quot; data-original-width=&quot;310&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji3hBiGEHsMOYUy39iiSlog87hZr6jVvse2uY268g73EuT6TG9_z-qX-Y4iWcBABZU9n6Hn5UuR3c1Rejnek0lJ57dnAW5RJdD02CH_Cmdm2pIYv33lximSm31SPGEqk4wtV3b_4WhUK4/s400/perceptualbot.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Using thumb to control steering and acceleration&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
It was a fun exercise but some more tuning is still required to achieve smooth control experience. So it is work in progress. More details about this work are presented in the video below.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/5AkzF8kIeC0?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;https://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/4126559367921637382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2013/09/using-gestures-and-voice-commands-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4126559367921637382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4126559367921637382'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2013/09/using-gestures-and-voice-commands-to.html' title='Using gestures and voice commands to control the robot'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji3hBiGEHsMOYUy39iiSlog87hZr6jVvse2uY268g73EuT6TG9_z-qX-Y4iWcBABZU9n6Hn5UuR3c1Rejnek0lJ57dnAW5RJdD02CH_Cmdm2pIYv33lximSm31SPGEqk4wtV3b_4WhUK4/s72-c/perceptualbot.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-4545110503315791282</id><published>2013-03-25T12:57:00.000+01:00</published><updated>2013-03-25T12:58:38.767+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="conference"/><category scheme="http://www.blogger.com/atom/ns#" term="exhibition"/><category scheme="http://www.blogger.com/atom/ns#" term="innorobo"/><category scheme="http://www.blogger.com/atom/ns#" term="investor"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="startup"/><category scheme="http://www.blogger.com/atom/ns#" term="veter"/><category scheme="http://www.blogger.com/atom/ns#" term="veterobot"/><title type='text'>Veterobot at InnoRobo2013</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhurWO67PW8w4M7vrcZus9BUkYDr26UjUupPsd9hze1CSJvAtHb0ZRwb0tG7Kb1vnbuhD8gq2cwIscw2w3JxPmHT49N_uvSBIbxuBDmC9C6kPCVMx3p-DqsYU_9ij2G90NUzrA1qyH5fAU/s1600/wall-ye-real.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
From 19-th to 21-st of March we were presenting our BeagleBoard-based &lt;a href=&quot;http://veterobot.com/&quot; target=&quot;_blank&quot;&gt;Veter robot&lt;/a&gt; at &lt;a href=&quot;http://innorobo.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;id=518:exhibitor-1&amp;amp;Itemid=221&amp;amp;lang=en&quot; target=&quot;_blank&quot;&gt;InnoRobo2013&lt;/a&gt;.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkEfs3R8kZtdJoMDSH989_Avf9OvQ6dogI_zODaM4UFkzh6pDxoqLr6EfvfGrcDNN6JM_yXr3_7o3e3UsO4g_bunJf8Lf0n31DbT38s0uyK229R8DGykqlHSwwn3J5ta4NJmAle2dKxds/s1600/booth.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB-qUsae4TPdbA2TDSGN71ud7vemKM5oORcIeMf9lTPpnqG_uhEyyKG4pSHc64MOa6xx3z_TfJbwDeurrQ-7Aa1CvChyQqG4Xv4yIHbogzkk2EZmf-rFpc8tpJAK7jgE5e1lNPyTJy7g0/s1600/veterobot_blue-1024.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;451&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB-qUsae4TPdbA2TDSGN71ud7vemKM5oORcIeMf9lTPpnqG_uhEyyKG4pSHc64MOa6xx3z_TfJbwDeurrQ-7Aa1CvChyQqG4Xv4yIHbogzkk2EZmf-rFpc8tpJAK7jgE5e1lNPyTJy7g0/s640/veterobot_blue-1024.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;With this large poster we presented the Veterobot project.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
In this year, there was a fist &lt;a href=&quot;http://innorobo.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;layout=item&amp;amp;id=234&amp;amp;Itemid=357&amp;amp;lang=en&quot; target=&quot;_blank&quot;&gt;start-up competition&lt;/a&gt; organized by InnoRobo. As one of the five finalists, we got an opportunity to present our project at exhibition and make a short talk by the panel discussion with investors. It was a great success for us. We have made a lot of new promising contacts and this was our main goal.&lt;br /&gt;
&lt;br /&gt;
We have got the small booth (but do not mind, it was for free ;-) ) and have made our best out of it.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIfI4m1sdd3bmYhyphenhyphenlLzvKxClfOu6ICNjyhQs_L06Uu-Yep3A4O1v4eTvXfKB8Fvgqvft79lIB977BJsaHQ8JyW3QJn7ITcoe-c7WemRcCMO_X1RBb9vz-T0oJXyTXW5TPkHmThn6FXjeA/s1600/booth.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;480&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIfI4m1sdd3bmYhyphenhyphenlLzvKxClfOu6ICNjyhQs_L06Uu-Yep3A4O1v4eTvXfKB8Fvgqvft79lIB977BJsaHQ8JyW3QJn7ITcoe-c7WemRcCMO_X1RBb9vz-T0oJXyTXW5TPkHmThn6FXjeA/s640/booth.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Anna at the booth.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
There were a lot of interesting robots presented at the exhibition. However, most of them are still extremely expensive. For example, we were looking for the decent robotics arm for the next generation of our robot, but the one I found interesting has $30K price tag! Lots of robots comparable with ours were also much more expensive than our offer. The main conclusion we have made after the exhibition is - target &lt;i&gt;consumer market&lt;/i&gt; and try to &lt;i&gt;solve concrete problem&lt;/i&gt; with your robot.&lt;br /&gt;
&lt;br /&gt;
With this respect, I found the robot presented by our booth neighbors, the French company called &lt;a href=&quot;http://wall-ye.com/&quot; target=&quot;_blank&quot;&gt;Wall-Ye&lt;/a&gt;, one of the most impressive and useful robot of the whole exhibition.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXENAxngysISvqdgmIRgOYjKSwYj8kX_yE-BCJtuDZ8FRn4HSOHej5GLKVzIo5YUiZfHDNsLAUGIIkX7aHxlVMpcOZiOZjZ3ELzPN2HPoyWJ9rquHy-TXA0QnYo5KIpfLlrQsnbF3cM7M/s1600/wall-ye-render.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXENAxngysISvqdgmIRgOYjKSwYj8kX_yE-BCJtuDZ8FRn4HSOHej5GLKVzIo5YUiZfHDNsLAUGIIkX7aHxlVMpcOZiOZjZ3ELzPN2HPoyWJ9rquHy-TXA0QnYo5KIpfLlrQsnbF3cM7M/s200/wall-ye-render.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoCeOzDbn-jTrvbvghMlmR6dwJ9GqA36QCCrxewoea2xCuJ14AuGjE68Ve_QQ3n4RmzwScdmM6vzMNrCpJ0rnrBpvpuIw020w1V4ydGqOtbvpRtKVUtEX9GVk_cYHe6xAEnlC2toiRGn0/s1600/wall-ye-real.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;151&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoCeOzDbn-jTrvbvghMlmR6dwJ9GqA36QCCrxewoea2xCuJ14AuGjE68Ve_QQ3n4RmzwScdmM6vzMNrCpJ0rnrBpvpuIw020w1V4ydGqOtbvpRtKVUtEX9GVk_cYHe6xAEnlC2toiRGn0/s200/wall-ye-real.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
This is autonomous robot for cutting vine. Nice mechanical design. We did not get a chance to find out more about software, but it is rather impressive if the robot can drive autonomously in outdoor conditions and find the parts to cut out based on the image processing! Hat off guys!&lt;br /&gt;
&lt;br /&gt;
Despite some minor organizational problems (no single date for competition-related announcements were held, there was rather big delay and no words of excuse) we still think that organization committee has made a great job. The organizers were really nice and ready to help. The bus tour through the night Lyon was really impressive! So we want to expose our great appreciation for the possibility to participate in InnoRobo. We will try our best to be there next year also (hopefully with huge booth in the middle of the hall :-) ).&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/4545110503315791282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2013/03/veterobot-at-innorobo2013.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4545110503315791282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4545110503315791282'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2013/03/veterobot-at-innorobo2013.html' title='Veterobot at InnoRobo2013'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB-qUsae4TPdbA2TDSGN71ud7vemKM5oORcIeMf9lTPpnqG_uhEyyKG4pSHc64MOa6xx3z_TfJbwDeurrQ-7Aa1CvChyQqG4Xv4yIHbogzkk2EZmf-rFpc8tpJAK7jgE5e1lNPyTJy7g0/s72-c/veterobot_blue-1024.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-2689915731165001191</id><published>2013-02-22T15:25:00.000+01:00</published><updated>2013-02-28T17:33:35.768+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="conference"/><category scheme="http://www.blogger.com/atom/ns#" term="exhibition"/><category scheme="http://www.blogger.com/atom/ns#" term="investor"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="startup"/><category scheme="http://www.blogger.com/atom/ns#" term="veter"/><category scheme="http://www.blogger.com/atom/ns#" term="veterobot"/><title type='text'>We are among finalists by &quot;Call for Robotics Start-ups&quot; at InnoRobo&#39;13</title><content type='html'>&lt;a href=&quot;http://veterobot.com/&quot; target=&quot;_blank&quot;&gt;Veterobot team&lt;/a&gt; is among five finalists by &quot;&lt;a href=&quot;http://innorobo.com/index.php?option=com_k2&amp;amp;view=item&amp;amp;layout=item&amp;amp;id=234&amp;amp;Itemid=357&amp;amp;lang=en&quot; target=&quot;_blank&quot;&gt;Call for Robotics Start-ups&lt;/a&gt;&quot;
 issued by &lt;a href=&quot;http://innorobo.com/&quot; target=&quot;_blank&quot;&gt;InnoRobo&lt;/a&gt;. It looks like we will get an area to demonstrate 
our robot. So if you are attending this conference or collocated 
exhibition, we will be glad to meet you there.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-iYR4EUcFlbo/USdvqL6lP7I/AAAAAAAAAas/KeuVx1BzHDo/s1600/innorobo-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-iYR4EUcFlbo/USdvqL6lP7I/AAAAAAAAAas/KeuVx1BzHDo/s1600/innorobo-logo.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/2689915731165001191/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2013/02/we-are-among-five-finalists-by-call-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/2689915731165001191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/2689915731165001191'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2013/02/we-are-among-five-finalists-by-call-for.html' title='We are among finalists by &quot;Call for Robotics Start-ups&quot; at InnoRobo&#39;13'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-iYR4EUcFlbo/USdvqL6lP7I/AAAAAAAAAas/KeuVx1BzHDo/s72-c/innorobo-logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-4854856666638366608</id><published>2013-02-12T16:52:00.004+01:00</published><updated>2013-02-12T16:54:43.257+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="real-time"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="stream"/><category scheme="http://www.blogger.com/atom/ns#" term="veter"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><category scheme="http://www.blogger.com/atom/ns#" term="wheeled"/><category scheme="http://www.blogger.com/atom/ns#" term="xenomai"/><title type='text'>Testing the wheeled version</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
As &lt;a href=&quot;http://veter-project.blogspot.com/2013/01/kinect-and-wheeled-versions-under.html&quot;&gt;announced in our previous post&lt;/a&gt;, we are working on wheeled version of &lt;a href=&quot;http://veterobot.com/&quot;&gt;our robot&lt;/a&gt;. Tires and shaft adapters are arrived today and we mount them to conduct first test drive. Here are some photos:&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdGm7xEL9vyxyygtohCES0WME-7Dc4QzaS4KYKFQABIWO9EAJRUt0AEW9gQ1lNmNC5Gxb99oeI1amga0WM9If6C1_i3KEyohvyIlstLsQIAu08T9s66Gg3qfpAnknnjiJWuUdXZJjj1gw/s1600/20130212_002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdGm7xEL9vyxyygtohCES0WME-7Dc4QzaS4KYKFQABIWO9EAJRUt0AEW9gQ1lNmNC5Gxb99oeI1amga0WM9If6C1_i3KEyohvyIlstLsQIAu08T9s66Gg3qfpAnknnjiJWuUdXZJjj1gw/s400/20130212_002.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Wheeled version of the &quot;Shark&quot; model&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_bfIOY5xe3c3JNIwWn9ubb3lBbjdKVmnefbpvQjOT7SkLJ_eGoltd7Wwx-gurkqEzVG4pdtWnfSAZmAsgIsbSTGHGV4UoSMTZRxoWhGQJUgebGl8pPEB3TgzXfdowJGmSlSzSr5Hkxnw/s1600/20130212_003.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_bfIOY5xe3c3JNIwWn9ubb3lBbjdKVmnefbpvQjOT7SkLJ_eGoltd7Wwx-gurkqEzVG4pdtWnfSAZmAsgIsbSTGHGV4UoSMTZRxoWhGQJUgebGl8pPEB3TgzXfdowJGmSlSzSr5Hkxnw/s400/20130212_003.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
The first test drive was more or less successful. However, there are still some problems we need to solve:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Shafts are too long for adapters we are using and as a results wheels are sitting to wide. The simplest way to fix it would be just to cut about 10mm out. The front wheels on the second picture illustrate how it would be.&lt;/li&gt;
&lt;li&gt;While turning with one wheel stopped works reasonably well. However, the on-place turn where wheels are rotating in different directions does not work as it should be. It happens because we are using two-wheel drive version of the chassis. I hope that four-wheel drive chassis will fix the problem.&lt;/li&gt;
&lt;/ul&gt;
Except of issues mentioned above, it works well and makes a lot of fun to drive because the robot can go faster than tracked version! Please feel free to visit &lt;a href=&quot;http://veterobot.com/&quot;&gt;our project web-site&lt;/a&gt; to learn more about the robot.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/4854856666638366608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2013/02/testing-wheeled-version.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4854856666638366608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4854856666638366608'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2013/02/testing-wheeled-version.html' title='Testing the wheeled version'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdGm7xEL9vyxyygtohCES0WME-7Dc4QzaS4KYKFQABIWO9EAJRUt0AEW9gQ1lNmNC5Gxb99oeI1amga0WM9If6C1_i3KEyohvyIlstLsQIAu08T9s66Gg3qfpAnknnjiJWuUdXZJjj1gw/s72-c/20130212_002.jpg" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-5959622701245359554</id><published>2013-01-30T11:03:00.000+01:00</published><updated>2013-02-04T22:57:20.080+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="kinect"/><category scheme="http://www.blogger.com/atom/ns#" term="localization"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="opencv"/><category scheme="http://www.blogger.com/atom/ns#" term="real-time"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><title type='text'>Kinect and wheeled versions under development</title><content type='html'>Sungreen has made the 3D model for wheeled version of the &quot;Shark&quot;. We were pointed out that tracked version might have problems on thick carpet or wet tiles. That is why we want to try the wheeled version and compare the performance on different surfaces. Any thoughts whether it will drive 
better then tracked version? Some pros/cons of wheels vs. tracks?&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-0aTFaD4IbZE/UQjqBM-OPCI/AAAAAAAAAYg/o4R6hR1mCn0/s1600/shark_mars_edition_20130127a.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;http://4.bp.blogspot.com/-0aTFaD4IbZE/UQjqBM-OPCI/AAAAAAAAAYg/o4R6hR1mCn0/s400/shark_mars_edition_20130127a.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&quot;Shark&quot; with wheels.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
In addition we are thinking about adding Kinect sensor. It is rather big and it is not 100% clear 
yet what is the best way to do it. We can try to mount it on the 
existing &quot;Shark&quot; model or modify the alternative model.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/DS2G6HVFccc?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;http://1.bp.blogspot.com/-bAHmoOR809g/UQjr65W0WnI/AAAAAAAAAZE/V6_utGNbzsA/s1600/alternative-kinect.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;http://1.bp.blogspot.com/-bAHmoOR809g/UQjr65W0WnI/AAAAAAAAAZE/V6_utGNbzsA/s400/alternative-kinect.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Alternative body with Kinect mounted on it. &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-MYFzLODfEsI/UQjr7y3SsZI/AAAAAAAAAZI/K_dvVsu85gc/s1600/shark-kinect.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;http://3.bp.blogspot.com/-MYFzLODfEsI/UQjr7y3SsZI/AAAAAAAAAZI/K_dvVsu85gc/s400/shark-kinect.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Wheeled &quot;Shark&quot; with Kinnect mounted on it.&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Any comments on 
it are very welcome. For more details about the whole project, please visit &lt;a href=&quot;http://veterobot.com/&quot;&gt;our web-site&lt;/a&gt;.&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/5959622701245359554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2013/01/kinect-and-wheeled-versions-under.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5959622701245359554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5959622701245359554'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2013/01/kinect-and-wheeled-versions-under.html' title='Kinect and wheeled versions under development'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-0aTFaD4IbZE/UQjqBM-OPCI/AAAAAAAAAYg/o4R6hR1mCn0/s72-c/shark_mars_edition_20130127a.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-2773929445870115436</id><published>2013-01-19T15:30:00.000+01:00</published><updated>2013-01-20T15:02:29.097+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="localization"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="opencv"/><category scheme="http://www.blogger.com/atom/ns#" term="real-time"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><title type='text'>The new &quot;Shark&quot; model of our robot</title><content type='html'>Last year we spend considerable amount of time building the new version of our robotics vehicle. Here is the result - the small tracked vehicle which might be interesting for researchers in robotics, AI, computer vision as well as for DIY enthusiasts. All the CAD models, assembling instructions and software are open source.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://raw.github.com/wiki/veter-team/veter/images/shark-small.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://raw.github.com/wiki/veter-team/veter/images/shark-small.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;The &quot;Shark&quot; model&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
We are using &lt;a class=&quot;postlink&quot; href=&quot;http://www.pololu.com/catalog/product/1551&quot;&gt;Dagu&#39;s tracked chassis&lt;/a&gt;. The body of the vehicle is &lt;a class=&quot;postlink&quot; href=&quot;https://github.com/veter-team/veter/wiki/printing-body&quot;&gt;3D printed&lt;/a&gt;. The &lt;a class=&quot;postlink&quot; href=&quot;http://www.beagleboard.org/&quot;&gt;BeagleBoard-xM&lt;/a&gt;
 is used as on-board computer to control wide range of sensors (such as 
ultrasonic range finders, compass, cameras, etc.). If you are 
interested, please check &lt;a class=&quot;postlink&quot; href=&quot;http://veterobot.com/&quot;&gt;out our web-site&lt;/a&gt; for more details.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/bSEoQOExiMw?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/2773929445870115436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2013/01/the-new-shark-model-of-our-robot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/2773929445870115436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/2773929445870115436'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2013/01/the-new-shark-model-of-our-robot.html' title='The new &quot;Shark&quot; model of our robot'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-5273439522378735322</id><published>2012-05-13T21:06:00.000+02:00</published><updated>2012-06-13T18:58:34.326+02:00</updated><title type='text'>3D printed enclosure</title><content type='html'>We are currently working on the new version of our &lt;a href=&quot;http://veter-project.blogspot.com/2011/11/how-to-build-beagleboard-based-wifi.html&quot;&gt;BeagleBoard-xM based robot&lt;/a&gt;. The main reason for redesign was the lack of wheel encoders which prevent us from developing more sophisticated navigation algorithms. That is why we decide to use &lt;a href=&quot;http://www.pololu.com/catalog/product/1551&quot;&gt;Dagu Rover tracked chassis&lt;/a&gt;. However, not all our electronic could be fit in to the chassis, hence the need for additional enclosure on top of it.&lt;br /&gt;
After couple of &lt;a href=&quot;https://github.com/veter-team/veter/wiki/Hardware-design-en&quot;&gt;experiments with standard plastic boxes&lt;/a&gt;, we decide to design and &lt;b&gt;3D print&lt;/b&gt; our own custom enclosure. The following pictures are the very first concept ideas developed by great 3D designer Sungreen, who &lt;a href=&quot;http://blender-3d.ru/forum/index.php/topic,171.0.html&quot;&gt;also developed 3D model for our cockpit application&lt;/a&gt;.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvSY-uvmQRA5lBcA8KCXJ0arisZ8XESIE4fMtpq1mq98kqAm_Cu8dzPkW5OMS4rUVZmBTIm2VDI9-Wy0F47OjaeKgCDM9V8n6Qfryork2N5ZYvGUhYNm_OlaRU-L-8p9hk3uHW0QpNHAM/s1600/chassis.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvSY-uvmQRA5lBcA8KCXJ0arisZ8XESIE4fMtpq1mq98kqAm_Cu8dzPkW5OMS4rUVZmBTIm2VDI9-Wy0F47OjaeKgCDM9V8n6Qfryork2N5ZYvGUhYNm_OlaRU-L-8p9hk3uHW0QpNHAM/s320/chassis.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;3D model of the Dagu chassis&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKSP_sRX3OxuyFGvq_rN2uS1OEZfudqFXBKQz4eVha3E38MT3018T9tpPRikLCiBu6CIAm0jvG7rXVK-IY41hJV6iL8IcC47qHyR4E6boUAOEAlYltzlECHeN_8waS3-GBWOeHjZEywk8/s1600/20120520c.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKSP_sRX3OxuyFGvq_rN2uS1OEZfudqFXBKQz4eVha3E38MT3018T9tpPRikLCiBu6CIAm0jvG7rXVK-IY41hJV6iL8IcC47qHyR4E6boUAOEAlYltzlECHeN_8waS3-GBWOeHjZEywk8/s320/20120520c.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Concept enclosure on top of chassis&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYIknLIwnueejj7CQLVqToVl8VmojObcAYd8Fu6VeVfKPRDCnu2KopgQVu0D4BshvfxqjAWl_KS1G3JXs2JHw8anSVQHFgzW7jvje9Ip3oSveVKJlZXfgnrfxiaYUdRSXSKFV698kYqFI/s1600/20120520d.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYIknLIwnueejj7CQLVqToVl8VmojObcAYd8Fu6VeVfKPRDCnu2KopgQVu0D4BshvfxqjAWl_KS1G3JXs2JHw8anSVQHFgzW7jvje9Ip3oSveVKJlZXfgnrfxiaYUdRSXSKFV698kYqFI/s320/20120520d.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;We need to place BeagleBoard and other parts inside&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
It is surprising how hard it is to find precise mechanical drawings for typical hobby electronic parts. Neither BeagleBoard, nor ultra-sonic range finders as well as many other components have mechanical drawings which are easy to find in the Internet. So currently we are measuring and drawing sketches for all our mechanical and electronic components. As soon as we are done, we hope that our 3D printer will arrive and we can start experimenting with it. So stay tuned if you like to see how the enclosure will finally looks like.
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/5273439522378735322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2012/05/3d-printed-encosure.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5273439522378735322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5273439522378735322'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2012/05/3d-printed-encosure.html' title='3D printed enclosure'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvSY-uvmQRA5lBcA8KCXJ0arisZ8XESIE4fMtpq1mq98kqAm_Cu8dzPkW5OMS4rUVZmBTIm2VDI9-Wy0F47OjaeKgCDM9V8n6Qfryork2N5ZYvGUhYNm_OlaRU-L-8p9hk3uHW0QpNHAM/s72-c/chassis.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-689233544526128124</id><published>2012-04-23T02:29:00.000+02:00</published><updated>2018-03-05T16:40:40.580+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="driver"/><category scheme="http://www.blogger.com/atom/ns#" term="kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="pwm"/><category scheme="http://www.blogger.com/atom/ns#" term="real-time"/><category scheme="http://www.blogger.com/atom/ns#" term="rtdm"/><category scheme="http://www.blogger.com/atom/ns#" term="servo"/><category scheme="http://www.blogger.com/atom/ns#" term="xenomai"/><title type='text'>Precise PWMs with GPIO using Xenomai kernel module</title><content type='html'>&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Introduction&lt;/span&gt;&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;
This article is the follow up to &lt;a href=&quot;http://veter-project.blogspot.com/2011/09/real-time-enough-about-pwms-and-shaky.html&quot;&gt;our previous post&lt;/a&gt; on &lt;a href=&quot;http://en.wikipedia.org/wiki/Pulse-width_modulation&quot;&gt;PWM&lt;/a&gt; generation with GPIO using &lt;a href=&quot;http://www.xenomai.org/&quot;&gt;Xenomai&lt;/a&gt; real-time Linux extension. Despite clear improvements with Xenomai, the results were not good enough for us. In particular, under the heavy system load, PWMs were generated with jitter which was high enough that our servo motor starts shaking. So we decide to continue our search for the better solutions now in the kernel space.&lt;br /&gt;
&lt;br /&gt;
This article represents the results we obtained after implementing Xenomai RTDM kernel module. It also compares performance of the kernel-based solution with our previous user-space based approach. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Problem&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Our previous solution performs well if the system load is low to moderate. However, under heavy load, we were unable to keep the servo motor stable. We believe, that one of the main reasons for it was increased jitter which results in the in-precise pulse length. To check this hypothesis, we connect the oscilloscope to the signal (GPIO) pin to see what is really going on there. The following video illustrates what we have seen:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/DK3E6kBYh9A?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
We start our xenomai-based user-space application with no system load and after about 5 seconds run &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;tar jcf lib.tar.bz2 /usr/lib&lt;/span&gt; command which leads to the top showing about 95% CPU usage. The distance between two horizontal lines around the falling edge of the signal corresponds to 50uSecs (as also shown in the bottom of the scope&#39;s screen). So the very rough estimation of the jitter (just visually) is about 40uSec. So with the whole pulse length of 1500uS (50% duty or middle servo position) it would be little less then 1%. This result roughly correlate with observable servo motor movements described in the &lt;a href=&quot;http://veter-project.blogspot.com/2011/09/real-time-enough-about-pwms-and-shaky.html&quot;&gt;previous post&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Solution - Xenomai RTDM kernel module&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
It is well known, that moving into the kernel space could provide much better timing. We were trying to avoid this step as long as possible (because it is easier to develop and debug in the user space), but based on the results mentioned above it looks like we can not improve timing any more from the user space. So we decide to write kernel module. Xenomai offers convenient API to write real-time kernel space drivers which is called RTDM - Real-Time Driver Model (please see &lt;a href=&quot;http://www.xenomai.org/documentation/branches/v2.3.x/pdf/xenomai.pdf&quot;&gt;introduction paper&lt;/a&gt; and &lt;a href=&quot;http://www.xenomai.org/documentation/xenomai-2.6/html/api/index.html&quot;&gt;API documentation&lt;/a&gt; for more details).&lt;br /&gt;
&lt;br /&gt;
The result of these efforts &lt;a href=&quot;https://github.com/andreynech/rtdm-pwm&quot;&gt;(source code) could be found on git-hub&lt;/a&gt;.This repository contains the kernel driver and user-space test application. There are some instructions about compilation and how to run the test available in the README file. If you decide to compile and run everything yourself, we recommend to read &lt;a href=&quot;http://veter-project.blogspot.com/2012/03/comfortable-kernel-workflow-on.html&quot;&gt;the post about how we set-up our development and cross-compilation environment&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The core part of the driver is the 20mSec periodic task (function) which is toggling the GPIO pin in the endless loop:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;void pwm_task_proc(void *arg) {&lt;br /&gt;&amp;nbsp; const int which = (int)arg;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; // Toggling the pins&lt;br /&gt;&amp;nbsp; for(;;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set_data_out has offset 0x94&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set gpio pin to 1 (up)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iowrite32(0x40000000, gpio + 0x6094);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // wait requested pulse width time (duty)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(0 != rtdm_task_sleep(up_period[which]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtdm_printk(&quot;PWM: rtdm_task_sleep() returns error\n&quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //clear_data_out has offset 0x90&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set gpio pin to 0 (down)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iowrite32(0x40000000, gpio + 0x6090);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // wait until the next pulse should start (20mS interval)&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(0 != rtdm_task_wait_period())&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtdm_printk(&quot;PWM: rtdm_task_wait_period() returns error\n&quot;);&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
This loop essentially sets the pin to 1, then waits requested amount of time (pulse width length), then sets the pin to 0 and waits until the next period starts.&lt;br /&gt;
&lt;br /&gt;
Running driver-based solution under the same heavy load conditions shows considerable improvements compared to the user-space solution. The following video illustrates the performance of this solution:&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/5p89toS8mS8?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt; &lt;/div&gt;
Similar to the case with user-space application, there are two lines around falling edge with 50uS distance between them. Here we add the system load after about 8-th second on the video. The jitter is smaller then in the previous test and as a result, servo motor is also much more stable.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Still not perfect&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Unfortunately, developed kernel module does not solve the problem completely. Despite clear improvement, servo is still shaking. Much less than before, but still shaking under the heavy CPU load. So we conclude that there might be two potential sources of the problem.&lt;br /&gt;
&lt;br /&gt;
The first one, is rather obvious - the jitter observed in the video above. But taking in account, the simple generation loop mentioned above, we do not see how it could be improved. &lt;i&gt;So the question is - did we reach the limit of Xenomai+Linux abilities to provide real-time behavior&lt;/i&gt;? If yes, then it is rather sad news. BeagleBoard xM we are using for this experiment is rather powerful computer running at 800MHz. Yet we still can not control servo motor as precise as the one can easily do with micro-controller. It is clear that there is much more going on with real OS then with single application on micro-controller. Yet our hope was (and still) that 800MHz with real-time supervisor (Xenomai) running Linux kernel as a separate preempt-able task could provide better performance (much smaller jitter).&lt;br /&gt;
&lt;br /&gt;
Looking for further possible reasons for shaking servos, we notice somewhat strange behavior which we could not explain. To check what we are generating, we decide to display 20mS (similar as our signal) square wave generated by the oscilloscope near our PWM signal. We also instruct the scope to synchronize on the rising edge of this reference square wave. Our expectation was that we would see our PWM signal staying still with respect to the test square wave (because they have the same period of 20mS). That is why, we were surprised to see the following:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;object class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://i.ytimg.com/vi/NOSbGWT_tyo/0.jpg&quot; height=&quot;266&quot; width=&quot;320&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;https://www.youtube.com/v/NOSbGWT_tyo?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; /&gt;





&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;





&lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;https://www.youtube.com/v/NOSbGWT_tyo?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;
Here, the yellow (bottom) signal is the square wave generate by the scope. The blue one (up) is our PWM signal which is &lt;i&gt;drifting to the right&lt;/i&gt;. Currently, we do not know what might be the reason for such behavior. The only idea is that &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;rtdm_task_wait_period()&lt;/span&gt;function does not work precise enough and the process is systematically waked up later (hence the drift). If yes, the again, the question is &lt;i&gt;did we reach the limit of Xenomai+Linux abilities to provide real-time behavior&lt;/i&gt;?&lt;br /&gt;
&lt;br /&gt;
Of course, there is a chance that we just misunderstood some programming concept and there is a bug in our code :-)&lt;br /&gt;
&lt;br /&gt;
Anyway, it seams that we are not done with this problem yet and there still open questions which can not answer right now. That is why, we would highly appreciate any hints and suggestions about what might be wrong with our implementation and how to improve it. So your comments are very welcome!&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;UPDATE&lt;/b&gt;: please see &lt;a href=&quot;https://www.mail-archive.com/xenomai-help@gna.org/msg14226.html&quot; target=&quot;_blank&quot;&gt;the following discussion thread&lt;/a&gt; for the promising idea how to fix the jitter problem.&lt;br /&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;https://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;https://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/689233544526128124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2012/04/precise-pwms-with-gpio-using-xenomai.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/689233544526128124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/689233544526128124'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2012/04/precise-pwms-with-gpio-using-xenomai.html' title='Precise PWMs with GPIO using Xenomai kernel module'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-4044283287824268096</id><published>2012-03-30T19:44:00.002+02:00</published><updated>2013-02-04T22:56:20.901+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="cross-compile"/><category scheme="http://www.blogger.com/atom/ns#" term="kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="nfsroot"/><category scheme="http://www.blogger.com/atom/ns#" term="toolchain"/><category scheme="http://www.blogger.com/atom/ns#" term="u-boot"/><category scheme="http://www.blogger.com/atom/ns#" term="xenomai"/><title type='text'>Comfortable kernel workflow on Beagleboard XM with nfsroot</title><content type='html'>&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Overview&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
For the last couple of days, I wanted to concentrate on reducing time required to boot &lt;a href=&quot;http://veterobot.com/&quot;&gt;our robot&lt;/a&gt;. The first action I did was to find out minimum configuration for kernel. After couple of rounds of getting SD card between computer and Beagleboard XM, which is the base for our robot, I decided to check how other people are developing kernel on embedded systems. The standard approach is to boot kernel from network.&lt;br /&gt;
&lt;br /&gt;
Fortunately, the hard part was already done: u-boot support for network chip is already implemented. Here I wanted to document steps, required to get it working. Most of the information is available somewhere on the Internet, here is just place to get it all together.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, I could not configure DHCP server to get required parameters for TFTP boot, so...&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;The mission&lt;/span&gt;: u-boot loads kernel from nfs and kernel mounts nfs root.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Assumptions&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Network configuration: I will be using static IP addresses to minimize influence of &quot;bad&quot; DHPC server. It will be good for many additional reasons. The beagleboard connected with ethernet cable to switch :)&lt;br /&gt;
&lt;br /&gt;
beagleboard 192.168.0.9&lt;br /&gt;
server&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192.168.0.2&lt;br /&gt;
router&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 192.168.0.1&lt;br /&gt;
&lt;br /&gt;
The configuration is done on Debian stable (6.0), but should work on Ubuntu as well without major changes.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Preparation&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Create user &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In order to isolate work on this project, I created new user on the system and granted corresponding rights:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo adduser maker
$ sudo vigr
&lt;/code&gt;
&lt;/pre&gt;
with the last step, add user maker to sudo group, as we need to use sudo pretty often.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Setup networking&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
as mentioned above, we are using static addressing, so first add beagleboard to /etc/hosts&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo vi /etc/hosts

and add following line
192.168.0.9 beagleboard

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
in order to minimize hassle with regenerated rsa_key for ssh, add following to your ssh_config&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo vi /etc/ssh/ssh_config

and add following
Host 192.168.0.9 beagleboard
  CheckHostIP no
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
then we need to grant permission for nfs clients, for easy configuration, just allow everyone. Obviously, if the server is used in some sort of public environment, this should correspondingly changed.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo vi /etc/hosts.allow

and add following
ALL: LOCAL

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
now we are ready to install nfs server, if it&#39;s not installed yet&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo apt-get install nfs-kernel-server

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Create local folder for remote root file system and export this with nfs server&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ mkdir ~/rootfs
$ sudo vi /etc/exports

add following line
/home/maker/rootfs  beagleboard(rw,fsid=0,no_root_squash,no_subtree_check)

and restart nfs-server
$ sudo /etc/init.d/nfs-kernel-server restart

check if export is ok
$ sudo exportfs

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Setup toolchain&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
While, obviously, the toolchain could be compiled from sources, there is no need, as Angstrom distribution provides well tested and configured toolchain. There are plenty of versions, but I tested with &lt;a href=&quot;http://www.angstrom-distribution.org/toolchains/next/&quot; target=&quot;_blank&quot;&gt;Angstrom next toolchain&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
As I&#39;m on x86_64, the file is&amp;nbsp;&lt;a href=&quot;http://www.angstrom-distribution.org/toolchains/next/angstrom-v20110117-x86_64-linux-armv7a-linux-gnueabi-toolchain.tar.bz2&quot; target=&quot;_blank&quot;&gt;angstrom-v20110117-x86_64-linux-armv7a-linux-gnueabi-toolchain.tar.bz2&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
download the file, extract and remove unnecessary structure&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ wget http://www.angstrom-distribution.org/toolchains/next/angstrom-v20110117-x86_64-linux-armv7a-linux-gnueabi-toolchain.tar.bz2
$ tar xjf angstrom-v20110117-x86_64-linux-armv7a-linux-gnueabi-toolchain.tar.bz2
$ mv usr/local/angstrom/arm .
$ rm -rf var usr

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
The installation of Angstrom toolchain, theoretically, should be done in root folder (/), but I don&#39;t like to have something in the root, which belongs to one user only. Thus, installation in the HOME folder.
&lt;br /&gt;
Now, let&#39;s add some useful aliases and setup PATH correspondingly&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ vi ~/.bashrc

and add following to the end
export PATH=$PATH:${HOME}/arm/bin
alias cross=&#39;ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- CFLAGS=&quot; -march=armv7-a -fno-tree-vectorize -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 &quot; LOCALVERSION=&quot;&quot; &#39;
alias sudo_cross=&#39;sudo ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- LOCALVERSION=&quot;&quot; INSTALL_MOD_PATH=${HOME}/rootfs&#39;

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Pick the changes with . ~/.bashrc or logout and loging again.&lt;br /&gt;
&lt;br /&gt;
Check, that cross compiler is available &quot;arm-angstrom-linux-gnueabi-gcc -v&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Extract root filesystem&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In order to boot from nfs root, we need a root file system. The easiest is to build required file system with &lt;a href=&quot;http://www.angstrom-distribution.org/builder/%0A&quot; target=&quot;_blank&quot;&gt;Angstrom Narcissus&lt;/a&gt; or download demo root system from &lt;a href=&quot;http://www.angstrom-distribution.org/demo/beagleboard/&quot; target=&quot;_blank&quot;&gt;Angstrom beagleboard demo images&lt;/a&gt; . Required MLO and u-boot could be taken from there as well. The u-boot version already contains required code to boot from nfs. So, downloading following files:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ wget http://www.angstrom-distribution.org/demo/beagleboard/Angstrom-Beagleboard-demo-image-glibc-ipk-2011.1-beagleboard.rootfs.tar.bz2
$ wget http://www.angstrom-distribution.org/demo/beagleboard/MLO
$ wget http://www.angstrom-distribution.org/demo/beagleboard/u-boot.img

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
note: we don&#39;t need uImage as we will be building our own kernel&lt;br /&gt;
&lt;br /&gt;
now, extract root file system in ~/rootfs&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo tar -C ~/rootfs/ -xjf Angstrom-Beagleboard-demo-image-glibc-ipk-2011.1-beagleboard.rootfs.tar.bz2

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;Prepare kernel sources&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I don&#39;t put the link to kernel sources, as everyone knows where they are.&amp;nbsp; We will be compiling 2.6.38.8 as this is the last version which is supported with latest Xenomai. Additionally, as example, we will be patching source with xenomai 2.6.0 patch and we need working defconfig, which could be taken from our source code at &lt;a href=&quot;https://github.com/veter-team/veterlayer/tree/master/recipes/linux/linux-xenomai-arm-2.6.38.8&quot; target=&quot;_blank&quot;&gt;Veter project on Github&lt;/a&gt;. Download following files:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.8.tar.bz2
$ wget https://github.com/veter-team/veterlayer/raw/master/recipes/linux/linux-xenomai-arm-2.6.38.8/defconfig
$ wget https://github.com/veter-team/veterlayer/raw/master/recipes/linux/linux-xenomai-arm-2.6.38.8/linux-xenomai-arm-2.6.38.8.patch

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
now, let&#39;s unpack sources, setup privileges and patch files, with optional git in between&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ cd ~/rootfs/usr
$ sudo mkdir src
$ sudo chown maker src
$ cd src
$ tar xjf ~/linux-2.6.38.8.tar.bz2
$ ln -s linux-2.6.38.8 linux
$ cd linux
$ git init 
$ git add .
$ git commit -m &quot;vanilla linux 2.6.38.8&quot;
$ patch -p1 &amp;lt;~/linux-xenomai-arm-2.6.38.8.patch
$ cp ~/defconfig ./.config
$ git add .
$ git commit -m &quot;xenomai 2.6.0 for arm&quot;

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Compiling initial kernel&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
now we have everything ready to cross-compile kernel for arm:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ cross make -j16 uImage modules
$ sudo_cross make -j16 modules_install

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;
Time for coffee !&lt;/div&gt;
&lt;br /&gt;
let&#39;s fix some links to get it right from the beagleboard perspective&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ cd ~/rootfs/lib/modules/2.6.38.8
$ sudo ln -s ../../../usr/src/linux build
$ sudo ln -s ../../../usr/src/linux source
$ cd ~/rootfs/boot
$ sudo rm uImage
$ sudo ln -s ../usr/src/linux/arch/arm/boot/uImage .

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
For the above-mentioned image, which is still based on 2.6.32 kernel, we need to change console&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo vi ~/rootfs/etc/inittab

change console line from ttyS2 to
S:2345:respawn:/sbin/getty 115200 ttyO2

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
and remove NetworkManager. Its &quot;smart&quot; logic is not smart enough to deal with nfsroot&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ sudo rm ~/rootfs/etc/rc5.d/S28NetworkManager

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Prepare card&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The &lt;/span&gt;micro SD card need to have only 1 partition. The exercise of creating partitions and formatting with fat is left for reader. Then copy MLO and u-boot.img to the root of the card. And the most important create uEnv.txt file with instructions as to where to look for a kernel and nfs file system. Assuming card is mounted on /media/boot/&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ cp ~/MLO /media/boot/
$ sync
$ cp ~/u-boot.img /media/boot/
$ vi /media/boot/uEnv.txt

and copy this content

serverip=192.168.0.2
ipaddr=192.168.0.9
netmask=255.255.255.0
gatewayip=192.168.0.1
hostname=beagleboard
console=ttyO2,115200n8
optargs=mem=80M@0x80000000 mem=384M@0x88000000 xeno_hal.cpufreq=800000000
mpurate=800
root=/dev/nfs rw
rootpath=/home/maker/rootfs
nfsdevice=usb0:off
nfsrootargs=vers=3
usbethaddr=6E:58:95:1B:82:65
nfsargs=setenv bootargs console=${console} mpurate=${mpurate} ${optargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${nfsdevice} nfsroot=${serverip}:${rootpath},${nfsrootargs} root=${root} 
uenvcmd=echo Initializing net ...; dcache off; usb start; echo Loading kernel ...; nfs ${loadaddr} ${serverip}:${rootpath}/boot/uImage ; echo Booting from nfs ...; run nfsargs; bootm ${loadaddr}

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
The content is self-explanatory. Now we are ready for a big moment !
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Booting&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
now, unmount card, insert it into beagle and enjoy you kernel from nfsroot !!!&lt;br /&gt;
&lt;br /&gt;
After this moment, all files are on the server, there is almost nothing on the beagleboard itself and you could just press the reset on board at any moment, the content is save on nfs.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Rebuilding kernel on server&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
Obviously, you want to change the kernel configuration and rebuild kernel couple of time, otherwise, all this effort is for nothing. Having set the links above, it&#39;s super easy, almost as it would be on the native system&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
$ cd ~/rootfs/usr/src/linux
$ cross make mrproper
$ cross make clean
$ cross make menuconfig
$ cross make -j16 uImage modules
$ sudo_cross make -j16 modules_install

&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
And press reset on the beagleboard.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Building modules on beagleboard&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
After you made you perfect kernel, you may want to develop some kernel modules. Building them with cross-compiler is possible, but not very effective. On the beagleboard you have already tree compiled exactly for your version of the kernel. Why don&#39;t use them and compile modules natively ?&lt;br /&gt;
&lt;br /&gt;
Sure you can do this. One thing you should just take care of is scripts in the kernel source. They were compiled on the server with x86_64 architecture and they don&#39;t work on the beagleboard. You just need to rebuild scripts.
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Caution:&lt;/b&gt; now as a root on beagleboard !
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed rgb(153, 153, 153); color: black; font-family: Andale Mono,Lucida Console,Monaco,fixed,monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;
root@beagleboard $ cd /usr/src/linux
root@beagleboard $ make scripts
root@beagleboard $ mkdir ../test
root@beagleboard $ cd ../test
root@beagleboard $ vi Makefile

and put this content in the Makefile
obj-m += hello.o
 
all:
 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
 
clean:
 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

root@beagleboard $ vi hello.c

and create simple module
#include &lt;linux module.h=&quot;&quot;&gt;
#include &lt;linux kernel.h=&quot;&quot;&gt;
 
int init_module(void)
{
 printk(KERN_INFO &quot;init_module() called\n&quot;);
 return 0;
}
 
void cleanup_module(void)
{
 printk(KERN_INFO &quot;cleanup_module() called\n&quot;);
}

root@beagleboard $ make
root@beagleboard $ modinfo hello.ko
filename:       hello.ko
srcversion:     4F856ABA1F3290D5F81D961
depends:        
vermagic:       2.6.38.8+ preempt mod_unload modversions ARMv7 
root@beagleboard $ insmod hello.ko
root@beagleboard $ rmmod hello


&lt;/linux&gt;&lt;/linux&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Now all combination of compiling on server and beagleboard is possible, you could press reset at any time and reboot beagle, network is configured and working.
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Congratulations: MISSION COMPLETED !!!&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/4044283287824268096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2012/03/comfortable-kernel-workflow-on.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4044283287824268096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4044283287824268096'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2012/03/comfortable-kernel-workflow-on.html' title='Comfortable kernel workflow on Beagleboard XM with nfsroot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-3142661752071214682</id><published>2012-02-29T03:27:00.001+01:00</published><updated>2012-06-14T10:09:27.084+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="example"/><category scheme="http://www.blogger.com/atom/ns#" term="localization"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><title type='text'>One-dimensional robot localization example</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Here is my first example for the Unit 1 of the &lt;a href=&quot;http://www.udacity.com/overview/Course/cs373&quot;&gt;CS373 free online class&lt;/a&gt;. Please see &lt;a href=&quot;http://veter-project.blogspot.com/2012/02/remotely-control-robotics-vehicle-with.html&quot;&gt;this post for the introduction of this example series.&lt;/a&gt; This example illustrates how to perform one-dimensional localization using histogram filter we have learned in Unit 1 of the class. I will be using our &lt;a href=&quot;https://github.com/veter-team/veter/wiki/Hardware-design-en&quot;&gt;Veter vehicle&lt;/a&gt; to illustrate how to control real robotics vehicle. To illustrate the one-dimensional localization algorithm, I have made the following test environment:&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN1ExOPxeZ6edk0lRwhlrqpdvy60HAKij25LZDD6LmdGzgU-VOkQ4FCZu-3HJpr6eROV__5n-NRBFp2vny03zOxMYOuVFvqywqBozZhtW9BGhmMlfTALoDfMlgXxjITpT3Y1u4n9cDjgI/s1600/testsetup.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN1ExOPxeZ6edk0lRwhlrqpdvy60HAKij25LZDD6LmdGzgU-VOkQ4FCZu-3HJpr6eROV__5n-NRBFp2vny03zOxMYOuVFvqywqBozZhtW9BGhmMlfTALoDfMlgXxjITpT3Y1u4n9cDjgI/s320/testsetup.jpeg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Figure 1: Test set up for the one-dimensional localization test&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
The Figure 1 illustrates our vehicle and the line of A4 paper sheets which represents the &quot;wall&quot;. Each sheet is labeled with the number (0, 2, 3, etc., from right to left) which is the position within the line. Sheets with numbers 1 and 4 are removed to simulate the &quot;door&quot;. We assume here, that robot can make discrete movement one position left or right. &lt;span style=&quot;background-color: yellow;&quot;&gt;So the localization problem is to determine current position of the robot&lt;/span&gt;, i.e. in front of which sheet the robot currently is. So it roughly corresponds to the following situation :-) :&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXmpvgzVquitiaZn93l2ho5E6pULTqLnpXkoIrmmZpSINAts7tlGidpwvOi7x-2W9YqYfDrDOlEHvNZupZ9sgdBePb11lIZmgQvv2bC1XORYMTkmvWqvvaZRFl-panEByKqEdPw2O-u7I/s1600/localization.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;126&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXmpvgzVquitiaZn93l2ho5E6pULTqLnpXkoIrmmZpSINAts7tlGidpwvOi7x-2W9YqYfDrDOlEHvNZupZ9sgdBePb11lIZmgQvv2bC1XORYMTkmvWqvvaZRFl-panEByKqEdPw2O-u7I/s320/localization.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;I hope I am not violating any copyrights here by re-posting this picture
 from Unit 1 Notes. Otherwise, please let me know and I will remove it.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
For demonstration purposes, we decide to perform measurements using on-board ultrasonic range finder (aka. sonar). Since our robot has only one sonar on the front panel, we need to turn towards the &quot;wall&quot; (or &quot;door&quot;, we do not know...) to make measurements, then turn back and drive forward to the next adjustment position. We assume, that we start at the arbitrary unknown position facing towards the wall. So the motion step is: turn left, drive forward, turn right back to the wall, query and process new measurement. For simplicity, I assume that if sonar shows distance less then 50cm, than we are in front of wall. Otherwise, if distance is bigger, then there is nothing in front of us, i.e. we are facing the door.&lt;br /&gt;
&lt;br /&gt;
To perform precise motions, like for example turning exactly 90 degrees, additional sensor data required (for example compass) as well as control algorithms such as PID or whatever else. However, to keep this example as simple as possible and make sure that focus stays on the localization topic, I decide to implement the control in very naive way. I turn corresponding motors on, wait some period of time and then turn them off. For example, turning the left track clockwise and the right counter-clockwise will rotate the robot to the left. So I just measure the time needed to make ~90 degrees turn and turning motors off after this amount of time. It works only for concrete surface, varies when battery gets discharged and very imprecise. But again, it was not a purpose of this example and I want to keep it as simple as possible. There is control algorithms topic in the course syllabus, so hopefully I will be able to address issues mentioned above with following examples for the corresponding units. &lt;br /&gt;
&lt;br /&gt;
The whole program, which is in &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/tree/master/unit1&quot;&gt;localization.py, &lt;/a&gt;defines two classes &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/blob/master/unit1/localization.py#L34&quot;&gt;SensorDataReceiverI&lt;/a&gt; which is a callback interface to receive sensor data pushed from the vehicle. The &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/blob/master/unit1/localization.py#L45&quot;&gt;nextSensorFrame&lt;/a&gt;() method is invoked every time the new sensor data arrives. I store just the last received measurement for compass and sonar to read them later. The second class is &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/blob/master/unit1/localization.py#L55&quot;&gt;Client&lt;/a&gt; which is derived from &lt;a href=&quot;http://doc.zeroc.com/display/Ice/The+Server-Side+main+Program+in+Python#TheServer-SidemainPrograminPython-The%7B%7BIce.Application%7D%7DClassinPython&quot;&gt;Ice.Application class&lt;/a&gt;. Client class defines &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/blob/master/unit1/localization.py#L65&quot;&gt;sense()&lt;/a&gt; and &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/blob/master/unit1/localization.py#L76&quot;&gt;move()&lt;/a&gt; methods which perform sensor data and movement processing steps of the localization algorithm. &lt;span style=&quot;background-color: yellow;&quot;&gt;They are copy/pasted from the Unit1 lecture&lt;/span&gt;. The &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/blob/master/unit1/localization.py#L131&quot;&gt;run() &lt;/a&gt;method is the application entry point. It connects to the remote vehicle, set up the callback interface and then executes five sense/move steps to update position estimation probabilities. In addition, it also invoke corresponding commands to control the vehicle. In particular, there is a function &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/blob/master/unit1/localization.py#L101&quot;&gt;makeMotionStep()&lt;/a&gt; defined in the Client class to perform turn-left/move/drive-forward/turn-right motion sequence mentioned above. Finally, for each step, the location probability array is printed out.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
All sources are &lt;a href=&quot;https://github.com/andreynech/udacity-cs373/tree/master/unit1&quot;&gt;available on GitHub&lt;/a&gt;. .ice 
files over there are interface definition for remote communication. They will be 
automatically processed by &lt;a href=&quot;http://doc.zeroc.com/pages/viewpage.action?pageId=3900863&quot;&gt;Ice.loadSlice&lt;/a&gt;(&quot;--all vehicle.ice&quot;) command. 
More details on how to use ICE middleware &lt;a href=&quot;http://doc.zeroc.com/display/Ice/Ice+Manual&quot;&gt;could be found here&lt;/a&gt;. Documentation for the Python language binding for ICE &lt;a href=&quot;http://doc.zeroc.com/display/Ice/Python+Mapping&quot;&gt;is available here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The following video shows the test set-up and robotics vehicle made five motion steps.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/6YhUJnj8sWE?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Finally, the set of graphs below illustrate the position estimation (probability of being at certain position) for each of five steps. This graphs are made based on the output produced by the python control program described above. It is easy to see, that after the step 5, there is much higher probability of being at the second position from the left then somewhere else. &lt;span style=&quot;background-color: yellow;&quot;&gt;So, we solve the localization problem.&lt;/span&gt;&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4jOGv7A-8-fHa5wjp7rV2kYKkfuS4m-uhhoWPVDf9NlUPHrGRJyJF9yOSywsl3wEc3G6f0PlsCqQP2rfxnxI-VRyZUq_1ouYz_CqO26u7teEJUm4zTDNcuIfxrINR2Ui9mbJX4J2uS30/s1600/est0.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4jOGv7A-8-fHa5wjp7rV2kYKkfuS4m-uhhoWPVDf9NlUPHrGRJyJF9yOSywsl3wEc3G6f0PlsCqQP2rfxnxI-VRyZUq_1ouYz_CqO26u7teEJUm4zTDNcuIfxrINR2Ui9mbJX4J2uS30/s1600/est0.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Step 1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhapDljb2w9u_v222FEcsaC75l0nlQdZVL_PcpTixaDA0BrZYtY_TXqOW9tZnWWQWnU83uB8U6jv-vKLYHNXKHlcngRO2yKQcu7GECE-mtpWbot38iy18RZuIX029-7wouieWOTU0lilQY/s1600/est1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhapDljb2w9u_v222FEcsaC75l0nlQdZVL_PcpTixaDA0BrZYtY_TXqOW9tZnWWQWnU83uB8U6jv-vKLYHNXKHlcngRO2yKQcu7GECE-mtpWbot38iy18RZuIX029-7wouieWOTU0lilQY/s1600/est1.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Step 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span id=&quot;goog_1893294747&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1893294748&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMtuJ-UX4VwRs31Arabsm3mpTXdf2pgxn0106Stcqq_cEquOxOqd-WSoV3WCLXBGkne38eFcu6Bcl_waqZgbrCQ8ZjcKAyKRnej9jAZjmq_r1LpeVPnqaiGTwCrKjkHwiq9WhoSrnNGZs/s1600/est2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMtuJ-UX4VwRs31Arabsm3mpTXdf2pgxn0106Stcqq_cEquOxOqd-WSoV3WCLXBGkne38eFcu6Bcl_waqZgbrCQ8ZjcKAyKRnej9jAZjmq_r1LpeVPnqaiGTwCrKjkHwiq9WhoSrnNGZs/s1600/est2.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Step3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjke_J5FKJPv-A41yXfwkDgVgV6d_LR7QDBC-PoSgft6CmgqKg081Er5K2-4xlCB6rmEWcgjOE7vkEYWD7pjqHMd2CcA7ZQQAr34XnIkxukuNBrFqRq3eci4LjUr12VR3iYfTi-gacbrRA/s1600/est3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjke_J5FKJPv-A41yXfwkDgVgV6d_LR7QDBC-PoSgft6CmgqKg081Er5K2-4xlCB6rmEWcgjOE7vkEYWD7pjqHMd2CcA7ZQQAr34XnIkxukuNBrFqRq3eci4LjUr12VR3iYfTi-gacbrRA/s1600/est3.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Step 4&lt;/td&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm6AI6Vhv8ElkaACXsRpc0XgMWxnuhEtzFJe2W4z_OgQDkuiv0pWkTHwamQ7yLOkHXX4tJXqfbsD-w8LNT1RW5ZCKfdjyEfOXuPrfqQw41TP-GUJFlUqt0m3G2ixdo_Rz1fSyOrZw_ruU/s1600/est4.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhm6AI6Vhv8ElkaACXsRpc0XgMWxnuhEtzFJe2W4z_OgQDkuiv0pWkTHwamQ7yLOkHXX4tJXqfbsD-w8LNT1RW5ZCKfdjyEfOXuPrfqQw41TP-GUJFlUqt0m3G2ixdo_Rz1fSyOrZw_ruU/s1600/est4.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Step 5&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/3142661752071214682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2012/02/here-is-my-first-example-for-unit-1-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3142661752071214682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3142661752071214682'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2012/02/here-is-my-first-example-for-unit-1-of.html' title='One-dimensional robot localization example'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN1ExOPxeZ6edk0lRwhlrqpdvy60HAKij25LZDD6LmdGzgU-VOkQ4FCZu-3HJpr6eROV__5n-NRBFp2vny03zOxMYOuVFvqywqBozZhtW9BGhmMlfTALoDfMlgXxjITpT3Y1u4n9cDjgI/s72-c/testsetup.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-352007920629241065</id><published>2012-02-29T01:44:00.000+01:00</published><updated>2012-06-13T19:49:58.240+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="example"/><category scheme="http://www.blogger.com/atom/ns#" term="localization"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="robot"/><title type='text'>Remotely control robotics vehicle with Python</title><content type='html'>After very positive experience with the &lt;a href=&quot;https://www.ai-class.com/&quot;&gt;Artificial Intelligence class&lt;/a&gt;, I decide to continue with &lt;a href=&quot;http://www.udacity.com/overview/Course/cs373&quot;&gt;Udacities CS373 &quot;Programming a robotic car&quot;&lt;/a&gt; class taught by Professor Sebastian Thrun. Since the beginning of the class, I have seen a lot of question in the discussion forum about the way to try algorithms we are learning with real robotic vehicles. That is why, I decide to start a series of posts where I will try to use exactly the algorithms we have studied in each unit to control &lt;a href=&quot;http://veter-project.blogspot.com/2011/11/how-to-build-beagleboard-based-wifi.html&quot;&gt;our robotics vehicle&lt;/a&gt;. In this series I will use Python and try to keep the implementation of the core algorithm as close as possible to what was presented in the lectures. I hope it would be interesting and helpful for the students of the CS373 class like I am.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQbN2wMeac1cwhkttV-9mynpAyHRSS_2-Zlf08ah6TgpNCPHFIKpnQy8FK3aKPDIQ3ZZkbPF18joC5ThheE-M1k59V0iovTp8ARyA30C74W7tvgus0YePDCLDfm_-Wprxs71ONIOiRJRs/s1600/assembled2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQbN2wMeac1cwhkttV-9mynpAyHRSS_2-Zlf08ah6TgpNCPHFIKpnQy8FK3aKPDIQ3ZZkbPF18joC5ThheE-M1k59V0iovTp8ARyA30C74W7tvgus0YePDCLDfm_-Wprxs71ONIOiRJRs/s1600/assembled2.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;Since it is a pure hobby project and all the activities are conducted in the evenings and over weekends I am not sure whether I will keep the pace and manage to produce the demo for every unit. But I will try hard. All relevant sources will be &lt;a href=&quot;https://github.com/andreynech/udacity-cs373%20&quot;&gt;located at GitHub&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I just posted the first examples from the series on&lt;a href=&quot;http://veter-project.blogspot.com/2012/02/here-is-my-first-example-for-unit-1-of.html&quot;&gt; localization from Unit 1&lt;/a&gt;.
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/352007920629241065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2012/02/remotely-control-robotics-vehicle-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/352007920629241065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/352007920629241065'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2012/02/remotely-control-robotics-vehicle-with.html' title='Remotely control robotics vehicle with Python'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQbN2wMeac1cwhkttV-9mynpAyHRSS_2-Zlf08ah6TgpNCPHFIKpnQy8FK3aKPDIQ3ZZkbPF18joC5ThheE-M1k59V0iovTp8ARyA30C74W7tvgus0YePDCLDfm_-Wprxs71ONIOiRJRs/s72-c/assembled2.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-5770819413513379664</id><published>2011-11-11T14:35:00.001+01:00</published><updated>2013-03-07T10:36:37.678+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="gstreamer"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="pwm"/><category scheme="http://www.blogger.com/atom/ns#" term="real-time"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><title type='text'>How to build BeagleBoard based WiFi robot</title><content type='html'>As it often happens with typical software developers, we were working hard on implementation of different features but did not spend enough time documenting our development :-) . As a result, there were not too much documentation and details about our project. So with this post we would like to announce the &lt;a href=&quot;http://veterobot.com/buildyourself.html&quot; target=&quot;_blank&quot;&gt;availability of more detailed project documentation&lt;/a&gt; and make brief overview of some interesting aspects of the project. The whole available documentation could be found at &lt;a href=&quot;http://veterobot.org/&quot; target=&quot;_blank&quot;&gt;our web-site&lt;/a&gt; and on the &lt;a href=&quot;https://github.com/veter-team/veter/wiki/&quot;&gt;project Wiki&lt;/a&gt;. It is, as usual, :) not complete yet, but hopefully good enough to understand how everything works and even rebuild it yourself.&lt;br /&gt;
&lt;br /&gt;
Here is the brief summary (&lt;a href=&quot;https://github.com/veter-team/veter/wiki/Hardware-design-en&quot;&gt;details are available here&lt;/a&gt;) of what we have done so far. As a chassis platform we are using the one from Pololu. On top of it we mount the BeagleBoard with connected WiFi adapter, camera and GPS receiver. To control the motors we are using standard PWM-controlled speed regulators. Control PWMs are generated directly from BeagleBoard using available hardware PWM generators as well as &lt;a href=&quot;http://veter-project.blogspot.com/2011/09/real-time-enough-about-pwms-and-shaky.html&quot;&gt;using GPIO&lt;/a&gt;. In addition, there are compass and ultrasound range finder connected over I2C available on BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
Here is how it everything looks like now:&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://sites.google.com/site/andreynech/_/rsrc/1316617362012/hobby/robots/assembled2.jpg?height=320&amp;amp;width=284&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://sites.google.com/site/andreynech/_/rsrc/1316617983258/hobby/robots/chassis-power-builtin.jpg?height=240&amp;amp;width=320&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://sites.google.com/site/andreynech/_/rsrc/1316617375797/hobby/robots/ubbox-beagle-usb.jpg?height=240&amp;amp;width=320&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Or like this, depending on what chassis are used:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQg0tGVneoVunUMgopP01UoKQA6V-4khfK5XOzE1z29lJRgpMuZ6tmZdvwA4dq2SXTqkHoYBFOJPfavEEBiR4nYjXTdlLflHKsNs50all-oP1XyhY2mBidk7DFn3okvlqFa9sTtmbmfk/s1600/monster.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQg0tGVneoVunUMgopP01UoKQA6V-4khfK5XOzE1z29lJRgpMuZ6tmZdvwA4dq2SXTqkHoYBFOJPfavEEBiR4nYjXTdlLflHKsNs50all-oP1XyhY2mBidk7DFn3okvlqFa9sTtmbmfk/s320/monster.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Video is compressed in to h264 stream using OMAP&#39;s DSP in real-time. TI&#39;s DSP optimized codecs integrated with &lt;a href=&quot;http://gstreamer.freedesktop.org/&quot;&gt;GStreamer &lt;/a&gt;are used for video compression. After that, the h264 stream is sent to the driver console over WiFi. We also solved a lot of problems related to firewall and NAT traversing.&lt;br /&gt;
&lt;br /&gt;
Experimentally we found out that maintain constant video frame rate is the very important to provide comfortable driving experience. It is not a trivial goal to achieve if the video is transmitted over the Internet because available bandwidth changes permanently. To solve this problem we developed our own adaptive video streaming infrastructure. We have presented our adaptive streaming on the &lt;a href=&quot;http://gstreamer.freedesktop.org/conference/2010&quot;&gt;Gstreamer 2010 conference&lt;/a&gt;. There is &lt;a href=&quot;http://gstconf.ubicast.tv/videos/adaptive-video-streaming-with-ice-and-gstreamer/&quot;&gt;presentation video&lt;/a&gt; and &lt;a href=&quot;https://docs.google.com/leaf?id=0BzV4szKbuvKwYzQwZDlhNjktMTVlOC00ZDczLThiZjQtZTRlMjcyYzRlZWIy&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50&quot;&gt;slides available&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
In addition to the video stream, driver console also receives data collected from on-board sensors. It makes it possible, for example, to display robots current location on the map which is downloaded from the openstreetmap.org also in real-time.&lt;br /&gt;
&lt;br /&gt;
The following picture illustrates how the driver &quot;cockpit&quot; looks like:&lt;br /&gt;
&lt;br /&gt;
&lt;img src=&quot;http://myrobot.ru/forum/uploads/_cockpit1.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
This is real screenshot (not a photoshop :-) ). Driver console application is written using OpenGL and works on Linux and Windows (should also work on Mac but I did not test it). The whole 3D model is made in Blender and exported in to the standard .DAE (&lt;a href=&quot;http://www.khronos.org/collada/&quot;&gt;COLLADA&lt;/a&gt;) format. So the project also contains rather evolved COLLADA visualisation library which supports animation and some other advanced features. Every time the new video frame is received and decoded to the raw RGB data block, the corresponding OpenGL texture is updated in 3D scene. The middle panel is then used as such textured surface. Panels to the left and right are to visualize additional information such as for example map with current location or to constantly scroll unreadable cool looking logs :-) .&lt;br /&gt;
&lt;br /&gt;
I want to say special thanks to Sungreen (aka. Nikolay :-) )! He is kindly respond to my &lt;a href=&quot;http://blender-3d.ru/forum/index.php/topic,171.0.html&quot;&gt;call for help on blender-3d.ru site&lt;/a&gt; and created different 3D cockpit models. If you are interested, you can take a look at this link. The site is in Russian but on the 2-nd page there are several examples of the alternative cockpit models.&lt;br /&gt;
&lt;br /&gt;
All the software for this project (including recipes for OpenEmbedded/Angstrom to build Linux image for flash card) are &lt;a href=&quot;https://github.com/veter-team&quot;&gt;available on github.com&lt;/a&gt;. We are currently in process of migrating from gitorious.org to github, so if some pieces are missing on github, chances are that they could be found in&lt;a href=&quot;https://gitorious.org/+veter&quot;&gt; old repository&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Also, for some additional information about the project I would suggest to check &lt;a href=&quot;http://veter-project.blogspot.com/&quot;&gt;our Blog&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
I would really appreciate any comments about the project!

&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/5770819413513379664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2011/11/how-to-build-beagleboard-based-wifi.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5770819413513379664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5770819413513379664'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2011/11/how-to-build-beagleboard-based-wifi.html' title='How to build BeagleBoard based WiFi robot'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoQg0tGVneoVunUMgopP01UoKQA6V-4khfK5XOzE1z29lJRgpMuZ6tmZdvwA4dq2SXTqkHoYBFOJPfavEEBiR4nYjXTdlLflHKsNs50all-oP1XyhY2mBidk7DFn3okvlqFa9sTtmbmfk/s72-c/monster.png" height="72" width="72"/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-7367732185553164166</id><published>2011-09-05T19:36:00.000+02:00</published><updated>2012-04-24T00:08:52.825+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="pwm"/><category scheme="http://www.blogger.com/atom/ns#" term="real-time"/><category scheme="http://www.blogger.com/atom/ns#" term="servo"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="xenomai"/><title type='text'>Real-time enough? About PWMs and shaky servos</title><content type='html'>We are currently working on the next incarnation of our &lt;a href=&quot;http://veter-project.blogspot.com/&quot;&gt;software and hardware platform for vehicles controlled over the Internet&lt;/a&gt;. Among others, we decide to investigate the way to control our robot without micro-controllers. In fact, BeagleBoard has a lot of GPIOs available. In addition, three hardware PWM generators and I2C bus should be enough at least to control the tank with camera, compass, GPS, and sonar. We believe that BeagleBoard is also powerful enough to accomplish all these tasks (including DSP-based real time video encoding) without additional micro controllers.If this claim is true, than it could be an advantage from the price, space and complexity point of view.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Hardware setup&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
There is a lot of devices can be controlled using Pulse Width Modulation (PWM). The very typical example is the standard servo motor. Also, it is very typical to use PWMs to talk to motor controllers which in turn control DC motors. That is why we decide to test the real-time performance of our whole system by implementing PWM generator using one of the available GPIO pins. Standard PWM signal (what we need to generate) is represented in the following picture:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.ermicro.com/blog/wp-content/uploads/2009/02/servo_01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;http://www.ermicro.com/blog/wp-content/uploads/2009/02/servo_01.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Pulses has 20ms distance (50Hz) and servo position is encoded by the pulse width with ~0.7ms to ~2.0ms meaning left and right most positions respectively (actual values typically vary a little depending on the servo model and vendor).&lt;br /&gt;
&lt;br /&gt;
From the hardware point of view, level shifting is necessary because GPIO pins on BeagleBoard have 1.8V output but we need 5V to control the servo. For these purposes we used &lt;a href=&quot;http://www.ti.com/product/txs0108e&quot;&gt;TI&#39;s TXS0108E voltage-level translator&lt;/a&gt; with &lt;a href=&quot;http://www.sparkfun.com/products/498&quot;&gt;corresponding SSOP to DIP adapter&lt;/a&gt; (a little bit difficult to solder but is doable if you did not drink a lot of bear the day before :-) ).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Software setup&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Pins on the output connector on BeagleBoard can be configured to play different roles. This configuration process is called PinMuxing. For me personally it was and still a little bit confusing where and how to do it. There are in general three places where you can do it: in u-boot, in kernel and in your application with direct memory access over /dev/mem.&lt;br /&gt;
&lt;br /&gt;
The first two ways will give you file system interface with&amp;nbsp;/sys/class/gpio/gpio* entries in file system. Standard read() and write() functions could be used with these files to control GPIO direction and output.&lt;br /&gt;
&lt;br /&gt;
The third way will require to map the physical memory using /dev/mem and then read/write to special addresses to control the output of the GPIO pin. To make it work properly, the kernel config option CONFIG_OMAP_RESET_CLOCKS, which is enabled in the default BeagleBoard defconfigs (and is also enabled in the kernel used by &lt;a href=&quot;http://www.angstrom-distribution.org/&quot;&gt;Angstrom distribution&lt;/a&gt; we are using) should be switched off. This is a kernel power saving feature and somehow it leads to the kernel oops in this scenario.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Let&#39;s trigger GPIO&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
The obvious and straightforward approach to generate PWM signals mentioned above could be described with the following pseudo-code:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; for(;;) {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_gpio_output_to_high();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep(something_between_0.7_and_2.0ms);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set_gpio_outout_to_low();&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep(20ms);} &lt;/span&gt;&lt;br /&gt;
This loop can be actually implemented even &lt;a href=&quot;http://blog.makezine.com/archive/2009/02/blinking-leds-with-the-beagle-board.html&quot;&gt;as a shell script&lt;/a&gt;. As an alternative, it is possible to use read() and write() function in C to implement&amp;nbsp;set_gpio_output_to_high() and&amp;nbsp;set_gpio_output_to_low(). What is important however, is to ensure that the pulse width remains exactly the same as long as you want the servo to stay in certain position. This is the place where the problem arise - Linux is not a real-time system and that is why there is no guarantee that sleep() function will return &lt;u&gt;exactly&lt;/u&gt; after requested amount of time. Context switching between kernel and user space (as happens when using kernel functions such as read() and write()) may also add to the unpredictable timing. As a result the servos will become &quot;nervous&quot;. They will shake periodically instead of staying in the desired position.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Problem&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
In order to achieve stable servo positioning two sources of the undeterministic timing behavior should be eliminated:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Unpredictable delays caused by context switching between kernel and user space.&lt;/li&gt;
&lt;li&gt;Unpredictable thread sleep time with standard sleep() function&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Solution 1 - eliminating context switches&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Inspired by &lt;a href=&quot;http://linuxjunk.blogspot.com/2009/01/beagleboard-gpio-input-driverless.html&quot;&gt;this&lt;/a&gt; and &lt;a href=&quot;http://x4350.blogspot.com/2011/01/digital-io-on-beagleboard-using-gpio.html&quot;&gt;this&lt;/a&gt; postings, we decide to go the way with direct memory access made from our application to trigger the GPIO. As a result, we write very simple test program which implements PWM generation loop as following:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;&amp;nbsp; for(;;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set_data_out has offset 0x94&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio[OFFSET(0x6094)]=0x40000000;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep(up_period);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //clear_data_out has offset 0x90&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio[OFFSET(0x6090)]=0x40000000;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sleep(20 * 1000); }&lt;/span&gt;&lt;br /&gt;
Here we replace the call to write() kernel function with direct memory access to trigger&amp;nbsp;GPIO158. This solution should solve the problem with undeterministic timing resulted by context switching. So let us see what we can achieve with this implementation. To make this post not so boring, instead of showing typical oscilloscope measurements, we decide to place a video of our current testing vehicle where the video camera is mounted on the servo we are controlling with our PWM generation application.&lt;br /&gt;
&lt;br /&gt;
The following video fragment illustrates the servo behavior when running the PWM generation with direct memory writes. No other load was put on the system (~99% system idle).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/Z-f6GfVqwHQ?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;Initially, the servo is turned away from the camera. After a couple of seconds, we run the test application which rotates the servo towards the camera to illustrate that we are actually controlling the servo. What can be clearly observed is that servo is shaking. In addition, there is a typical noise from the servo could be heard which is also a sign that the position is constantly changing.&lt;br /&gt;
&lt;br /&gt;
The situation become much worth if we put considerable load on the system. In this case we run another process in background which creates about 98% system load (~1% system idle shown by top).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/Ok1rAPYTmQc?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;br /&gt;
In fact, those results were easy to predict. It is also obvious that, the version with write() function (not speaking about corresponding shell script) would show even worth results. That is why we decide even not to test this configuration.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Solution 2 - predictable timing with Xenomai&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
So now it becomes clear that we need deterministic sleep() function behavior to achieve stable servo positioning. There are two options we were consideing: &lt;a href=&quot;https://rt.wiki.kernel.org/index.php/Main_Page&quot;&gt;PREEMPT_RT kernel patches&lt;/a&gt; and &lt;a href=&quot;http://www.xenomai.org/&quot;&gt;Xenomai&lt;/a&gt;. Speeking about preempt_rt, we did not manage to find such configuration of the Linux kernel used by Angstrom/OpenEmbedded which works on BeagleBoard and has preempt_rt patches for it.&lt;br /&gt;
&lt;br /&gt;
Installing Xenomai was also not a straightforward task. There were problems applying patch to the kernel we were using. However, we were able to solve them. In addition, according to our understanding, Xenomai is considered as &quot;more real-time&quot; then preempt_rt because it runs whole Linux kernel as one of it&#39;s task in parallel with other real-time tasks and can preempt it almost at any point if necessary. So we decide to continue our experiments with Xenomai. At the time of writing, we were using kernel version &lt;span dir=&quot;ltr&quot; id=&quot;:w2&quot;&gt;2.6.35.9 &lt;/span&gt;with Xenomai version 2.5.6.&lt;br /&gt;
&lt;br /&gt;
After getting Xenomai running, we rewrite the test PWM generation application. The core generation loop was running as a real-time thread with high priority (99). We also replace sleep() function invocations with corresponding Xenomai functions:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace; font-size: x-small;&quot;&gt;&amp;nbsp; for(;;) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set_data_out has offset 0x94&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio[OFFSET(0x6094)]=0x40000000;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rt_task_sleep(up_period);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //clear_data_out has offset 0x90&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio[OFFSET(0x6090)]=0x40000000;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rt_task_wait_period(NULL); }&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Test results were &lt;u&gt;much&lt;/u&gt; better! Actually, without system load, servos controlled by Xenomai application was perfectly stable. That is why there is no video for this case - there is nothing to see :-) because servo just remains at the defined position. No shaking, no noise.&lt;br /&gt;
&lt;br /&gt;
As the next test, we put the system under heavy load either by running xeno-test program in background (puts 100% load on the system) or running our own vehicle control software which performs real-time video compression using DSP-enabled h264 codec and communicates intensively over the network with vehicle operator software (puts about 60% load on the system). Under these conditions, unfortunately, servo starts shaking again as illustrated by the following video fragment:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;object class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://i.ytimg.com/vi/SJizUTmB_jc/0.jpg&quot; height=&quot;266&quot; width=&quot;320&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/SJizUTmB_jc?f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; /&gt; &lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt; &lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;http://www.youtube.com/v/SJizUTmB_jc?f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
Nevertheless, this behavior is better then the one without Xenomai and in fact the best we were able to achieve so far. According to our (non formal) observations, what is typically causing increasing shaking is extensive console IO (connected with SSH over the USB WLan adapter on the BeagleBoard) or in general network activity.&lt;br /&gt;
&lt;br /&gt;
Running the Xenomai&#39;s &lt;span style=&quot;font-family: &#39;Courier New&#39;,Courier,monospace;&quot;&gt;latency&lt;/span&gt; application in parallel with our test program reveals the latency of around 40 microseconds. Based on what we read in Internet, 40 microseconds is considered &quot;normal/OK&quot; latency for Linux/Xenomai running on ARM at 600MHz. Taking in account typical pulse width of about 1 millisecond, 40 microseconds is about 4%. Is this 4% in fact what we actually see on the video? If yes,&lt;b&gt; &lt;/b&gt;does it mean that even with Xenomai it is not possible to control servos reliably even under moderate system load?!&lt;br /&gt;
&lt;br /&gt;
We would really appreciate any feedback if someone familiar with the matter can provide some thoughts about the way to improve the situation. We are somehow do not want to accept the fact that Linux running on such a powerful system such as BeagleBoard can not be enough real-time to generate 1-2ms wide pulses at 50Hz with latency considerably less then 40us? We are really hope that there are some tweaks can be made to achieve much better real-time performance.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Software availability&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Our whole software (including Xenomai-based control module) is open-source and available online &lt;a href=&quot;https://www.gitorious.org/veter/&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The relevant Xenomai-based servo control sources could be found &lt;a href=&quot;https://www.gitorious.org/veter/vehicle/blobs/master/src/xenopwm.c&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
The whole source code repository contains the OE layer for Angstrom to generate image with all patches and dependencies to run our on-board software. This software, among others, illustrates how to control servo motors with direct memory access and Xenomai, how to communicate over I2C not using Linux kernel (for better real-time), how to work with I2C sensors such as compass and sonar, how to receive location from GPS sensor, how to compress video in real-time using DSP-enabled codecs with Gstreamer, how to send video and other sensor data over the network in real-time and much more.&lt;br /&gt;
At the client (driver) side we are using OpenGL and high performance GLSL-based rendering to display 3D driver console with live video applied as a texture to the defined surface, displaying map for received GPS position in real-time using openstreetmap.org and much more.&lt;br /&gt;
We are currently working hard on documenting all the software and hardware we have made so far. There is already some documentation for the project available &lt;a href=&quot;https://www.gitorious.org/veter/pages/Home&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://www.gitorious.org/veter/pages/BuildingImage&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
We would be very glad to receive any comments regarding question about Linux/Xenomai real-time performance stated in this post above, our project in general and of course, contributions are also very welcome.
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/7367732185553164166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2011/09/real-time-enough-about-pwms-and-shaky.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/7367732185553164166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/7367732185553164166'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2011/09/real-time-enough-about-pwms-and-shaky.html' title='Real-time enough? About PWMs and shaky servos'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-4943252639341748632</id><published>2010-12-15T02:25:00.000+01:00</published><updated>2012-06-13T23:22:57.648+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="anaglyph"/><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="gstreamer"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="opencv"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="stereo"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Stereo video stream from on-board cameras</title><content type='html'>After completing &lt;a href=&quot;http://veter-project.blogspot.com/2010/10/new-mechanical-design.html&quot;&gt;our BeagleBoard based car&lt;/a&gt;, we decide to build the quad-copter which also could be controlled over the Internet. In addition, we set as our goal to implement adaptive live stereo video streaming from two on-board cameras based on&lt;a href=&quot;https://docs.google.com/leaf?id=0BzV4szKbuvKwYzQwZDlhNjktMTVlOC00ZDczLThiZjQtZTRlMjcyYzRlZWIy&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50&quot;&gt; our previous work presented at Gstreamer conference 2010.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.pandaboard.org/&quot;&gt;PandaBoard&lt;/a&gt; folks from TI offered the opportunity to win the PandaBoard at Gstreamer conference. To participate, it was necessary to submit description of the intended project. We did participate and were very glad to get notification that we will receive the PandaBoard for our stereo video streaming project (the board is already arrived). However, hardware accelerated video encoders are not yet released by TI. That is why we decide to make an iteration using BeagleBoard xM to check some new software ideas and make more integrated (more compact, less weight) hardware design as a preparation for the quad-copter development.&lt;br /&gt;
&lt;br /&gt;
For these purposes we develop small (approx. 200×140mm) vehicle based on &lt;a href=&quot;http://www.dfrobot.com/index.php?route=product/product&amp;amp;keyword=rp5&amp;amp;category_id=48&amp;amp;product_id=96&quot;&gt;DFRobot&#39;s RP5 tracked platform&lt;/a&gt;. Two standard model motor controllers were used to drive motors. Control signals are standard PWMs used in modeling. On top of the platform we mount plastic box where BeagleBoard xM and level shifters are hidden. And finally on top of the vehicle we mount two Logitech 9000Pro USB cameras. The following pictures illustrate the whole mechanical design.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPwxmouhQT5Rz7-bAWYKt4uGHUhyphenhyphen_nW4V78JtdbVu2uWveJjCNW0Qr-86IrbQYATEMNHFxwwuGSMN1cWsdlMGsbAxyONK6kjEu6zzlMpVJXOOPuEr5xrV7eg1EeCWRIQSLE7-ZbYBSDYE/s1600/two-cameras.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPwxmouhQT5Rz7-bAWYKt4uGHUhyphenhyphen_nW4V78JtdbVu2uWveJjCNW0Qr-86IrbQYATEMNHFxwwuGSMN1cWsdlMGsbAxyONK6kjEu6zzlMpVJXOOPuEr5xrV7eg1EeCWRIQSLE7-ZbYBSDYE/s1600/two-cameras.jpeg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Complete vehicle: RP5 tracked platform, box with BeagleBoard xM and 
soldered level shifters, TP-Link WLan N stick and two Logitech 9000Pro 
USB camera&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhCrQTqS7CYQSFbagNWFXz-TzI-231ghrW-7ojVfXz8LQAupoE7AWDf42Qt_tPbvY8qrwruRaexEAVXddtiVkgEISsrsxWy6252AVRt7p9xtDaiWUiqQbNBLdIhS6EE7gO3yTCk5k3FXY/s1600/inside.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhCrQTqS7CYQSFbagNWFXz-TzI-231ghrW-7ojVfXz8LQAupoE7AWDf42Qt_tPbvY8qrwruRaexEAVXddtiVkgEISsrsxWy6252AVRt7p9xtDaiWUiqQbNBLdIhS6EE7gO3yTCk5k3FXY/s1600/inside.jpeg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;There is a plenty of space remains within the box. We will need this space later when we will move to PandaBoard.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrtjtPdR60YNWiDwwzO82vd1gTu3diBidbC_wNw0bglcuxt7xBAJHtCF9Yp4QHKPy9dKyT2WbRqq-nm9XQNFcPx5jh8AFnRSX6aFmx0e988wyjR2aRJNuYP8_m8FeNcI30fuxLraSf0gM/s1600/closer-inside.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrtjtPdR60YNWiDwwzO82vd1gTu3diBidbC_wNw0bglcuxt7xBAJHtCF9Yp4QHKPy9dKyT2WbRqq-nm9XQNFcPx5jh8AFnRSX6aFmx0e988wyjR2aRJNuYP8_m8FeNcI30fuxLraSf0gM/s1600/closer-inside.jpeg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;More detailed view of the BeagleBoard xM inside&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Eu9y9-5SYLYXV48D9Elh6afEcbS_YAOFgtcCGPexS-4G9pVx76_Y5SDkM3Av3Ps-Q15k2KCZCpy6igyyJi9AxV_pSBr5AxeL9dPVlyw8-4HQq1WKokmz2tgHl1IkcVTi378kNTxhp6Q/s1600/basement.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Eu9y9-5SYLYXV48D9Elh6afEcbS_YAOFgtcCGPexS-4G9pVx76_Y5SDkM3Av3Ps-Q15k2KCZCpy6igyyJi9AxV_pSBr5AxeL9dPVlyw8-4HQq1WKokmz2tgHl1IkcVTi378kNTxhp6Q/s1600/basement.jpeg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;In the &quot;basement&quot;: NiMh battery, two standard PWM motor controllers and power regulator module.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
We are quite happy with overall design. However it could not be considered as a final yet. There are two problems:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Very unstable camera mounts. In fact we did not decide yet which cameras we will use in the future. Current 9000Pro has great optic, UVC compliant and as a result works out of the box on the BeagleBoard with Angstrom. However, it is rather large and is very inconvenient to mount. That is why we are also considering the option to use much smaller analog cameras with corresponding USB grabber.&lt;/li&gt;
&lt;li&gt;Only two motors could be currently controlled directly from BeagleBoard. The reason is that only two hardware PWM generators are available on the expansion slot. Since our final goal is to build quad-copter, it is not an issue because we will be using I2C to communicate with motor controllers instead of PWM. However, more sensors will be necessary and not all of them are I2C devices (such as for example gyro and accelerometers). So most probably we will use the &lt;a href=&quot;http://arduino.cc/en/Main/ArduinoBoardNano&quot;&gt;Arduino Nano&lt;/a&gt; micro-controller board to interface with sensors. As a side effect, it would be very easy to add more PWM channels to control additional motors and servos from Arduino for this particular vehicle.&lt;/li&gt;
&lt;/ol&gt;
We are currently working on these two issues and will post an update soon.&lt;br /&gt;
&lt;br /&gt;
Now to software part of the project. This vehicle is currently running Angstrom with modified and extended version of &lt;a href=&quot;http://www.gitorious.org/veter/pages/Home&quot;&gt;our control applications&lt;/a&gt;. Similar to our previous vehicle we are using Angstrom Linux distribution, Gstreamer to work with video data, ZeroC Ice for communication and OpenGL for user interface. As a result, we can control the vehicle over the Internet and there is solution for firewall/NAT traversal problem and video adaptation for changing networking conditions.&lt;br /&gt;
&lt;br /&gt;
As mentioned at the very beginning of this post, our goal was to provide stereo vision for vehicle drivers. We are mixing left and right frame from two cameras in one large frame, compress it using Gstreamer and corresponding DSP-accelerated h264 encoder. Then, video is transmitted using Ice middleware to the client computer where we use &lt;a href=&quot;http://opencv.willowgarage.com/wiki/&quot;&gt;OpenCV computer vision library&lt;/a&gt; to generate anaglyph stereo image. The result of this process is&lt;br /&gt;
illustrated on the following picture.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYVW87yPwb6LQKy32XwuFrGUAgeY3LM6HJQJuyrRltx_eiUQBHeHkN6qBmQsK7NfYiHeah4ynXJ029k_XaGJgdQGYrykIoLDmma0f8y9ATgF72QL8HvhBOs03MQaoDnAhSNkHlzBAo7DE/s1600/anaglyph.jpeg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYVW87yPwb6LQKy32XwuFrGUAgeY3LM6HJQJuyrRltx_eiUQBHeHkN6qBmQsK7NfYiHeah4ynXJ029k_XaGJgdQGYrykIoLDmma0f8y9ATgF72QL8HvhBOs03MQaoDnAhSNkHlzBAo7DE/s1600/anaglyph.jpeg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Driver cockpit with anaglyph stereo video generated from two on-board 
cameras. Corresponding glasses (red/cyan) are required to see stereo 
effect.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
It might be possible to generate anaglyph image directly on BeagleBoard but we decide against it and instead transmit two whole left and right frames to the client. There are several reasons for it. First, using anaglyphs to achieve stereo effects leads to the partial lost of color information and as a result rather poor image quality. The more sophysticated approaches to display stereo images such as for example polarized glasses are available. They can display both images without losses. To utilize this approach it is necessary to transmit complete left and right frames to the visualization application (and this is what we are doing). Second reason is limited computation power available on on-board computer. As a result it is not feasible to implement computation intensive algorithms (such as for example &lt;a href=&quot;http://www.vis.uky.edu/%7Eliaomiao/GPUstereo.htm&quot;&gt;real-time depth map calculation&lt;/a&gt;) on on-board computer. Instead it might be beneficial to run such algorithms on more powerful driver computer or even on high performance cluster (with GPUs, SPEs, FPGA or whatever might be most appropriate). For this purposes it is again necessary to transmit complete left and right frame to the driver&#39;s computer. Moreover, some widely-used computer vision libraries such as OpenCV are highly optimized for x86 platform and pretty slow on BeagleBoard. That is why, we decide against doing image processing on on-board computer and instead perform such calculation on driver&#39;s computer.&lt;br /&gt;
&lt;br /&gt;
This is our very first experiments with stereo vision and the code base is not as clean and stable as we want it to be. There are also some issues with camera calibration and positioning. That is why the stereo appearance of the image above is not as good as it could be. We are currently working very actively on it and will push the update to our &lt;a href=&quot;http://www.gitorious.org/veter/veter&quot;&gt;git repository&lt;/a&gt; very soon.

&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/4943252639341748632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2010/12/stereo-video-stream-from-on-board.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4943252639341748632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4943252639341748632'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2010/12/stereo-video-stream-from-on-board.html' title='Stereo video stream from on-board cameras'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPwxmouhQT5Rz7-bAWYKt4uGHUhyphenhyphen_nW4V78JtdbVu2uWveJjCNW0Qr-86IrbQYATEMNHFxwwuGSMN1cWsdlMGsbAxyONK6kjEu6zzlMpVJXOOPuEr5xrV7eg1EeCWRIQSLE7-ZbYBSDYE/s72-c/two-cameras.jpeg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-7506924298799546086</id><published>2010-11-08T15:51:00.006+01:00</published><updated>2012-04-24T00:10:54.127+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="conference"/><category scheme="http://www.blogger.com/atom/ns#" term="gstreamer"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="presentation"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Embedded Linux and GStreamer Conference 2010</title><content type='html'>&lt;div&gt;In the last week of October we participated in the &lt;a href=&quot;http://embeddedlinuxconference.com/elc_europe10/&quot;&gt;Embedded Linux Conference Europe 2010&lt;/a&gt; (ELC-E) and presented at &lt;a href=&quot;http://gstreamer.freedesktop.org/conference/&quot;&gt;GStreamer Conference 2010&lt;/a&gt;. Both conferences took place in the Cambridge, UK and boy, atmosphere in the town is just amazing, you feel history and ideas at every corner. But when you get back to the conference, it&#39;s just one level higher. There you see the folks working on real world problems and getting them solved. What was interesting: TI OMAP processors, Beagleboard and Pandaboard were pretty hot topic on both conferences. Introduction of OMAP4 processor and related presentation on enabling GStreamer support for this processor were enlightening.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;On the ELC-E we took part in the Case Study demo with our remotely controlled car and the feedback was great. We drove the car several times during couple of hours of case study and showed all inner electronics. Electronic components and plenty of wires always get attention :)&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://2.bp.blogspot.com/_cJ352iIs1mY/TNxfTpudh5I/AAAAAAAABFc/O_If273jUUA/s1600/IMG_1516-1.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 326px; height: 400px;&quot; src=&quot;http://2.bp.blogspot.com/_cJ352iIs1mY/TNxfTpudh5I/AAAAAAAABFc/O_If273jUUA/s400/IMG_1516-1.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5538406432981747602&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;     &lt;/span&gt;    &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Getting ready to storm&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Everyone could try steering wheel and gas pedal worked great. Unfortunately, we could not allow everyone drive the car, there were way too many people in the room and wireless connection was patchy. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;During GStreamer Conference we presented our solution to the adaptive video streaming using Ice and GStreamer. Generally, adaptive video streaming was one of  the major topic on the conference. Several different approaches were introduced, but most of them are in early development stage. Our answer to the problem with using TCP buffer for monitoring was the only one with working example.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://4.bp.blogspot.com/_cJ352iIs1mY/TNxiGiWvvQI/AAAAAAAABFk/kOCTHX3GBMo/s1600/IMG_1464-1.JPG&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 352px;&quot; src=&quot;http://4.bp.blogspot.com/_cJ352iIs1mY/TNxiGiWvvQI/AAAAAAAABFk/kOCTHX3GBMo/s400/IMG_1464-1.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5538409506199813378&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;    &lt;/span&gt;   &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Presentation of adaptive video streaming&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The presentation with slides and demo videos are available in &lt;a href=&quot;https://docs.google.com/leaf?id=0BzV4szKbuvKwYzQwZDlhNjktMTVlOC00ZDczLThiZjQtZTRlMjcyYzRlZWIy&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50&quot;&gt;pdf&lt;/a&gt; or as a &lt;a href=&quot;https://docs.google.com/leaf?id=0BzV4szKbuvKwNTEwYTQwOGUtNzAzNi00NjQ5LTk2MjEtMWIzYTQzNjVkZTRh&amp;amp;sort=name&amp;amp;layout=list&amp;amp;num=50&quot;&gt;zip bundle with screencasts&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Generally, the conference, the atmosphere and the people were simply great, highly recommended experience. &lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/7506924298799546086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2010/11/embedded-linux-and-gstreamer-conference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/7506924298799546086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/7506924298799546086'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2010/11/embedded-linux-and-gstreamer-conference.html' title='Embedded Linux and GStreamer Conference 2010'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_cJ352iIs1mY/TNxfTpudh5I/AAAAAAAABFc/O_If273jUUA/s72-c/IMG_1516-1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-3860877135700107548</id><published>2010-10-13T23:28:00.000+02:00</published><updated>2012-06-14T10:17:29.038+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="gstreamer"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Support for joysticks (wheels) is implemented</title><content type='html'>We just pushed the new version of our cockpit and vehicle application to &lt;a href=&quot;http://www.gitorious.org/veter&quot;&gt;our project repository at gitorious&lt;/a&gt;.&lt;br /&gt;
The main new feature in the cockpit application is support for joysticks. In fact, it also means support for steering wheels with pedals devices since they are &quot;joysticks&quot; from the OS point of view. We tested it with Logitech Formula Force RX wheel pictured below.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlZ1G48Nx16WXxl3iJcI9-ISOdPqJeXU7WqEkhOZNUA87_IBM0-XADgSF8oaDNrQumbBKu83F3BabIg_VdaDnDk0ORk4aRJ-0MnkZcME5OZXPd5xzZ8u2lCk_duCAqVcIDmmRyHY8wnjA/s1600/wheel.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlZ1G48Nx16WXxl3iJcI9-ISOdPqJeXU7WqEkhOZNUA87_IBM0-XADgSF8oaDNrQumbBKu83F3BabIg_VdaDnDk0ORk4aRJ-0MnkZcME5OZXPd5xzZ8u2lCk_duCAqVcIDmmRyHY8wnjA/s1600/wheel.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;In addition, we add support for rear-view camera in the capturing and encoding pipeline which runs on the vehicle (BeagleBoard). However, we did not mechanically mount the second camera yet, that is why, by default, the rear view is generated by the videotestsrc element with &quot;snow&quot; pattern. But the tested working pipeline is already &lt;a href=&quot;http://www.gitorious.org/veter/veter/blobs/master/misc/car.config&quot;&gt;in repository and can be found in the car configuration file&lt;/a&gt;. The following picture illustrates how it is shown by the cockpit application.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZy0HqzHhj1oGVUyxbCtAF4qg7-XBzYlgeMqklw63GaZPSiP_4ET-i_9KcvBaYwJ1MwE4_ZQchfKWgMu8T7Q0Wvk8p5-WcjeSlPmL6CC27KDDm23o9rW9Ne7csXZ4N2JRX039X7HXvseY/s1600/cockpit.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZy0HqzHhj1oGVUyxbCtAF4qg7-XBzYlgeMqklw63GaZPSiP_4ET-i_9KcvBaYwJ1MwE4_ZQchfKWgMu8T7Q0Wvk8p5-WcjeSlPmL6CC27KDDm23o9rW9Ne7csXZ4N2JRX039X7HXvseY/s1600/cockpit.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Please note the rectangle with &quot;snow&quot; patter in the top left corner. This is the place where the video from rear-view camera will be shown as soon as we mount the second camera to the vehicle.

&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/3860877135700107548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2010/10/support-for-joysticks-wheels-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3860877135700107548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3860877135700107548'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2010/10/support-for-joysticks-wheels-is.html' title='Support for joysticks (wheels) is implemented'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlZ1G48Nx16WXxl3iJcI9-ISOdPqJeXU7WqEkhOZNUA87_IBM0-XADgSF8oaDNrQumbBKu83F3BabIg_VdaDnDk0ORk4aRJ-0MnkZcME5OZXPd5xzZ8u2lCk_duCAqVcIDmmRyHY8wnjA/s72-c/wheel.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-4793078869417104186</id><published>2010-10-13T23:05:00.000+02:00</published><updated>2012-06-14T10:28:06.882+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="gstreamer"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>New mechanical design</title><content type='html'>We finally found the hardware design (mechanical and electrical) which we are going to stick with for some time. The main problem was power supply which was affected by the noise from motors. Using SparkFun&#39;s &lt;a href=&quot;http://www.sparkfun.com/commerce/product_info.php?products_id=9370&quot;&gt;DC/DC converter breakout board&lt;/a&gt; and &lt;a href=&quot;http://www.sparkfun.com/commerce/product_info.php?products_id=8745&quot;&gt;logic level converter&lt;/a&gt; we manage to isolate the noise from the main board. Here is how it looks like now:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCnQKKrGwAyS8r62nE0hxPHmFfkAg8b9INdx_-ZP6VIdQLdWqlEyY2U0bLqLQG7O-1abQeCLclMHhuQq92aJHAcAYOuvFaxDHi4LaMQ8cZMjK5haPP3Gmyg-uZuERh9vEBZbxHFlQLZFM/s1600/beagle3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCnQKKrGwAyS8r62nE0hxPHmFfkAg8b9INdx_-ZP6VIdQLdWqlEyY2U0bLqLQG7O-1abQeCLclMHhuQq92aJHAcAYOuvFaxDHi4LaMQ8cZMjK5haPP3Gmyg-uZuERh9vEBZbxHFlQLZFM/s1600/beagle3.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpWcKfN4SbNyGLg7WkNU3WoGkq8LcfsvZOwO3hEt6TcOmC0RuyjkX8qxRyzuZ93GM8BKWqEkmw2JgBxhj8d4rHkeF9u1oYueEfdhL6VfBEyfCoz000t39uFpki4egW1Gvq8qZbHWEdWdo/s1600/chassi-cover.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpWcKfN4SbNyGLg7WkNU3WoGkq8LcfsvZOwO3hEt6TcOmC0RuyjkX8qxRyzuZ93GM8BKWqEkmw2JgBxhj8d4rHkeF9u1oYueEfdhL6VfBEyfCoz000t39uFpki4egW1Gvq8qZbHWEdWdo/s1600/chassi-cover.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgptsgBSpepoNUXNulHhq_ikpBn6clWetsMeeZYYr6Q1o_6pEAZVvkOiiKUsEHHh-JyrceIPLNr3Kf53Pdz9C-eQxjQH1Fo-qKo2Kb89quuaayUXQ7fvpGOHQ9VchONZ7ezEceu0GZGA/s1600/t2-iso.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxgptsgBSpepoNUXNulHhq_ikpBn6clWetsMeeZYYr6Q1o_6pEAZVvkOiiKUsEHHh-JyrceIPLNr3Kf53Pdz9C-eQxjQH1Fo-qKo2Kb89quuaayUXQ7fvpGOHQ9VchONZ7ezEceu0GZGA/s1600/t2-iso.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
As you can see on the first picture, we are not using TrainerBoard for now. Instead we decide to generate two PWM signals to control steering and acceleration directly from BeagleBoard using GPIO pins available on expansion connector. Level converter is used to convert +1.8V to +5V required for standard RC controller and servo.

&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/4793078869417104186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2010/10/new-mechanical-design.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4793078869417104186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/4793078869417104186'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2010/10/new-mechanical-design.html' title='New mechanical design'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCnQKKrGwAyS8r62nE0hxPHmFfkAg8b9INdx_-ZP6VIdQLdWqlEyY2U0bLqLQG7O-1abQeCLclMHhuQq92aJHAcAYOuvFaxDHi4LaMQ8cZMjK5haPP3Gmyg-uZuERh9vEBZbxHFlQLZFM/s72-c/beagle3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-3205525451907807977</id><published>2010-09-18T18:13:00.000+02:00</published><updated>2012-04-24T00:11:36.509+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="gstreamer"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>The first version of adaptive video streaming is implemented</title><content type='html'>&amp;nbsp;We just pushed the update to &lt;a href=&quot;http://gitorious.org/veter&quot;&gt;our repository at gitorious&lt;/a&gt;. This is our first implementation of the adaptive video streaming. To adapt to changing network conditions, we are tracking the size of output queue and adjust the frame size dynamically if the queue exceed certain size.&lt;br /&gt;
This functionality uses scaler element within gstreamer encoding pipeline. Scaler is located between video source element and encoding element. If we detect the Quality Of Service (QoS) condition we need to react (queue size is too large) then we pause the pipeline, adjust corresponding caps to instruct the scaler to reduce or enlarge frame size and then unpause the pipeline again. The implementation of this functionality could be found in &lt;br /&gt;
&lt;a href=&quot;http://gitorious.org/veter/veter/blobs/master/src/vehicle/VideoSenderThread.cpp&quot;&gt;src/vehicle/VideoSenderThread.cpp&lt;/a&gt; file. In particular, VideoSenderThread::setFrameSize() function makes pipeline adjustments mentioned above. Starting at line 300 there is a piece of code which illustrates how we react on observed QoS conditions.

&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/3205525451907807977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2010/09/first-version-of-adaptive-video.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3205525451907807977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/3205525451907807977'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2010/09/first-version-of-adaptive-video.html' title='The first version of adaptive video streaming is implemented'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-5239150243917814521</id><published>2010-08-12T11:31:00.000+02:00</published><updated>2012-04-24T00:11:51.210+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="conference"/><category scheme="http://www.blogger.com/atom/ns#" term="gstreamer"/><category scheme="http://www.blogger.com/atom/ns#" term="presentation"/><title type='text'>We will be talking about our project at Gstreamer conference 2010</title><content type='html'>Our submission for&amp;nbsp;&lt;a href=&quot;http://gstreamer.freedesktop.org/conference/&quot;&gt;Gstreamer conference 2010&lt;/a&gt; is accepted and we will be giving a &lt;a href=&quot;http://gstreamer.freedesktop.org/conference/gstreamer-conference-timetable.html&quot;&gt;presentation at 16.30&lt;/a&gt; talking about video streaming related aspects in our BeagleBoard and Gstreamer based &lt;a href=&quot;http://www.gitorious.org/veter&quot;&gt;project.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Title:&lt;/b&gt; &lt;br /&gt;
Using ICE middleware with GStreamer to implement real-time QoS-aware video streaming for remotely controlled vehicle.&lt;br /&gt;
&lt;b&gt;Abstract: &lt;/b&gt;&lt;br /&gt;
Typically, remotely controlled vehicles are equipped with video camera to let the remote driver see surrounding environment. To enable precise control of the vehicle over the Internet, it is necessary to assure low video latency and ability to adapt to the changing network conditions. In addition, low power consumption is required to increase the battery-based operation time. In this paper we: a) outline our embedded control system based on BeagleBoard open hardware and Ångström m Linux distribution; b) provide requirements, motivation and describe how we build real-time quality of service (QoS) aware video streaming solution with ICE open-source middleware and GStreamer on this platform; c) we contrast and compare our solution with RTP/RTCP-based streaming alternatives and d) provide performance measurements for our adaptation algorithms.&lt;br /&gt;
&lt;br /&gt;
In addition, we would be glad to make live demo where participants can drive our model car (approx. 30x40 cm size).

&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/5239150243917814521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2010/08/we-will-be-talking-about-project-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5239150243917814521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/5239150243917814521'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2010/08/we-will-be-talking-about-project-on.html' title='We will be talking about our project at Gstreamer conference 2010'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1568445665356514244.post-8428896171266857559</id><published>2010-08-10T00:09:00.000+02:00</published><updated>2012-06-14T10:34:49.840+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beagleboard"/><category scheme="http://www.blogger.com/atom/ns#" term="control"/><category scheme="http://www.blogger.com/atom/ns#" term="omap"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="streaming"/><category scheme="http://www.blogger.com/atom/ns#" term="vehicle"/><category scheme="http://www.blogger.com/atom/ns#" term="video"/><title type='text'>Sources are published on Gitorious</title><content type='html'>Veter project is the set of applications required to control remote vehicles over the Internet to organize races. Vehicles are equipped with on-board embedded computer (like for example BeagleBoard) connected to video camera and WLan adapter. The cockpit application let the driver see the video stream from on-board camera in real-time and control the vehicle over the Internet.&lt;br /&gt;
&lt;br /&gt;
Veter is a hobby project. We are working on it since about three years. A couple of days ago we decide to open our sources and publish the first version on Gitorious: &lt;a href=&quot;http://gitorious.org/veter/&quot;&gt;http://gitorious.org/veter/&lt;/a&gt;. The documentation is not complete yet but I am working on it. You can take a look on &lt;a href=&quot;http://www.gitorious.org/veter/veter/trees/master/doc/overview&quot; target=&quot;_blank&quot;&gt;overview.pdf&lt;/a&gt; for more detailed project overview. Please make sure to check &lt;a href=&quot;http://www.gitorious.org/veter/veter/trees/master&quot; target=&quot;_blank&quot;&gt;README&lt;/a&gt; if you are going to try to compile it yourself.&lt;br /&gt;
&lt;br /&gt;
From the technology prospective, Veter project is based on the&amp;nbsp;&lt;a href=&quot;http://www.zeroc.com/ice.html&quot;&gt;Internet Communication Engine (ICE)&lt;/a&gt;, &lt;a href=&quot;http://www.gstreamer.org/&quot;&gt;GStreamer&lt;/a&gt; and OpenGL. It could run on Windows and Linux. Currently, we are using &lt;a href=&quot;http://www.beagleboard.org/&quot;&gt;BeagleBoard&lt;/a&gt; and &lt;a href=&quot;http://www.tincantools.com/product.php?productid=16149&amp;amp;cat=255&amp;amp;page=1&quot;&gt;TrainerBoard&lt;/a&gt; to control slightly modified RC car. The driver cockpit application is running on PC (Windows or Linux) and uses sophisticated visualization technique where decoded video is placed as a texture on the 3D model of the cockpit designed with Blender (the cockpit does not looks very attractive now because it was made by me :-) we are desperately need 3D artist who can help)&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhWed1NhwV3Wi5HE3kzsk1VblBnV0hMy2xfdLIO3jSkTuYfwF_-BKnQtowhGHotfz_vO1t8_QLBuX8ERG-rfzNCj1vJf3ad1GJIPZQ4DmbDTImJgeAK3dl7c7ts0rRAroX0R2ct9qxNqk/s1600/t1-side.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhWed1NhwV3Wi5HE3kzsk1VblBnV0hMy2xfdLIO3jSkTuYfwF_-BKnQtowhGHotfz_vO1t8_QLBuX8ERG-rfzNCj1vJf3ad1GJIPZQ4DmbDTImJgeAK3dl7c7ts0rRAroX0R2ct9qxNqk/s1600/t1-side.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6UgSwtjeVDv4xPhElCaIWPmWCwQpmt4eJnxOlQIcwtCXVzdvLXnGQdLYVi6HTmMx6GAcmD4zNBZtb7ClwUZWOHvFMXAFYB64uja6nYie1fTsf9mPow4w9PE-6hXQmLkVwvfqp4WhdCQA/s1600/trainer-connected.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6UgSwtjeVDv4xPhElCaIWPmWCwQpmt4eJnxOlQIcwtCXVzdvLXnGQdLYVi6HTmMx6GAcmD4zNBZtb7ClwUZWOHvFMXAFYB64uja6nYie1fTsf9mPow4w9PE-6hXQmLkVwvfqp4WhdCQA/s1600/trainer-connected.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Motor and steering connected to the AVR-s GPIO. AVR is a slave on I2C bus from BeagleBoard.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI5IGvkIhZRdhSI-tKwYDRZk69T1hhkqOhke2-wVRzQrGddLp69mPWO7CIjv7lFcUeuSqJP-xx0QS4k2IfIUkvJUw9S13jPtLaWV7cJ60gZtIA31hmrBpLG6CpxXOhmWqFma1TbPVauCc/s1600/beagleandhub.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI5IGvkIhZRdhSI-tKwYDRZk69T1hhkqOhke2-wVRzQrGddLp69mPWO7CIjv7lFcUeuSqJP-xx0QS4k2IfIUkvJUw9S13jPtLaWV7cJ60gZtIA31hmrBpLG6CpxXOhmWqFma1TbPVauCc/s1600/beagleandhub.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;The whole sandwich: BeagleBoard, Trainer (on the opposite site), USB HUB with camera and WLan adapter&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot; title=&quot;Creative Commons Attribution 3.0 License&quot;&gt;
&lt;img alt=&quot;License&quot; src=&quot;http://i.creativecommons.org/l/by/3.0/88x31.png&quot; /&gt;
&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;Content on 
&lt;/span&gt;&lt;span href=&quot;http://creativecommons.org&quot; property=&quot;cc:attributionName&quot; rel=&quot;cc:attributionURL&quot; style=&quot;font-size: x-small;&quot;&gt;this site&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; 
is licensed under a 
&lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot; rel=&quot;license&quot;&gt;
Creative Commons Attribution 3.0 License
&lt;/a&gt;.
&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Visit http://veterobot.org for more details.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.veterobot.org/feeds/8428896171266857559/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.veterobot.org/2010/08/sources-are-published-on-gitorious.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/8428896171266857559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1568445665356514244/posts/default/8428896171266857559'/><link rel='alternate' type='text/html' href='http://www.veterobot.org/2010/08/sources-are-published-on-gitorious.html' title='Sources are published on Gitorious'/><author><name>Andrey</name><uri>http://www.blogger.com/profile/05075224568606858385</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhWed1NhwV3Wi5HE3kzsk1VblBnV0hMy2xfdLIO3jSkTuYfwF_-BKnQtowhGHotfz_vO1t8_QLBuX8ERG-rfzNCj1vJf3ad1GJIPZQ4DmbDTImJgeAK3dl7c7ts0rRAroX0R2ct9qxNqk/s72-c/t1-side.jpg" height="72" width="72"/><thr:total>1</thr:total></entry></feed>