This page is operated by Locomotec, the official KUKA youBot partner.

Hokuyo Laser Range Finder

Published: January 23, 2012 by Administrator



Short description

The URG-04LX-UG01 is a small and lightweight laser range finder with an approx. maximal scanning distance of 5.6m. It has a scan angle of 240° and can acquire scans with a frequency of 10.0Hz. Further details can be found on http://www.hokuyo-aut.jp/

Installation

The Hokuyo essentially works by sending and receiving commands over the SCIP protocol. The URG-04LX-UG01 has an USB connection, and is treated as a serial device. That means the Linux kernel already provides drivers for such devices. It will be added per default as /dev/ttyACMx whereas x stands for a running number. Further documentation can be found here: http://www.hokuyo-aut.jp/02sensor/07scanner/download/urg_programs_en/index.html

To check if the Hokuyo is found you can type dmseg. You should have something similar like this:

$ dmesg
...
[ 2822.168000] usb 3-1: new full speed USB device using uhci_hcd and address 2
[ 2822.328000] usb 3-1: configuration #1 chosen from 1 choice
[ 2822.440000] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
[ 2822.444000] usbcore: registered new interface driver cdc_acm
[ 2822.444000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/class/cdc-acm.c:
 v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters

 
Usage

The manufacturer of Hokuyo offers a sample application (among others) to check, if the Hokuyo works.
It is called vmon. To use it download the file http://www.hokuyo-aut.jp/02sensor/07scanner/download/data/vmon_linux.zip and follow the install instructions. They can be summarized as follows:

Unpack the archive and go to the vmon linux folder:

$ sudo apt-get install libboost libboost-date_time
$ sudo apt-get install libboost-filesystem libboost-thread libxmu6 libxxf86vm1
$ sudo dpkg -i libscipcomm_0.2_i386.deb vmon_0.2_i386.deb


Start the application by typing:

$ sudo vmon

Finally right click and select Connect and then /dev/ACM0* (assuming the device has number 0).

By default an user application will need root permissions, so you can use sudo (as seen above) or manually set permissions:

$ sudo chmod a+rw /dev/ttyACM0

Instead of setting permissions (each time) of ttyACM* devices a udev rule can be used. To do so create a new group usb and add the user <username> to this group. Of course <username> needs to be replaced by the actual user name of the logged in user, e.g. youbot in case of the default system configuration for the onboard PC of the KUKA youBot.

$ sudo groupadd usb
$ sudo usermod -aG usb <username>


Then create a new udev rule for Hokuyo devices:

$ sudo touch /etc/udev/rules.d/47-hokuyo.rules
                                                    
Add the following line, save and replug:

SUBSYSTEMS=="usb", KERNEL=="ttyACM[0-9]*", ATTRS{manufacturer}=="Hokuyo Data Flex for USB",
ATTRS{product}=="URG-Series USB Driver", MODE="0666", SYMLINK+="sensors/hokuyo"


This udev rule has two effects: a) it always grants correct permissions and b) it creates a constant system link: /dev/sensors/hokuyo which can be used instead of /dev/ttyACM*. The latter one would change each time the Hokuyo is replugged.

NOTE: his behavior might not be intended in case of two or more Hokuyos. A good starting point to add Hokuyo system links with unique IDs can be found here:
http://www.ros.org/wiki/hokuyo_node#Using_udev_to_Give_Hokuyos_Consistent_Device_Names

Support

Reviews


Documentation:
Extensibility:
Intellectual Property Issues:
Modularity:
Packaging:
Portability:
Standards Compliance:
Support:
Verification & Testing:

The above criteria for reusability of software were defined by the

NASA Earth Science Data Systems Software Reuse Working Group (2010).
Reuse Readiness Levels (RRLs), Version 1.0. April 30, 2010.
http://www.esdswg.org/softwarereuse/Resources/rrls/



No reviews found

youBot Hotline

+49 1805 968-268
Quote
You have not chosen any product yet. Visit hardware section to add products.
Recently reviewed
News RSS
KUKA and youBot Store launch an initiative : "Fun in Mobile Manipulation" - Augsburg, February 25, 2013
Research labs interested in organizing a hackathon using a KUKA youBot should contact: hackathon@youBot-Store.com
more ...
RoboCup@Work - German Open 2013, December 11, 2012
Call for Participation http://www.robocupgermanopen.de 26. - 28. April 2013 Magdeburg, Germany
more ...
KUKA youBot @ 5th BRICS Research Camp - Malaga, November 11, 2012
The fifth BRICS research camp took place from Oct. 29th to Nov. 2nd in Motril, Spain. Under the topic "Mobile Manipulation - All in!" the integration of functionalities into a complete mobile manipulation application was elaborated. The transition from classical "sense-plan-act" paradigms to continuously integrated control and perception framed the scientific focus of this camp.
more ...
KUKA youBot Rollout Party IROS 2012 - Vilamoura, October 10, 2012
Thank you for joining us at the KUKA youBot rollout party during IROS 2012 in Vilamoura. The party took place on Oct. 9 at 19:30 in the Crowne Plaza Hotel in Vilamoura in room Sotavento.
more ...