no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | installation [2018/10/16 14:58] – [Installation] gkazhoya | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== CRAM installation ====== | ||
+ | |||
+ | ===== Prerequisites ===== | ||
+ | |||
+ | == OS and ROS == | ||
+ | |||
+ | The recommended setup is Ubuntu 16.04 LTS with ROS Kinetic. \\ | ||
+ | This is the setup under which the CRAM team is working and it is best supported. | ||
+ | |||
+ | Most CRAM components should also work on older Ubuntu versions under ROS Indigo etc. but with no guarantee. If you encounter any incompatibilities / bugs, [[/ | ||
+ | |||
+ | If you don't have the latest version of ROS, [[http:// | ||
+ | Don't forget to source the environment setup file and | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo rosdep init | ||
+ | $ rosdep update | ||
+ | </ | ||
+ | |||
+ | == IDE and the interactive shell == | ||
+ | |||
+ | Your chance to get a bit acquainted with Emacs if you've never used it before. | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo apt-get install ros-DISTRO-roslisp-repl | ||
+ | </ | ||
+ | |||
+ | where '' | ||
+ | |||
+ | For information on how to use the IDE check the [[http:// | ||
+ | |||
+ | == ROS workspace management tools == | ||
+ | |||
+ | You will need those for setting up the ROS workspace and checking out code. | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo apt-get install python-rosinstall python-wstool | ||
+ | </ | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | < | ||
+ | If you are new to CRAM and are curious to test the ideas behind it, you can try the [[/ | ||
+ | |||
+ | If you want to see the full power of CRAM, [[/ | ||
+ | |||
+ | Please note that [[/ | ||
+ | If you first tried the minimal version and are now curious to see the full CRAM, please first remove the '' | ||
+ | |||
+ | ==== Minimal installation ==== | ||
+ | |||
+ | This is a guide for installing the core CRAM packages. It installs the prerequisites of [[/ | ||
+ | |||
+ | In the '' | ||
+ | |||
+ | <code bash> | ||
+ | $ git clone https:// | ||
+ | $ git clone https:// | ||
+ | $ rosdep install --ignore-src --from-paths cram_3rdparty cram_core | ||
+ | $ cd .. && catkin_make | ||
+ | </ | ||
+ | |||
+ | Now you just need to [[/ | ||
+ | |||
+ | ==== Full installation ==== | ||
+ | |||
+ | --></ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | This is a guide for installing the main CRAM packages. It covers installing the packages you need to get the system up and running to the point where you can run and test it in a simulation mode. Setting up the system on a real robot is more complex (mostly involving the usual ROS-based platform setup) and is out of scope of this guide. | ||
+ | |||
+ | Nevertheless, | ||
+ | |||
+ | === ROS workspace setup === | ||
+ | |||
+ | Skip this part if you already have a ROS workspace. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | We recommend to create separate chained (overlaid) ROS workspaces for different components to make compilation faster and easier. (KnowRob is partly written in rosjava and if you will have it in the same workspace with another 10 packages its sole presence in the workspace will make the compilation of your 10 packages many times longer.) You can read more on workspace overlaying [[http:// | ||
+ | |||
+ | We recommend to create 3 new workspaces chained as following: | ||
+ | |||
+ | bottom -> knowledge base workspace -> cram workspace -> your cram development or top-level workspace | ||
+ | |||
+ | where bottom is either your current workspace, or if you don't have one, the ROS preinstalled workspace in ''/ | ||
+ | |||
+ | To make sure your bottom workspace exists, execute '' | ||
+ | |||
+ | We create the workspaces in the '' | ||
+ | |||
+ | <code bash> | ||
+ | $ mkdir -p ~/ | ||
+ | $ cd ~/ | ||
+ | $ catkin_make | ||
+ | $ source devel/ | ||
+ | |||
+ | $ mkdir -p ~/ | ||
+ | $ cd ~/ | ||
+ | $ catkin_make | ||
+ | $ source devel/ | ||
+ | |||
+ | $ mkdir -p ~/ | ||
+ | $ cd ~/ | ||
+ | $ catkin_make | ||
+ | $ source devel/ | ||
+ | </ | ||
+ | |||
+ | Now if you execute '' | ||
+ | |||
+ | In any case, don't forget to change the corresponding entry of your '' | ||
+ | |||
+ | <code bash> | ||
+ | source $HOME/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === KnowRob installation === | ||
+ | |||
+ | The knowledge base workspace will be used for installing KnowRob, which is a knowledge management system that CRAM uses for retrieving knowledge mostly about the environment, | ||
+ | |||
+ | <code bash> | ||
+ | $ sudo apt-get install ros-DISTRO-rosjava # where DISTRO is Indigo or Jade etc. | ||
+ | $ rosdep update | ||
+ | $ cd ~/ | ||
+ | $ wstool init | ||
+ | $ wstool merge https:// | ||
+ | $ wstool update | ||
+ | $ rosdep install --ignore-src --from-paths . | ||
+ | $ cd ~/ | ||
+ | $ catkin_make | ||
+ | </ | ||
+ | --></ | ||
+ | |||
+ | |||
+ | |||
+ | If you don't have a ROS workspace, please create one. For example, you can do the following: | ||
+ | |||
+ | <code bash> | ||
+ | $ mkdir -p ~/ | ||
+ | $ cd ~/ | ||
+ | $ catkin_make | ||
+ | $ source devel/ | ||
+ | </ | ||
+ | |||
+ | We create the workspace in the '' | ||
+ | |||
+ | If during '' | ||
+ | Here is a hint: you need to source the ROS environment for '' | ||
+ | |||
+ | <code bash> | ||
+ | $ source / | ||
+ | </ | ||
+ | where '' | ||
+ | |||
+ | Execute these commands and continue from the '' | ||
+ | |||
+ | Now if you execute '' | ||
+ | |||
+ | Don't forget to add the corresponding entry to the bottom of your '' | ||
+ | |||
+ | <code bash> | ||
+ | source $HOME/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | === CRAM and dependencies installation (ROS Kinetic Ubuntu 16.04) === | ||
+ | |||
+ | Check out and compile all the necessary repositories: | ||
+ | |||
+ | <code bash> | ||
+ | $ cd ~/ | ||
+ | $ wstool init | ||
+ | $ wstool merge https:// | ||
+ | $ wstool update | ||
+ | $ touch iai_maps/ | ||
+ | $ cd ~/ | ||
+ | $ rosdep update | ||
+ | $ rosdep install --ignore-src --from-paths src/ | ||
+ | $ catkin_make | ||
+ | </ | ||
+ | |||
+ | Note that the '' | ||
+ | |||
+ | < | ||
+ | Before executing this step you can edit your '' | ||
+ | --></ | ||
+ | |||
+ | If something went wrong consult the [[/ | ||
+ | |||
+ | |||
+ | === CRAM and dependencies installation (ROS Indigo Ubuntu 14.04) === | ||
+ | |||
+ | CRAM uses the newest version of the Lisp compiler which is not available on 14.04. | ||
+ | That is not a problem as we can install it ourselves. | ||
+ | For that please download the SBCL version 1.3.1 from the [[https:// | ||
+ | Then extract the archive (in Nautilus, the file browser, it will be '' | ||
+ | |||
+ | <code bash> | ||
+ | $ cd ~/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | KnowRob seems to have some issues with Java 7, so if the compilation step below complains about rosjava or gradle, [[https:// | ||
+ | --></ | ||
+ | |||
+ | Next step is to check out and compile all the necessary repositories: | ||
+ | |||
+ | <code bash> | ||
+ | $ cd ~/ | ||
+ | $ wstool init | ||
+ | $ wstool merge https:// | ||
+ | $ wstool update | ||
+ | $ cd ~/ | ||
+ | $ rosdep update | ||
+ | $ rosdep install --ignore-src --from-paths src/ | ||
+ | $ catkin_make | ||
+ | </ | ||
+ | |||
+ | Note that the '' | ||
+ | |||
+ | If something went wrong consult the [[/ | ||
+ | |||
+ | |||
+ | ===== Get ready for development ===== | ||
+ | |||
+ | Before you open emacs you might want to configure it, at least set up the clipboard properly to enable copy/paste from/to other apps. That is described in the [[http:// | ||
+ | |||
+ | Open your emacs and wait until "ROS welcomes you": | ||
+ | |||
+ | <code bash> | ||
+ | $ roslisp_repl & | ||
+ | </ | ||
+ | |||
+ | Compiling packages using the ROS build system is not enough for code written in Lisp. To compile the CRAM packages that you want to use in Lisp, type the following in the REPL in your Emacs: | ||
+ | |||
+ | < | ||
+ | , | ||
+ | r-l-s | ||
+ | cram_NAME | ||
+ | RET | ||
+ | </ | ||
+ | where NAME is e.g. '' | ||
+ | |||
+ | You're ready for some awesome programming! We recommend to go through the [[/ | ||