@@ -93,15 +93,15 @@ For this, you can follow the instructions in the [ignition documentation](https:
93
93
Instead of using the garden collection
94
94
95
95
``` Bash
96
- $ wget https://raw.githubusercontent.com/ignition-tooling/gazebodistro/master/collection-garden.yaml
97
- $ vcs import < collection-garden.yaml
96
+ wget https://raw.githubusercontent.com/ignition-tooling/gazebodistro/master/collection-garden.yaml ;
97
+ vcs import < collection-garden.yaml
98
98
```
99
99
100
100
Use this one:
101
101
102
102
``` Bash
103
- $ wget https://raw.githubusercontent.com/Rezenders/bluerov2_ignition/main/garden.repos
104
- $ vcs import < garden.repos
103
+ wget https://raw.githubusercontent.com/Rezenders/bluerov2_ignition/main/garden.repos ;
104
+ vcs import < garden.repos
105
105
```
106
106
107
107
#### Install ardusub
@@ -111,13 +111,13 @@ Instructions can be found [here](https://ardupilot.org/dev/docs/building-setup-l
111
111
The only difference is that is recommend to check out the ArduSub branch
112
112
113
113
``` Bash
114
- $ git clone https://github.com/ArduPilot/ardupilot.git -b Sub-4.1 --recurse-submodules
114
+ git clone https://github.com/ArduPilot/ardupilot.git -b Sub-4.1 --recurse-submodules
115
115
```
116
116
117
117
``` Bash
118
- $ cd ardupilot
119
- $ Tools/environment_install/install-prereqs-ubuntu.sh -y
120
- $ . ~ /.profile
118
+ cd ardupilot ;
119
+ Tools/environment_install/install-prereqs-ubuntu.sh -y ;
120
+ . ~ /.profile
121
121
```
122
122
123
123
If you want to use MAC, follow [ this instruction] ( https://ardupilot.org/dev/docs/building-setup-mac.html )
@@ -127,7 +127,7 @@ If you want to use MAC, follow [this instruction](https://ardupilot.org/dev/docs
127
127
** IMPORTANT:** Clone into the ignition-garden instead of fortress:
128
128
129
129
``` Bash
130
- $ git clone https://github.com/ArduPilot/ardupilot_gazebo -b ignition-garden
130
+ git clone https://github.com/ArduPilot/ardupilot_gazebo -b ignition-garden
131
131
```
132
132
133
133
Install ardupilot_gazebo plugin following the instructions in the [ repo] ( https://github.com/ArduPilot/ardupilot_gazebo/tree/ignition-garden )
@@ -138,67 +138,67 @@ Install ardupilot_gazebo plugin following the instructions in the [repo](https:/
138
138
139
139
Create new workspace:
140
140
``` Bash
141
- $ mkdir -p ~ /tudelft_hackathon_ws/src
142
- $ cd ~ /tudelft_hackathon_ws
141
+ mkdir -p ~ /tudelft_hackathon_ws/src ;
142
+ cd ~ /tudelft_hackathon_ws
143
143
```
144
144
145
145
Clone repos:
146
146
``` Bash
147
- $ wget https://raw.githubusercontent.com/remaro-network/tudelft_hackathon/ros2/hackathon.rosinstall
148
- $ vcs import src < hackathon.rosinstall --recursive
147
+ wget https://raw.githubusercontent.com/remaro-network/tudelft_hackathon/ros2/hackathon.rosinstall ;
148
+ vcs import src < hackathon.rosinstall --recursive
149
149
```
150
150
151
151
Add this to your .bashrc
152
152
``` Bash
153
- export IGN_GAZEBO_RESOURCE_PATH=$HOME /tudelft_hackathon_ws/src/bluerov2_ignition/models:$HOME /tudelft_hackathon_ws/src/bluerov2_ignition/worlds
153
+ export IGN_GAZEBO_RESOURCE_PATH=$HOME /tudelft_hackathon_ws/src/bluerov2_ignition/models:$HOME /tudelft_hackathon_ws/src/bluerov2_ignition/worlds
154
154
155
155
export IGN_GAZEBO_RESOURCE_PATH=$HOME /tudelft_hackathon_ws/src/remaro_worlds/models:$HOME /tudelft_hackathon_ws/src/remaro_worlds/worlds:${IGN_GAZEBO_RESOURCE_PATH}
156
156
```
157
157
158
158
Install deps:
159
159
``` Bash
160
- $ source /opt/ros/foxy/setup.bash
161
- $ rosdep install --from-paths src --ignore-src -r -y
160
+ source /opt/ros/foxy/setup.bash ;
161
+ rosdep install --from-paths src --ignore-src -r -y
162
162
```
163
163
164
164
Build project:
165
165
``` Bash
166
- $ cd ~ /tudelft_hackathon_ws/
167
- $ colcon build --symlink-install
166
+ cd ~ /tudelft_hackathon_ws/ ;
167
+ colcon build --symlink-install
168
168
```
169
169
170
170
## Run it with docker via CLI
171
171
172
172
Create docker network:
173
173
174
174
``` Bash
175
- $ sudo docker network create ros_net
175
+ sudo docker network create ros_net
176
176
```
177
177
178
178
### Run Ignition simulation + ardupilot SITL:
179
179
180
180
If you a NVIDIA GPU:
181
181
``` Bash
182
- $ xhost +local:root
183
- $ sudo docker run -it --rm --name ignition --net ros_net -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --gpus all rezenders/ignition:hackathon-nvidia ros2 launch tudelft_hackathon bluerov_ign_sim.launch.py ardusub:=true mavros_url:=' bluerov:14551'
182
+ xhost +local:root ;
183
+ sudo docker run -it --rm --name ignition --net ros_net -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --gpus all rezenders/ignition:hackathon-nvidia ros2 launch tudelft_hackathon bluerov_ign_sim.launch.py ardusub:=true mavros_url:=' bluerov:14551'
184
184
```
185
185
186
186
If you have an AMD GPU:
187
187
``` Bash
188
- $ xhost +local:root
189
- $ sudo docker run -it --rm --name ignition --net ros_net -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --device=/dev/dri --group-add video rezenders/ignition:hackathon-non-nvidia ros2 launch tudelft_hackathon bluerov_ign_sim.launch.py ardusub:=true mavros_url:=' bluerov:14551'
188
+ xhost +local:root ;
189
+ sudo docker run -it --rm --name ignition --net ros_net -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --device=/dev/dri --group-add video rezenders/ignition:hackathon-non-nvidia ros2 launch tudelft_hackathon bluerov_ign_sim.launch.py ardusub:=true mavros_url:=' bluerov:14551'
190
190
```
191
191
192
192
If you have an Intel GPU:
193
193
``` Bash
194
- $ xhost +local:root
195
- $ sudo docker run -it --rm --name ignition --net ros_net -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --device=/dev/dri:/dev/dri rezenders/ignition:hackathon-non-nvidia ros2 launch tudelft_hackathon bluerov_ign_sim.launch.py ardusub:=true mavros_url:=' bluerov:14551'
194
+ xhost +local:root ;
195
+ sudo docker run -it --rm --name ignition --net ros_net -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix:ro --device=/dev/dri:/dev/dri rezenders/ignition:hackathon-non-nvidia ros2 launch tudelft_hackathon bluerov_ign_sim.launch.py ardusub:=true mavros_url:=' bluerov:14551'
196
196
```
197
197
198
198
### Run bluerov software:
199
199
200
200
``` Bash
201
- $ sudo docker run -it --rm --name bluerov --net ros_net rezenders/ros-foxy-hackathon ros2 launch tudelft_hackathon bluerov_bringup_no_ign.launch.py fcu_url:=udp://:14551@ignition:14555
201
+ sudo docker run -it --rm --name bluerov --net ros_net rezenders/ros-foxy-hackathon ros2 launch tudelft_hackathon bluerov_bringup_no_ign.launch.py fcu_url:=udp://:14551@ignition:14555
202
202
```
203
203
204
204
### Development with docker via cli
@@ -227,13 +227,13 @@ echo "source ~/tudelft_hackathon_ws/install/setup.bash" >> ~/.bashrc
227
227
Don't forget to re-open your terminal after altering the ` ~/.bashrc ` file.
228
228
229
229
``` Bash
230
- $ ros2 launch tudelft_hackathon bluerov_bringup.launch.py simulation:=true ardusub:=true
230
+ ros2 launch tudelft_hackathon bluerov_bringup.launch.py simulation:=true ardusub:=true
231
231
```
232
232
233
233
### Bluerov2
234
234
235
235
``` Bash
236
- $ ros2 launch tudelft_hackathon bluerov_bringup.launch.py simulation:=false
236
+ ros2 launch tudelft_hackathon bluerov_bringup.launch.py simulation:=false
237
237
```
238
238
239
239
## Explanation
0 commit comments