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

Multi-Robot setup and detection #163

Open
wants to merge 13 commits into
base: indigo_dev
Choose a base branch
from
Open
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
232 changes: 232 additions & 0 deletions cob_bringup_sim/config/benchmark_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
# The inflation radius of the paths [float]
inflation_radius: 1.0
# The number of rooms [int]
room_number: 4
# The maximum number of objects to be spawned [float]
max_num_objects: 10
# The rate at which objects are spawned initially in hz [float]
spawn_object_rate: 1
# The rate at which objects are moved during runtime in hz [float]
move_object_rate: 1
# The number of objects that is supposed to be changed per time-step [int]
num_changed_objects: 20
# Specifies in which rooms moving objects will be spawned [list, int]
spawn_moving_objects: [0, 1, 2, 3]

# The paths to the urdf files for the models
models:
box:
package: cob_gazebo_objects
path: objects/box.urdf
column:
package: cob_gazebo_objects
path: objects/column.urdf

# The boundaries of each room
boundaries:
- room: 0
start_x: -19.95
start_y: -10.95
end_x: 1.95
end_y: 12.95
- room: 1
start_x: 2.05
start_y: -10.95
end_x: 27.45
end_y: 12.95
- room: 2
start_x: 2.05
start_y: -34.95
end_x: 27.45
end_y: -11.05
- room: 3
start_x: -19.95
start_y: -34.95
end_x: 1.95
end_y: -11.05

# The dynamic objects and their respective paths
moving_objects:
- room_id: 0
type: column
velocity: 0.8
path_type: polygon
path: [[-13.5, 4.5], [-4.5, 4.5], [-4.5, -4.5], [-13.5, -4.5], [-13.5, 4.5]]
- room_id: 0
type: column
velocity: 0.8
path_type: polygon
path: [[-4.5, 4.5], [-4.5, -4.5], [-13.5, -4.5], [-13.5, 4.5], [-13.5, 4.5]]
- room_id: 0
type: column
velocity: 0.8
path_type: polygon
path: [[-4.5, -4.5], [-13.5, -4.5], [-13.5, 4.5], [-13.5, 4.5], [-4.5, 4.5]]
- room_id: 0
type: column
velocity: 0.8
path_type: polygon
path: [[-13.5, -4.5], [-13.5, 4.5], [-13.5, 4.5], [-4.5, 4.5], [-4.5, -4.5]]
- room_id: 1
type: column
velocity: 0.8
path_type: polygon
path: [[8.5, 4.5], [21.0, 4.5], [21.0, 0.0], [8.5, 0.0], [8.5, 4.5]]
- room_id: 1
type: column
velocity: 0.8
path_type: polygon
path: [[21.0, 4.5], [21.0, -4.5], [8.5, -4.5], [8.5, 4.5], [21.0, 4.5]]
- room_id: 1
type: column
velocity: 0.8
path_type: polygon
path: [[21.0, -4.5], [8.5, -4.5], [8.5, 4.5], [21.0, 4.5], [21.0, 4.5]]
- room_id: 1
type: column
velocity: 0.8
path_type: polygon
path: [[8.5, -4.5], [8.5, 4.5], [21.0, 4.5], [21.0, 4.5], [21.0, -4.5]]
- room_id: 2
type: column
velocity: 0.8
path_type: polygon
path: [[21.0, -28.5], [8.5, -28.5], [8.5, -17.5], [21.0, -17.5], [21.0, -28.5]]
- room_id: 2
type: column
velocity: 0.8
path_type: polygon
path: [[8.5, -28.5], [8.5, -17.5], [21.0, -17.5], [21.0, -28.5], [21.0, -28.5]]
- room_id: 2
type: column
velocity: 0.8
path_type: polygon
path: [[8.5, -17.5], [21.0, -17.5], [21.0, -28.5], [21.0, -28.5], [8.5, -28.5]]
- room_id: 2
type: column
velocity: 0.8
path_type: polygon
path: [[21.0, -17.5], [21.0, -28.5], [21.0, -28.5], [8.5, -28.5], [8.5, -17.5]]
- room_id: 3
type: column
velocity: 0.8
path_type: polygon
path: [[-4.5, -17.5], [-4.5, -28.5], [-13.5, -28.5], [-13.5, -17.5], [-4.5, -17.5]]
- room_id: 3
type: column
velocity: 0.8
path_type: polygon
path: [[-4.5, -28.5], [-13.5, -28.5], [-13.5, -17.5], [-4.5, -17.5],[-4.5, -17.5]]
- room_id: 3
type: column
velocity: 0.8
path_type: polygon
path: [[-13.5, -28.5], [-13.5, -17.5], [-4.5, -17.5],[-4.5, -17.5], [-4.5, -28.5]]
- room_id: 3
type: column
velocity: 0.8
path_type: polygon
path: [[-13.5, -17.5], [-4.5, -17.5],[-4.5, -17.5], [-4.5, -28.5], [-13.5, -28.5]]

# The paths the robot will travel on sorted by room
paths:
room_0:
- start_x: -9.00
start_y: -14.50
end_x: -9.00
end_y: -7.50
- start_x: -16.5
start_y: -7.50
end_x: -1.50
end_y: -7.50
- start_x: -16.5
start_y: -7.5
end_x: -16.5
end_y: 7.5
- start_x: -16.5
start_y: 7.5
end_x: -1.5
end_y: 7.5
- start_x: -1.5
start_y: -7.5
end_x: -1.5
end_y: 7.5
- start_x: -1.5
start_y: 7.5
end_x: 5.5
end_y: 7.5
room_1:
- start_x: -1.5
start_y: 7.5
end_x: 5.5
end_y: 7.5
- start_x: 5.50
start_y: 7.50
end_x: 24.00
end_y: 7.50
- start_x: 24.00
start_y: -7.5
end_x: 24.00
end_y: 7.5
- start_x: 5.50
start_y: -7.50
end_x: 24.00
end_y: -7.50
- start_x: 5.50
start_y: -7.50
end_x: 5.50
end_y: 7.50
- start_x: 14.75
start_y: -14.50
end_x: 14.75
end_y: -7.50
room_2:
- start_x: 14.75
start_y: -14.50
end_x: 14.75
end_y: -7.50
- start_x: 5.50
start_y: -14.50
end_x: 24.00
end_y: -14.50
- start_x: 24.00
start_y: -31.50
end_x: 24.00
end_y: -14.50
- start_x: 5.50
start_y: -31.50
end_x: 24.00
end_y: -31.50
- start_x: 5.50
start_y: -31.50
end_x: 5.50
end_y: -14.50
- start_x: -1.50
start_y: -23.00
end_x: 5.50
end_y: -23.00
room_3:
- start_x: -1.50
start_y: -23.00
end_x: 5.50
end_y: -23.00
- start_x: -1.50
start_y: -31.50
end_x: -1.50
end_y: -14.50
- start_x: -16.50
start_y: -31.50
end_x: -1.50
end_y: -31.50
- start_x: -16.50
start_y: -31.50
end_x: -16.50
end_y: -14.50
- start_x: -16.50
start_y: -14.50
end_x: -1.50
end_y: -14.50
- start_x: -9.00
start_y: -14.50
end_x: -9.00
end_y: -7.50
4 changes: 3 additions & 1 deletion cob_bringup_sim/launch/robot.launch
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<arg name="pkg_gazebo_worlds" default="$(find cob_gazebo_worlds)"/>
<arg name="world_name" default="worlds/empty.world"/>
<arg name="initial_config" default=""/>
<arg name="multi_robot" default="false"/>

<arg name="paused" default="false"/>
<arg name="use_sim_time" default="true"/>
Expand All @@ -26,12 +27,13 @@
</include>

<!-- startup simulated robot -->
<include file="$(find cob_gazebo)/launch/robot.launch" >
<include unless="$(arg multi_robot)" file="$(find cob_gazebo)/launch/robot.launch" >
<arg name="robot" value="$(arg robot)" />
<arg name="robot_env" value="$(arg robot_env)" />
<arg name="pkg_robot_config" value="$(arg pkg_robot_config)" />
<arg name="paused" value="$(arg paused)" />
<arg name="initial_config" value="$(arg initial_config)"/>
<arg name="multi_robot" value="$(arg multi_robot)"/>
</include>

</launch>
Loading