There are two ways to setup the Husky software. Either you can do a fresh Ubuntu install using a specially made Clearpath ISO, or you can manually install the software on your Ubuntu machine (The Ubuntu Machine must be at least 16.04 and have apt-get, so Ubuntu Core will not work using this procedure). These instructions will cover both installation instructions.
- Setup your robot PC to with Ubuntu Xenial
- Setup ROS Kinetic
- Setup the Clearpath Robotics packages repository
- Install the Husky packages:
$ sudo apt-get install ros-$ROS_DISTRO-husky-robot
- Install the udev rules that come with Husky:
$ sudo cp $(rospack find husky_bringup)/udev/*.rules /etc/udev/rules.d
- Create a robot-wide setup file, such as /etc/ros/setup.bash (sample below):
# Mark location of self so that robot_upstart knows where to find the setup file.
export ROBOT_SETUP=/etc/ros/setup.bash
# Setup robot upstart jobs to use the IP from the network bridge.
# export ROBOT_NETWORK=br0
# Insert extra platform-level environment variables here. The six hashes below are a marker
# for scripts to insert to this file.
######
# Pass through to the main ROS workspace of the system.
source /opt/ros/kinetic/setup.bash
- Source this robot-wide setup file in your ~/.bashrc file:
source /etc/ros/setup.bash
- Refresh your environment by executing:
$ . ~/.bashrc
- Create a robot_upstart job to start the Husky software each time the robot PC is booted. This command will create the job, and copy the base.launch file to the /etc/ros/kinetic/husky-core.d/ directory:
$ rosrun robot_upstart install husky_base/launch/base.launch --job husky-core --setup '/etc/ros/setup.bash'
- To start launch files for additional standard Husky components, we can augment the husky-core job. Run the following command to add any launch files in the husky_bringup/launch/um6_config/ directory to the job:
$ rosrun robot_upstart install husky_bringup/launch/um6_config --job husky-core --augment
Warning ROS Kinetic is written to run with python 2.7, if you installed Anaconda or have modified your default python settings in some way your computer might try to run this files using python 3. You can check this using the command python --version
-
Download the appropriate Kinetic Husky ISO image for your platform (32 bit - i386, 64 bit - amd64).
-
Setup an install USB
-
Connect your robot PC to wired internet access, a keyboard, and a monitor. Make sure that the PC is connected to shore power, or the Husky battery is either fully charged.
Warning
The next step wipe your robot’s hard drive, so make sure you have that image backed up on another system!
- Boot your robot PC from the USB drive, and let installer work it’s magic.
- The setup process will be automated, and may take a long time depending on the speed of your internet connection.
- Once the setup process is complete, the PC will turn off. Please unplug the USB drive and turn the PC back on.
- On first boot, the username will be administrator and the password will be clearpath.
- Please follow the configuration instructions on the screen. If the computer reboots, wait for the PC to boot to the login screen, and re-enter the login credentials.
- Once the computer configuration is complete, you may use passwd utility to change administrator account password.
- To setup a factory-standard Husky robot, ensure all your peripherals are plugged in, and run the following command:
$ rosrun husky_bringup install
The install script will configure a husky-core upstart service, that will bring up the base Husky launchfiles on boot. The script will also detect any standard peripherals (IMU, GPS, etc.) you have installed, and add them the service.
- To test your configuration, start the background service with the following command:
$ sudo service husky-core start
- The COMM light on your Husky should go from red to green. You can check that the service has started correctly by checking the logs:
$ sudo tail /var/log/upstart/husky-core.log -n 30
- Your husky should now be accepting commands from your joystick. The service will automatically start each time you boot your Husky's PC.
To get diagnostic information on the husky, install rqt by running the following:
- Standard packages (rqt's core library + common plugins) can be installed by:
$ sudo apt-get install ros-%YOUR_ROS_DISTRO%-rqt ros-%YOUR_ROS_DISTRO%-rqt-common-plugins`
- Additionally, you can also install rqt_robot_plugins that provide features to be used when interacting with robots:
$ sudo apt-get install ros-%YOUR_ROS_DISTRO%-rqt-robot-plugins
$ sudo apt-get install ros-%YOUR_ROS_DISTRO%-rqt-pr2-dashboard (only when you need PR2 dashboard feature)
- If you only want to install a specific rqt plugin (rqt_moveit for instance):
$ sudo apt-get install ros-%YOUR_ROS_DISTRO%-rqt-moveit
Once rqt is installed you can activate rqt by running:
$ rosrun rqt_runtime_monitor rqt_runtime_monitor