-
Notifications
You must be signed in to change notification settings - Fork 23
Husqvarna HRP Instructions
- Turn ON the HRP: Set the main switch in position 1
- Turn OFF the HRP: Set the main switch in position 0
- Connect the charging station
- On the HRP, set the main switch in position 1
- Place the HRP in the charging station to charge its battery
- Press the red STOP button on top of the HRP
- Pull the HRP out of the charging station
Do not lift the HRP while it is parked in the charging station.
- Press the red STOP button on top of the HRP
- Press the red STOP button on top of the HRP
- Close the lid to reload the STOP button before driving the HRP again
Source: HUSQVARNA AUTOMOWER® 420/430X/450X OPERATOR’S MANUAL
Loop wire: The boundary wire system makes sure the HRP always stays inside its boundaries. By default, the HRP checks for the presence of the loop wire at startup and does not work move without. If you want to disable the loop wire check follow these steps:
- Access the control panel by pressing the STOP button
- Enter the PIN (default is 1111)
- Press the "MENU" button once to access the menu
- Press and hold "7" and "9" simultaneously until a new item pops up in the menu (typically, 2 seconds)
- Press "OK" to access the hidden menu
- Navigate to "Special Settings" and press "OK"
- Press "OK" to select "Override loop detection"
- Press "OK" to confirm this setting
- Press "BACK" multiple times until you are back to the main menu
- Press the "START" button
- Close the lid to reload the STOP button
Connect your PC to the Husqvarna using an ethernet cable.
Open the command line and type
arp -a
this command will print for each network to which you are connected the list of IPs registered on the network. Check under the ethernet connection (it should be identified by the IP 10.42.x.xxx) and identify the only dynamic IP (It could be 10.42.0.1).
-
Type
$ifconfig
on terminal to check the name of your Ethernet connection. Usually it is eth1. -
Type in a terminal
$/sbin/ifconfig eth1 | grep "Bcast" | awk -F: '{print $3}' | awk '{print $1}'
to obtain the broadcast address of the Ethernet connection. (Replace eth1 with the name you obtained from step 1). For example, let the broadcast address output from this step be 10.42.0.255 -
Type
$nmap -n -sP 10.42.0.255/24
in the terminal. Replace 10.42.0.255 with the address obtained from step 2. The first IP is going to be the one of your PC and the second one is the one of the onboard pc (eg., 10.42.0.1)
Now you can SSH into the onboard pc through ethernet using the command:
ssh emarolab@10.42.0.1
the ssh password is "husqvarna". Now on the onboard dash type
ifconfig
and identify the WiFi IP (eg., 130.251.13.113). Terminate the SSH session unplug the ethernet cable an use the identified WiFi IP to start a new SSH session.
- Set up the target computer (i.e., the computer to be connected to the HRP), make sure it has a working ROS installation (http://www.ros.org/)
- Get the package hrp.2015-11-27-11-45.tar.gz from the EMAROlab staff
- Unpack and build the ROS package hrp.2015-11-27-11-45.tar.gz on the target computer
You might need to install some packages if you don't already have them in your computer. Please check below for additional information. - Connect the target computer to the HRP with a USB cable
- Make sure that the
serialPort
andi2cbus
defined in the launch file (am_driver/launch/automower_hrp_tracking.launch
) match those on the target computer - Activate the USB port communication with the command
sudo chmod 666 /dev/ttyACM0
- Run
rosrun am_driver am_driver_node
- Disable the loop wire check (follow the procedure in the related Section)
To teleoperate the HRP using the keyboard, run rosrun am_control key_teleop.py
- go to https://github.com/ros-drivers/nmea_msgs
- download the folder in the
src
folder of yourcatkin
workspace - build the
catkin
workspace
sudo apt-get install libcgal-dev
sudo apt-get install libcgal-demo
sudo apt-get install ros-<version>-controller_manager
sudo apt-get install ros-<version>-gazebo-ros-pkgs ros-<version>-gazebo-ros-control
If you don't have to use the gazebo
model of the HRP, you can remove all am_gazebo_*
folders from the hrp
ROS package.
-
/odom
- position of the HRP given by encoder data -
/loop
- status of boundary loop sensors -
/sensor_status
- status of collision sensors -
/wheel_encoder
- ticks read from the HRP
-
/cmd_vel
- speed to assign to HRP (linear and angular) -
/cmd_mode
- control mode for HRP
This tutorial has been written by Luis Enrique Coronado Zuniga and revised by Anum Rehman and Erjon Hysa.