Install ROS from here, i.e.:

sudo sh -c 'echo "deb $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
wget -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install ros-indigo-desktop-full
sudo rosdep init
rosdep update

but do not set it to your .bashrc simply source it for now

source /opt/ros/indigo/setup.bash

and finally install

sudo apt-get install python-rosinstall

The next step is to install rosjava in separate workspace according to wiki:

sudo apt-get install ros-indigo-catkin ros-indigo-rospack python-wstool
mkdir -p ~/workspace
wstool init -j4 ~/workspace/src
cd ~/workspace
rosdep update
rosdep install --from-paths src -i -y

Now install the catkin with my custom packages (inspired by this):

source ~/workspace/devel/setup.bash
mkdir -p ~/workspace_devel/src
rosdep update
cd ~/workspace_devel/src
cd ~/workspace_devel/

cd ~/workspace_devel/src
wstool init
wstool merge
wstool update

rosdep install --ignore-src --from-paths ./knowrob

cd ~/workspace_devel
source ~/workspace_devel/devel/setup.bash
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

Finally, append these to the .bashrc (remember to verify the paths including <userName>):

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
source /home/<userName>/workspace_devel/devel/setup.bash
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/

alias rswipl='rosrun rosprolog rosprolog knowrob_cram'

alias rcswipl='rosrun rosprolog rosprolog report_card'
alias mim1='mongoimport --db roslog --collection tf tf.json'
alias mim2='mongoimport --db roslog --collection logged_designators logged_designators.json'
alias makeMe='catkin_make -DCATKIN_WHITELIST_PACKAGES="report_card"'

Now you’re ready to go.

source ~/.bashrc

cd ~/workspace_devel
mkdir data
cd data
mkdir log1
tar -zxvf log-packaged-2014-12-30-16-10-37.tar.gz -C ./log1


cd ~/workspace_devel/data/log1

and load data in Prolog

?- load_experiment('/home/<userName>/workspace_devel/data/log1/cram_log.owl').


To use Real: R interface in Prolog install r-base, r-base-dev and the newest version of SWI-Prolog (tested on 7.2.0) - the one shipped with Ubuntu is too old (6.4.0):

sudo add-apt-repository "deb trusty/“
sudo apt-key adv --keyserver --recv-keys E084DAB9
sudo apt-get update

sudo apt-get install r-base
sudo apt-get install r-base-dev

sudo apt-get install software-properties-common
sudo apt-add-repository ppa:swi-prolog/stable
sudo apt-get update

sudo apt-get install swi-prolog

run SWI-Prolog:


and inside Prolog install Real:

?- pack_install( real ).