[Fedora Robotics] unified robots udev and policykit rules package

Martin Langhoff martin at laptop.org
Wed Feb 2 22:29:10 UTC 2011


At OLPC, we are looking at controlling a variety of devices: lego nxt,
lego wedo, gogo boards, arduino boards, scratch boards. These normally
connect via USB and are accessible via a devnode. Some of them can be
controlled by more than one software package.

For starters, you need a udev rule assigning the devnode to a group.
In these modern desktop times, you also want a PolicyKit "ACL" rule so
that the "user currently logged in at the current console" can control
the robot, without further complications.

So for example, the lego NXT robots can be controlled by nbc, or by
nxt_python. Currently nxt_python packs a udev rule, but this is bound
to complicates interaction with nbc if nbc packs the same.

This could be split to a single-robot-type package with a single udev
(and I hope PK) rule. However, I think the best solution is to have a
"robot-control" package that creates a group ("robot-control"?) and
udev and PK rules that match all the supported robot models.

thoughts?


m
--
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the robotics mailing list