# ReconCell software installation manual ## Installing robot-side scripts The ReconCell is robot agnostic, meaning it can be used with robots from different manufacturers. In order for the robots to receive commands, a small local script must be running on the robot controller. The instructions for installing the scripts on different robots are described in the following sections. ### Universal Robot UR10, UR5, UR3 1. Please insert the USB stick with the Universal Robot Script Software into the robot controller as seen in this figure. ![Robot controller with USB](usb.jpg) 2. A prompt window will pop up to tell you the installation procedure is in progress 3. A notification window will pop up to tell you the installation is done Please repeat this procedure for both robots in the workcell. This installs a UDP-TCP converter and the ReconCell.script. ## Installing Simulink Real-time Server The real-time server boots off a USB stick with the SLRT Software on it. Insert the USB stick in the real time machine and make sure the computer boots off the stick. Each robot has its own USB stick with individual parameters defining the name and address of each robot. It is recommended to keep this USB stick in the computer at all times in case the server must be restarted. ## Installing the Master computer A master computer is responsible for running the ROS core and standard ReconCell packages. As of writing, the current version requires an Ubuntu Xenial 16.04 LTS with ROS Kinetic. In order to install the standard packages follow this procedure: * Make sure you have ssh installed: ``` $ sudo apt install openssh-server ``` * Obtain an SSH key that will allow you to access the repo (repo.ijs.si). The key must be in your user's .ssh folder ``` $ cd && cd .ssh ``` * Create a catkin directory with the appropriate structure: ``` $ mkdir -p catkin_ws/src ``` * In your catkin `src` directory, clone the repository: ``` $ git clone git@repo.ijs.si:reconcell/reconcell.git ``` * Use `wstool` to get all of the other dependencies: ``` $ wstool init $ wstool merge reconcell/dependencies.rosinstall $ wstool up ``` The cloned dependencies should show up in your `src` directory. * Query and install all libraries and packages: ``` $ rosdep install --from-paths . --ignore-src --rosdistro kinetic ``` * Catkin build: ``` $ cd .. $ catkin build ``` ## Network setup In order for ReconCell smart modules to function properly over ROS network, the hostnames of the modules must be successfully resolved. This is achieved by installing a DNS server on the Master computer Alternatively one can modify hosts files on all computers in the network with proper names and IPs.