From 5bea6e542ad4e6ef0a71988fb3e8a36880fa545a Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Sun, 27 May 2018 12:26:45 +0200 Subject: [PATCH] fixed a bug in ROS installation, updated README Sourcing .bashrc from install_ros.sh didn't have any effect, since .bashrc needs to be sourced from an interactive shell. Because of this, it was required to restart the terminal for ROS to work. Now, the ROS startup scripts are sourced directly from the installation script, thus eliminating the need to restart the terminal. Added instructions to README to check the installation success. --- README.md | 10 +++++++++- setup/install_ros.sh | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6d2dc0..2d21d51 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,19 @@ sudo apt install git -y ## How to start working +1. Install the software: + ```sh cd ~/Documents git clone https://gitlab.lrz.de/robocupss18-blue3/kick-it.git cd kick-it setup/install_ros.sh setup/install_nao_ros.sh -# Work! ``` + +2. Check if ROS is working properly by typing `roscore` and finishing it with +`ctrl-c` if it doesn't throw errors. + +3. Check if NAOQi binding for Python works by launching Python and running there +`from naoqi import ALProxy`. The installation was successful if it imports +without errors. You can finish Python with `ctrl-d` then. diff --git a/setup/install_ros.sh b/setup/install_ros.sh index c31102a..bd97e8b 100755 --- a/setup/install_ros.sh +++ b/setup/install_ros.sh @@ -24,8 +24,8 @@ sudo rosdep init rosdep update echo "Environment setup" +source /opt/ros/indigo/setup.bash echo "source /opt/ros/indigo/setup.bash" >>${HOME}/.bashrc -source ${HOME}/.bashrc echo "Get rosinstall" sudo apt install python-rosinstall -y