<commit_before>TODO: move this code setting somewhere else
=====
Getting the source code
=====

 ``ROSDISTRO_INDEX_URL=https://raw.github.com/strands-project/rosdistro/strands-devel/index.yaml rosinstall_generator strands_desktop --rosdistro indigo --deps --upstream --exclude-path ~/code/ros-install-osx/indigo_desktop_full_ws/src/``

In this case the ``--exclude-path`` is used to ignore packages you already have (e.g. the ones produced by the main ROS installation) and ``--upstream gives`` you git repos where the selected branch is the tagged release, i.e. the most recently released branch. 

The workflow is to use ``rosinstall_generator`` to generate a rosinstall file which is added/merged to a catkin ws using rosws: 
http://wiki.ros.org/wstool







=====
Setting a robot from scratch
=====

Get the code
--------
You have several options how to obtain STRANDS system:
- you can install it via Ubuntu packages
- you can obtain all source code
- you can clone only the repositories which you are interested in 

Basic STRANDS system running
--------
<commit_msg>Update setup_from_scratch.rst<commit_after>TODO: move this code setting somewhere else
=====
Getting the source code
=====

If you want to get all release packages from strands_desktop as source code, you can do it by using``rosinstall_generator`` to generate a rosinstall file which is added/merged to a catkin ws using ``wstool``: 
http://wiki.ros.org/wstool 

 **Note that you need to change address in this example to fit yours.**
 ``ROSDISTRO_INDEX_URL=https://raw.github.com/strands-project/rosdistro/strands-devel/index.yaml rosinstall_generator strands_desktop --rosdistro indigo --deps --upstream --exclude-path ~/code/ros-install-osx/indigo_desktop_full_ws/src/ > ~/strands_ws/strands_desktop.rosinstall``
 
 This creates an installation file for wstool. In this case the ``--exclude-path`` is used to ignore packages you already have (e.g. the ones produced by the main ROS installation) and ``--upstream gives`` you git repos where the selected branch is the tagged release, i.e. the most recently released branch. 
 

=====
Setting a robot from scratch on ROS INDIGO with Ubuntu Trusty
=====

Get the code
--------
You have several options how to obtain STRANDS system:
- you can install it via Ubuntu packages
- you can obtain all source code
- you can clone only the repositories which you are interested in 

Basic STRANDS system running
--------
For this, you need:
- https://github.com/strands-project/scitos_drivers  branch:indigo_devel
- https://github.com/strands-project/scitos_common.git branch:indigo_devel
- https://github.com/strands-project/strands_systems.git branch:indigo_devel
- https://github.com/strands-project/scitos_apps.git branch:hydro_devel
- https://github.com/strands-project/mongodb_store.git branch:hydro_devel!!! (need to change)

{'fraction_non_alphanumeric': 0.1035814606741573, 'fraction_numerical': 0.0, 'mean_word_length': 4.266173752310536, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4303317', 'n_tokens_mistral': 878, 'n_tokens_neox': 795, 'n_words': 314}