Académique Documents
Professionnel Documents
Culture Documents
If you are using a new Hokuyo sensor model (ex. UST-20LX), use
urg_node. If you are using an older model that has a USB interface, you
will only need the hokuyo_node package.
Connecting the UST-20LX to the Raspberry Pi
• If you are using a Hokuyo Sensor with an Ethernet cable (UST-20LX),
connect it to the Raspberry Pi’s Ethernet port. You will need to edit
“/etc/network/interfaces” and add a static IP address for the eth0
port.
“192.168.0.10” is the default IP address
for the Hokuyo Sensor. So to use a static
IP address to connect with the Raspberry
Pi, use “192.168.0.XX” .
The last two digits should be different
from “10”.
Confirm the connection by pinging the sensor.
$ ping 192.168.9.10
Obtain Data from the Hokuyo Sensor
• Once you have powered the Hokuyo Sensor and properly established
connection to the Raspberry Pi, use urg_node to obtain data from the
Hokuyo Sensor through ROS.
$ rosrun urg_node urg_node _ip_address:=192.168.0.10
• If you cannot connect and get an error message, make sure that you
are connected to the Hokuyo Sensor (ping 192.168.0.10).
Connecting other Hokuyo Models
• If the Hokuyo connects via USB, it should automatically be able to
connect to the Raspberry Pi by just plugging it in.
My sensor test code to obtain the Distance and Intensity of the front of the sensor
is shown in the next slide.
Test Code Output
Other Notes
• If you are using both USB and the Ethernet cable at the same time to
connect to an ip address, one will stop the other. To avoid this, enable
hotplug for both ports in /etc/network/interfaces.
End