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