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.
This commit is contained in:
2018-05-27 12:26:45 +02:00
parent 3600e44115
commit 5bea6e542a
2 changed files with 10 additions and 2 deletions

View File

@@ -11,11 +11,19 @@ sudo apt install git -y
## How to start working ## How to start working
1. Install the software:
```sh ```sh
cd ~/Documents cd ~/Documents
git clone https://gitlab.lrz.de/robocupss18-blue3/kick-it.git git clone https://gitlab.lrz.de/robocupss18-blue3/kick-it.git
cd kick-it cd kick-it
setup/install_ros.sh setup/install_ros.sh
setup/install_nao_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.

View File

@@ -24,8 +24,8 @@ sudo rosdep init
rosdep update rosdep update
echo "Environment setup" echo "Environment setup"
source /opt/ros/indigo/setup.bash
echo "source /opt/ros/indigo/setup.bash" >>${HOME}/.bashrc echo "source /opt/ros/indigo/setup.bash" >>${HOME}/.bashrc
source ${HOME}/.bashrc
echo "Get rosinstall" echo "Get rosinstall"
sudo apt install python-rosinstall -y sudo apt install python-rosinstall -y