Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple robot support #35

Merged
merged 16 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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