forked from ROS2swarm/ROS2swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_simulation.sh
executable file
·49 lines (46 loc) · 1.67 KB
/
start_simulation.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Copyright 2020 Marian Begemann
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
colcon build --symlink-install --allow-overriding communication_interfaces launch_gazebo ros2swarm&&
source ./install/setup.bash &&
ROS_DOMAIN_ID=42 ros2 launch launch_gazebo create_enviroment.launch.py \
gazebo_world:=arena_large.world \
pattern:=drive_pattern \
number_robots:=2 \
log_level:=info \
robot:=thymio \
sensor_type:=ir
# gazebo_world arena_large.world | arena.world | empty.world | turtle.world | 560x540m.world | Ymaze.world | Ymaze_camber.world | Ymaze_camber_top.world
# pattern: pattern_name
## movement pattern:
# * drive_pattern
# * dispersion_pattern
# * aggregation_pattern
# * attraction_pattern
# * attraction_pattern2
# * magnetometer_pattern
# * minimalist_flocking_pattern
# * rat_search_pattern
# * flocking_pattern
# * flocking_pattern2
# * random_walk_pattern
# * discussed_dispersion_pattern
## voting_pattern:
# * voter_model_pattern
# * voter_model_with_limiter_pattern
# * majority_rule_pattern
# number_robots: num_robots
# log_level: info | DEBUG
# robot: burger | waffle_pi | jackal | thymio
# sensor_type: lidar | ir | ir_tf