forked from ROS2swarm/ROS2swarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart_robot.sh
executable file
·29 lines (28 loc) · 1.33 KB
/
start_robot.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
#!/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 &&
source ./install/setup.bash &&
ROS_DOMAIN_ID=42 ros2 launch ros2swarm bringup_robot.launch.py \
pattern:=dispersion_pattern \
log_level:=info \
robot:=waffle_pi \
sensor_type:=lidar \
robot_number:=NUM_CHANGE_ME
# pattern_name:
## movement pattern: drive_pattern | dispersion_pattern | aggregation_pattern | flocking_pattern | flocking_pattern2 | attraction_pattern | attraction_pattern2 | magnetometer_pattern | minimalist_flocking_pattern | discussed_dispersion_pattern | beeclust_pattern
## voting_pattern: voter_model_pattern | voter_model_with_limiter_pattern | majority_rule_pattern
# robot_nummer: num_robots
# robot: waffle_pi | burger | jackal | thymio
# sensor_type: lidar | ir | ir_tf