Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download and install Kvaser linuxcan (SDK) (NOTE: This step is only required on releases before v2.0.0 unless you plan to use Kvaser linuxcan instead of SocketCAN):
    1. Download from the Kvaser Downloads page.
      1. For Ubuntu 14.04 (Trusty Tahr), download version 5.14.0.
      2. For Ubuntu 16.04 (Xenial Xerus), download the latest version.
    2. The file linuxcan.tar.gz should end up in your ~/Downloads directory. If you downloaded to another location, modify the commands below accordingly.

      Code Block
      languagebash
      themeMidnight
      linenumberstrue
      cd /usr/src
      sudo mv ~/Downloads/linuxcan.tar.gz .
      sudo tar xvf linuxcan.tar.gz
      cd linuxcan
      sudo make
      sudo make install

      If you have a Kvaser PCIe card, you will also need to do the following:

      Code Block
      languagebash
      themeMidnight
      linenumberstrue
      gksudo gedit /etc/modules

      Add pciefd on a new line at the end of this file then save and close.

    3. Reboot your machine.
  2. Download and install prerequisites and the Driver Pack.
    1. The driver pack relies on the can_msgs package for underlying communication.


      1. To download on Ubuntu 14.04: Note: may need to run out

        Code Block
        languagebash
        themeMidnight
        linenumberstrue
        sudo apt-get install ros-indigo-can-msgs


      2. To download on Ubuntu 16.04:

        Code Block
        languagebash
        themeMidnight
        linenumberstrue
        sudo apt install ros-kinetic-can-msgs


    2. You will need to get the download link for the Driver Pack from AutonomouStuff support. If you have purchased hardware that requires an AutonomouStuff binary ROS driver and you did not receive the Binary Driver Pack, please contact support@autonomoustuff.com.
    3. Once downloaded, it is assumed that the file will be in your ~/Downloads directory. If you downloaded to another location, modify the commands below accordingly.

      Code Block
      languagebash
      themeMidnight
      linenumberstrue
      cd ~
      mv ~/Downloads/as_drivers_*.tar.gz .
      tar xvf as_drivers_*.tar.gz


    4. Source the new workspace:

      Code Block
      languagebash
      themeMidnight
      linenumberstrue
      echo "source ~/as_drivers/install/setup.bash" >> ~/.bashrc
      source ~/.bashrc


  3. Configure other workspaces to work with the Driver Pack.
    1. If you have other ROS workspaces, you will need to make the as_drivers workspace the lowest level in your workspace chain. For more information on workspace chaining, see this article on the ROS Wiki.

...