Skip to content

Commit

Permalink
Merge pull request #35 from turtlebot/roni-kreinin/multi_robot
Browse files Browse the repository at this point in the history
Multiple robot support
  • Loading branch information
roni-kreinin authored May 15, 2023
2 parents 05e86c7 + accfba6 commit d23acbc
Show file tree
Hide file tree
Showing 16 changed files with 1,185 additions and 517 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

Turtlebot4 Simulation using Ignition Gazebo.

Visit the [TurtleBot 4 User Manual](https://turtlebot.github.io/turtlebot4-user-manual/software/turtlebot4_packages.html#turtlebot-4-simulator) for details.
Visit the [TurtleBot 4 User Manual](https://turtlebot.github.io/turtlebot4-user-manual/software/turtlebot4_simulator.html) for details.

## Installation
```bash
sudo apt-get update && sudo apt-get install wget
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install ignition-edifice ros-galactic-turtlebot4-simulator ros-galactic-irobot-create-nodes
sudo apt-get install ignition-fortress ros-humble-turtlebot4-simulator
```
123 changes: 62 additions & 61 deletions turtlebot4_ignition_bringup/config/turtlebot4_node.yaml
Original file line number Diff line number Diff line change
@@ -1,62 +1,63 @@
turtlebot4_node:
ros__parameters:
wifi:
interface: "wlan0"

# Supported Functions:
# Dock
# Undock
# Wall Follow Left
# Wall Follow Right
# Power
# EStop

# Menu Functions:
# Scroll Up
# Scroll Down
# Back
# Select
# Help

/**:
turtlebot4_node:
ros__parameters:
wifi:
interface: "wlan0"

# Supported Functions:
# Dock
# Undock
# Wall Follow Left
# Wall Follow Right
# Power
# EStop

# Menu Functions:
# Scroll Up
# Scroll Down
# Back
# Select
# Help

# Buttons:
# create3_1
# create3_power
# create3_2
# hmi_1
# hmi_2
# hmi_3
# hmi_4

# Format:
# button: ["SHORT_PRESS_FUNC", "LONG_PRESS_FUNC", "LONG_PRESS_DURATION_MS"]

buttons:
create3_1: ["Dock", "Wall Follow Left", "2000"]
create3_power: ["EStop", "Power", "3000"]
create3_2: ["Undock", "Wall Follow Right", "2000"]

hmi_1: ["Select"]
hmi_2: ["Back"]
hmi_3: ["Scroll Up"]
hmi_4: ["Scroll Down"]

# Menu entry must match a function
menu:
entries: ["Dock", "Undock", "EStop", "Wall Follow Left", "Wall Follow Right", "Power", "Help"]

# Controller button functions
# Buttons:
# create3_1
# create3_power
# create3_2
# hmi_1
# hmi_2
# hmi_3
# hmi_4

# Format:
# button: ["SHORT_PRESS_FUNC", "LONG_PRESS_FUNC", "LONG_PRESS_DURATION_MS"]

buttons:
create3_1: ["Dock", "Wall Follow Left", "2000"]
create3_power: ["EStop", "Power", "3000"]
create3_2: ["Undock", "Wall Follow Right", "2000"]

hmi_1: ["Select"]
hmi_2: ["Back"]
hmi_3: ["Scroll Up"]
hmi_4: ["Scroll Down"]

# Menu entry must match a function
menu:
entries: ["Dock", "Undock", "EStop", "Wall Follow Left", "Wall Follow Right", "Power", "Help"]

# Controller button functions
# Buttons:
# a b x y
# up down left right
# l1 l2 l3 r1 r2 r3
# share options home

controller:
b: ["EStop"]
a: ["Select"]
x: ["Back"]
up: ["Scroll Up"]
down: ["Scroll Down"]
l2: ["Wall Follow Left"]
r2: ["Wall Follow Right"]
home: ["Dock", "Undock", "3000"]
# a b x y
# up down left right
# l1 l2 l3 r1 r2 r3
# share options home

controller:
b: ["EStop"]
a: ["Select"]
x: ["Back"]
up: ["Scroll Up"]
down: ["Scroll Down"]
l2: ["Wall Follow Left"]
r2: ["Wall Follow Right"]
home: ["Dock", "Undock", "3000"]
1 change: 1 addition & 0 deletions turtlebot4_ignition_bringup/gui/lite/gui.config
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

<!-- Teleop -->
<plugin filename="Teleop">
<topic>/cmd_vel</topic>
<ignition-gui>
<property type="bool" key="showTitleBar">true</property>
<property type="string" key="state">docked</property>
Expand Down
1 change: 1 addition & 0 deletions turtlebot4_ignition_bringup/gui/standard/gui.config
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@

<!-- Teleop -->
<plugin filename="Teleop">
<topic>/cmd_vel</topic>
<ignition-gui>
<property type="bool" key="showTitleBar">true</property>
<property type="string" key="state">docked</property>
Expand Down
Loading

0 comments on commit d23acbc

Please sign in to comment.