Commit ecd8c958 authored by Ibrahim Ahmed's avatar Ibrahim Ahmed
Browse files

Merge branch 'master' of git.isis.vanderbilt.edu:ahmedi/gazebo

Specify variables for Matlab Gazebo plugin and model repository in
bashrc before setup.sh is run
parents c11fe3de 1837f73e
......@@ -26,10 +26,25 @@ Download the model database to make custom worlds.
git clone https://github.com/osrf/gazebo_models ~/src/
```
Set 2 environment variables (in `.bashrc`):
```
export MATLAB_GAZEBO_PLUGIN= # Path to GazeboPlugin/export/lib/
export GAZEBO_MODELS= # Path to gazebo model database repository
```
Call the setup script:
```
source setup.sh
```
The last 2 steps can be put in the `bashrc` file.
## Gazebo docs
These docs apply to the VM.
These docs apply to the VM. If you are using a custom installation, the paths may vary.
Gazebo variables can be initialized by running `/usr/share/gazebo/setup.sh`. You can add that to your `.bashrc`. Additional variables and plugin paths in this repo can be added to them by running the local [`setup.sh`](./setup.sh) script.
......
......@@ -3,11 +3,19 @@ source /usr/share/gazebo/setup.sh
# https://stackoverflow.com/a/9107028/4591810
SCRIPTPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -z "$MATLAB_GAZEBO_PLUGIN" ]; then
export MATLAB_GAZEBO_PLUGIN=~/src/GazeboPlugin/export/lib/
fi
if [ -z "$GAZEBO_MODEL_REPO" ]; then
export GAZEBO_MODEL_REPO=~/src/gazebo_models/
fi
plugin_dirs=""
for plugin_dir in $SCRIPTPATH/plugins/*/build/
do
plugin_dirs=$plugin_dirs:$plugin_dir
done
export GAZEBO_PLUGIN_PATH=~/src/GazeboPlugin/export/lib/:${plugin_dirs}:${GAZEBO_PLUGIN_PATH}
export GAZEBO_MODEL_PATH=${SCRIPTPATH}/models/:~/src/gazebo_models/:${GAZEBO_MODEL_PATH}
\ No newline at end of file
export GAZEBO_PLUGIN_PATH=${MATLAB_GAZEBO_PLUGIN}:${plugin_dirs}:${GAZEBO_PLUGIN_PATH}
export GAZEBO_MODEL_PATH=${SCRIPTPATH}/models/:${GAZEBO_MODEL_REPO}:${GAZEBO_MODEL_PATH}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment