Skip to content

Commit

Permalink
server/client mode + readme fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkoves committed Dec 24, 2016
1 parent 1154c3a commit b21f726
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
9 changes: 7 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@ Project to run multiple px4 SITL with Gazebo on Ubuntu 16.04 (Xenial).
Install
-------

0. git submodule update --init --depth 1
0. git submodule update --init --remote --depth 1

1. cd install
2. sudo ./sudo_deps.sh
3. ./prepare.sh

ROS Kinetic + mavros support
ROS Kinetic + mavros support (if needed)
1. cd mavros/install
2. sudo ./sudo_deps.sh
3. ./prepare.sh


Configure
---------
For running in server+client mode change config.sh and client/gzclient.sh

Run
---

Expand Down
16 changes: 16 additions & 0 deletions client/gzclient.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
### SET YOUR CONFIGURATION ###
#gazebo server ip
GAZEBO_MASTER_IP=...
#our host ip
GAZEBO_IP=...
#path to sitl_gazebo models
MODELS=...


export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:$MODELS

export GAZEBO_MASTER_IP
export GAZEBO_MASTER_URI=$GAZEBO_MASTER_IP:11345
export GAZEBO_IP

gzclient --verbose
6 changes: 5 additions & 1 deletion config.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
GAZEBO_MASTER_IP=127.0.0.1
GAZEBO_IP=127.0.0.1
GAZEBO=gazebo

#in virtual machine or on separate network host
#GAZEBO_MASTER_IP=EXT.ERN.AL.IP
#GAZEBO=gzserver

2 changes: 1 addition & 1 deletion gazebo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:~+/sitl_gazebo/models

export GAZEBO_MASTER_IP
export GAZEBO_MASTER_URI=$GAZEBO_MASTER_IP:11345
export GAZEBO_IP
export GAZEBO_IP=$GAZEBO_MASTER_IP

$GAZEBO --verbose $1 &

0 comments on commit b21f726

Please sign in to comment.