1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries tagged robot
</title>
5 <description>Entries tagged robot
</description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
10 <title>Debian, the Linux distribution of choice for LEGO designers?
</title>
11 <link>http://people.skolelinux.org/pere/blog/Debian__the_Linux_distribution_of_choice_for_LEGO_designers_.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian__the_Linux_distribution_of_choice_for_LEGO_designers_.html
</guid>
13 <pubDate>Sat,
11 May
2013 20:
20:
00 +
0200</pubDate>
14 <description><P
>In January,
15 <a href=
"http://people.skolelinux.org/pere/blog/New_IRC_channel_for_LEGO_designers_using_Debian.html
">I
16 announced a
</a
> new
<a href=
"irc://irc.debian.org/%
23debian-lego
">IRC
17 channel #debian-lego
</a
>, for those of us in the Debian and Linux
18 community interested in LEGO, the marvellous construction system from
19 Denmark. We also created
20 <a href=
"http://wiki.debian.org/LegoDesigners
">a wiki page
</a
> to have
21 a place to take notes and write down our plans and hopes. And several
22 people showed up to help. I was very happy to see the effect of my
23 call. Since the small start, we have a debtags tag
24 <a href=
"http://debtags.debian.net/search/bytag?wl=hardware::hobby:lego
">hardware::hobby:lego
</a
>
25 tag for LEGO related packages, and now count
10 packages related to
26 LEGO and Mindstorms:
</p
>
28 <p
><table
>
29 <tr
><td
><a href=
"http://packages.qa.debian.org/brickos
">brickos
</a
></td
><td
>alternative OS for LEGO Mindstorms RCX. Supports development in C/C++
</td
></tr
>
30 <tr
><td
><a href=
"http://packages.qa.debian.org/leocad
">leocad
</a
></td
><td
>virtual brick CAD software
</td
></tr
>
31 <tr
><td
><a href=
"http://packages.qa.debian.org/libnxt
">libnxt
</a
></td
><td
>utility library for talking to the LEGO Mindstorms NX
</td
></tr
>
32 <tr
><td
><a href=
"http://packages.qa.debian.org/lnpd
">lnpd
</a
></td
><td
>daemon for LNP communication with BrickOS
</td
></tr
>
33 <tr
><td
><a href=
"http://packages.qa.debian.org/nbc
">nbc
</a
></td
><td
>compiler for LEGO Mindstorms NXT bricks
</td
></tr
>
34 <tr
><td
><a href=
"http://packages.qa.debian.org/nqc
">nqc
</a
></td
><td
>Not Quite C compiler for LEGO Mindstorms RCX
</td
></tr
>
35 <tr
><td
><a href=
"http://packages.qa.debian.org/python-nxt
">python-nxt
</a
></td
><td
>python driver/interface/wrapper for the Lego Mindstorms NXT robot
</td
></tr
>
36 <tr
><td
><a href=
"http://packages.qa.debian.org/python-nxt-filer
">python-nxt-filer
</a
></td
><td
>simple GUI to manage files on a LEGO Mindstorms NXT
</td
></tr
>
37 <tr
><td
><a href=
"http://packages.qa.debian.org/scratch
">scratch
</a
></td
><td
>easy to use programming environment for ages
8 and up
</td
></tr
>
38 <tr
><td
><a href=
"http://packages.qa.debian.org/t2n
">t2n
</a
></td
><td
>simple command-line tool for Lego NXT
</td
></tr
>
39 </table
></p
>
41 <p
>Some of these are available in Wheezy, and all but one are
42 currently available in Jessie/testing. leocad is so far only
43 available in experimental.
</p
>
45 <p
>If you care about LEGO in Debian, please join us on IRC and help
46 adding the rest of the great free software tools available on Linux
47 for LEGO designers.
</p
>
52 <title>Moved the pymissile Debian packaging to collab-maint
</title>
53 <link>http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html
</link>
54 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Moved_the_pymissile_Debian_packaging_to_collab_maint.html
</guid>
55 <pubDate>Thu,
10 Jan
2013 20:
40:
00 +
0100</pubDate>
56 <description><p
>As part of my investigation on how to improve the support in Debian
57 for hardware dongles, I dug up my old Mark and Spencer USB Rocket
58 Launcher and updated the Debian package
59 <a href=
"http://packages.qa.debian.org/pymissile
">pymissile
</a
> to make
60 sure udev will fix the device permissions when it is plugged in. I
61 also added a
"Modaliases
" header to test it in the Debian archive and
62 hopefully make the package be proposed by jockey in Ubuntu when a user
63 plug in his rocket launcher. In the process I moved the source to a
64 git repository under collab-maint, to make it easier for any DD to
65 contribute.
<a href=
"http://code.google.com/p/pymissile/
">Upstream
</a
>
66 is not very active, but the software still work for me even after five
67 years of relative silence. The new git repository is not listed in
68 the uploaded package yet, because I want to test the other changes a
69 bit more before I upload the new version. If you want to check out
70 the new version with a .desktop file included, visit the
71 <a href=
"http://anonscm.debian.org/gitweb/?p=collab-maint/pymissile.git
">gitweb
72 view
</a
> or use
"<tt
>git clone
73 git://anonscm.debian.org/collab-maint/pymissile.git
</tt
>".
</p
>
78 <title>New IRC channel for LEGO designers using Debian
</title>
79 <link>http://people.skolelinux.org/pere/blog/New_IRC_channel_for_LEGO_designers_using_Debian.html
</link>
80 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/New_IRC_channel_for_LEGO_designers_using_Debian.html
</guid>
81 <pubDate>Wed,
2 Jan
2013 15:
40:
00 +
0100</pubDate>
82 <description><p
>During Christmas, I have worked a bit on the Debian support for
83 <a href=
"http://mindstorms.lego.com/en-us/Default.aspx
">LEGO Mindstorm
84 NXT
</a
>. My son and I have played a bit with my NXT set, and I
85 discovered I had to build all the tools myself because none were
86 already in Debian Squeeze. If Debian support for LEGO is something
87 you care about, please join me on the IRC channel
88 <a href=
"irc://irc.debian.org/%
23debian-lego
">#debian-lego
</a
> (server
89 irc.debian.org). There is a lot that could be done to improve the
90 Debian support for LEGO designers. For example both CAD software
91 and Mindstorm compilers are missing. :)
</p
>
93 <p
>Update
2012-
01-
03: A
94 <a href=
"http://wiki.debian.org/LegoDesigners
">project page
</a
>
95 including links to Lego related packages is now available.
</p
>
100 <title>First version of a Perl library to control the Spykee robot
</title>
101 <link>http://people.skolelinux.org/pere/blog/First_version_of_a_Perl_library_to_control_the_Spykee_robot.html
</link>
102 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/First_version_of_a_Perl_library_to_control_the_Spykee_robot.html
</guid>
103 <pubDate>Sat,
9 Oct
2010 14:
00:
00 +
0200</pubDate>
104 <description><p
>This summer I got the chance to buy cheap Spykee robots, and since
105 then I have worked on getting Linux software in place to control them.
106 The firmware for the robot is available from the producer, and using
107 that source it was trivial to figure out the protocol specification.
108 I
've started on a perl library to control it, and made some demo
109 programs using this perl library to allow one to control the
112 <p
>The library is quite functional already, and capable of controlling
113 the driving, fetching video, uploading MP3s and play them. There are
114 a few less important features too.
</p
>
116 <p
>Since a few weeks ago, I ran out of time to spend on this project,
117 but I never got around to releasing the current source. I decided
118 today that it was time to do something about it, and uploaded the
119 source to my Debian package store at people.skolelinux.org.
</p
>
121 <p
>Because it was simpler for me, I made a Debian package and
122 published the source and deb. If you got a spykee robot, grab the
123 source or binary package:
</p
>
126 <li
><a href=
"http://people.skolelinux.org/~pere/debian/packages/lenny/libspykee-perl_0.0
.20101009-
1.tar.gz
">libspykee-perl_0.0
.20101009-
1.tar.gz
</a
></li
>
127 <li
><a href=
"http://people.skolelinux.org/~pere/debian/packages/lenny/libspykee-perl_0.0
.20101009-
1.dsc
">libspykee-perl_0.0
.20101009-
1.dsc
</a
></li
>
128 <li
><a href=
"http://people.skolelinux.org/~pere/debian/packages/lenny/libspykee-perl_0.0
.20101009-
1_all.deb
">libspykee-perl_0.0
.20101009-
1_all.deb
</a
></li
>
129 </ul
></p
>
131 <p
>If you are interested in helping out with developing this library,
132 please let me know.
</p
>
137 <title>My first perl GUI application - controlling a Spykee robot
</title>
138 <link>http://people.skolelinux.org/pere/blog/My_first_perl_GUI_application___controlling_a_Spykee_robot.html
</link>
139 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/My_first_perl_GUI_application___controlling_a_Spykee_robot.html
</guid>
140 <pubDate>Wed,
1 Sep
2010 21:
00:
00 +
0200</pubDate>
141 <description><p
>This evening I made my first Perl GUI application. The last few
142 days I have worked on a Perl module for controlling my recently
143 aquired Spykee robots, and the module is now getting complete enought
144 that it is possible to use it to control the robot driving at least.
145 It was now time to figure out how to use it to create some GUI to
146 allow me to drive the robot around. I picked PerlQt as I have had
147 positive experiences with the Qt API before, and spent a few minutes
148 browsing the web for examples. Using Qt Designer seemed like a short
149 cut, so I ended up writing the perl GUI using Qt Designer and
150 compiling it into a perl program using the puic program from
151 libqt-perl. Nothing fancy yet, but it got buttons to connect and
152 drive around.
</p
>
154 <p
>The perl module I have written provide a object oriented API for
155 controlling the robot. Here is an small example on how to use it:
</p
>
159 Spykee::discover(sub {$robot{$_[
0]} = $_[
1]});
160 my $host = (keys %robot)[
0];
161 my $spykee = Spykee-
>new();
162 $spykee-
>contact($host,
"admin
",
"admin
");
167 $spykee-
>forward();
172 </pre
></p
>
174 <p
>Thanks to the release of the source of the robot firmware, I could
175 peek into the implementation at the other end to figure out how to
176 implement the protocol used by the robot. I
've implemented several of
177 the commands the robot understand, but is still missing the camera
178 support to make it possible to control the robot from remote. First I
179 want to implement support for uploading new firmware and configuring
180 the wireless network, to make it possible to bootstrap a Spykee robot
181 without the producers Windows and MacOSX software (I only have Linux,
182 so I had to ask a friend to come over to get the robot testing
185 <p
>Will release the source to the public soon, but need to figure out
186 where to make it available first. I will add a link to
187 <a href=
"http://wiki.nuug.no/grupper/robot/
">the NUUG wiki
</a
> for
188 those that want to check back later to find it.
</p
>
193 <title>Robot, reis deg...
</title>
194 <link>http://people.skolelinux.org/pere/blog/Robot__reis_deg___.html
</link>
195 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Robot__reis_deg___.html
</guid>
196 <pubDate>Sat,
21 Aug
2010 22:
10:
00 +
0200</pubDate>
197 <description><p
>I dag fikk jeg endelig tittet litt på mine nyinnkjøpte roboter, og
198 har brukt noen timer til å google etter interessante referanser og
199 aktuell kildekode for bruk på Linux. Det mest lovende så langt er
200 <a href=
"http://ispykee.toyz.org/
">ispykee
</a
>, som har en
201 BSD-lisensiert linux-daemon som står som mellomledd mellom roboter på
202 lokalnettet og en sentral tjeneste der en iPhone kan koble seg opp for
203 å fjernstyre roboten. Linux-daemonen implementerer deler av
204 protokollen som roboten forstår. Etter å ha knotet litt med å oppnå
205 kontakt med roboten (den oppretter et eget ad-hoc wifi-nett, så jeg
206 måtte gå av mitt vanlige nett for å få kontakt), og kommet frem til at
207 den lytter på IP-port
9000 og
9001, gikk jeg i gang med å finne ut
208 hvordan jeg kunne snakke med roboten vha. disse portene. Robotbiten
209 av protokollen er publisert av produsenten med GPL-lisens, slik at det
210 er mulig å se hvordan protokollen fungerer. Det finnes en java-klient
211 for Android som så ganske snasen ut, men fant ingen kildekode for
212 denne. Derimot hadde iphone-løsningen kildekode, så jeg tok
213 utgangspunkt i den.
</p
>
215 <p
>Daemonen ville i utgangspunktet forsøke å kontakte den sentrale
216 tjenesten som iphone-programmet kobler seg til. Jeg skrev dette om
217 til i stedet å sette opp en nettverkstjeneste på min lokale maskin,
218 som jeg kan koble meg opp til med telnet og gi kommandoer til roboten
219 (act, forward, right, left, etc). Det involverte i praksis å bytte ut
220 socket()/connect() med socket()/bind()/listen()/accept() for å gjøre
221 klienten om til en tjener.
</p
>
223 <p
>Mens jeg har forsøkt å få roboten til å bevege seg har min samboer
224 skrudd sammen resten av roboten for å få montert kamera og plastpynten
225 (armer, plastfiber for lys). Nå er det hele montert, og roboten er
226 klar til bruk. Må få flyttet den over til mitt vanlige trådløsnett
227 før det blir praktisk, men de bitene av protokollen er ikke
228 implementert i ispykee-daemonen, så der må jeg enten få tak i en mac
229 eller en windows-maskin, eller implementere det selv.
</p
>
231 <p
>Vi var tre som kjøpte slike roboter, og vi har blitt enige om å
232 samle notater og referanser på
<a
233 href=
"http://wiki.nuug.no/grupper/robot/
">NUUGs wiki
</a
>. Ta en titt
234 der hvis du er nysgjerrig.
</p
>
239 <title>2 Spykee-roboter i hus, nå skal det lekes
</title>
240 <link>http://people.skolelinux.org/pere/blog/
2_Spykee_roboter_i_hus__n__skal_det_lekes.html
</link>
241 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/
2_Spykee_roboter_i_hus__n__skal_det_lekes.html
</guid>
242 <pubDate>Wed,
18 Aug
2010 13:
30:
00 +
0200</pubDate>
243 <description><p
>Jeg kjøpte nettopp to
244 <a href=
"http://www.spykee-robot.com/
">Spykee
</a
>-roboter, for test og
245 leking. Kjøpte to da det var så billige, og gir meg mulighet til å
246 eksperimentere uten å være veldig redd for å ødelegge alt ved å bytte
247 ut firmware og slikt. Oppdaget at lekebutikken på Bryn senter hadde
248 en liten stabel på lager som de ikke hadde klart å selge ut etter
249 fjorårets juleinnkjøp, og var villig til å selge for en femtedel av
250 vanlig pris. Jeg, Ronny og Jarle har skaffet oss restbeholdningen, og
251 det blir morsomt å se hva vi får ut av dette.
</p
>
253 <p
>Roboten har belter styrt av to motorer, kamera, høytaler, mikrofon
254 og wifi-tilkobling. Det hele styrt av en GPL-lisensiert databoks som
255 jeg mistenker kjører linux. Firmware-kildekoden ble visst publisert i
256 mai. Eneste utfordringen er at kontroller-programvaren kun finnes til
257 Windows, men det må en kunne jobbe seg rundt når vi har kildekoden til
258 firmwaren. :)
</p
>
261 <li
><a href=
"http://en.wikipedia.org/wiki/Spykee
">Wikipedia-oppføring
</a
></li
>
262 <li
><a href=
"http://www.spykeeworld.com/spykee/US/freeSoftware.html
">Nedlasting av firmware-kilden
</a
></li
>
263 <li
><a href=
"http://wiki.nuug.no/grupper/robot
">prosjektwiki hos NUUG
</a
></li
>