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

Extend World Generation with obstacles #118

Open
wants to merge 116 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
5672374
initial unity_simulator structure
TheZomb Oct 26, 2023
c297bdc
Merge pull request #1 from Arena-Rosnav/master
TheZomb Oct 26, 2023
d8f8f57
adds Unity such that Unity starts when selected
TheZomb Oct 26, 2023
d5e4fd4
add wait condition to unity simulator
TheZomb Oct 27, 2023
0970433
Merge branch 'Arena-Rosnav:master' into unity-simulator
TheZomb Oct 31, 2023
b9c426e
partial commit cause too large
TheZomb Nov 1, 2023
8bfd9ca
part commit 2
TheZomb Nov 1, 2023
ee642c9
part commit 3
TheZomb Nov 1, 2023
6f121af
part commit 4
TheZomb Nov 1, 2023
6279b97
git LFS Init
TheZomb Nov 1, 2023
41439cc
big file
TheZomb Nov 1, 2023
55e7e35
big 2
TheZomb Nov 1, 2023
2b5cc77
big 3
TheZomb Nov 1, 2023
15e174e
the rest
TheZomb Nov 1, 2023
2bb2801
only start unity when not already loaded
TheZomb Nov 4, 2023
1370ad4
removes REST ful from Unit7y sim
TheZomb Nov 5, 2023
ed6d107
enables connection between unity<->core
TheZomb Nov 5, 2023
f1dca02
debug of prev
TheZomb Nov 5, 2023
b98eeec
removes comments
TheZomb Nov 5, 2023
f972ffc
extends example services
TheZomb Nov 6, 2023
4a382a0
unity sim
TheZomb Nov 12, 2023
b7a690a
Merge branch 'master' of https://github.com/Arena-Rosnav/arena-rosnav…
TheZomb Nov 12, 2023
45aada5
Merge pull request #3 from TheZomb/Arena-Rosnav-master
TheZomb Nov 12, 2023
765250b
translate coordinates to unity mode
TheZomb Nov 14, 2023
33d29e0
temp change
TheZomb Nov 15, 2023
0a9d9fb
temp change
TheZomb Nov 15, 2023
1c1f7d7
Merge remote-tracking branch 'origin/master' into unity-simulator
TheZomb Nov 21, 2023
af30238
fixes small warning
TheZomb Nov 21, 2023
211db43
Merge branch 'Arena-Rosnav:master' into unity-simulator
TheZomb Nov 24, 2023
9dd5e66
Merge pull request #4 from voshch/map2d3d
TheZomb Nov 26, 2023
f1e71f8
Merge pull request #5 from voshch/pwp-release
TheZomb Nov 28, 2023
4cea17a
styling
TheZomb Dec 5, 2023
6b169df
add/init world_generator plugin
TheZomb Dec 5, 2023
7f968a6
currently not needed files removed
TheZomb Dec 18, 2023
ca78b27
Merge commit '8a6c3a2e911d7d1d4d7e39e18451580032a1fcbc' into unity-si…
TheZomb Dec 18, 2023
b9c2643
Changed coordinates to normal FLU format
MaximilianSchreff Dec 19, 2023
c4551b4
Resolved merge conflicts
MaximilianSchreff Dec 19, 2023
4d76ea4
Mistake when merging
MaximilianSchreff Dec 19, 2023
b530829
Fixed unity simulator
MaximilianSchreff Dec 19, 2023
9755b79
revert style changes for gazebo sim
TheZomb Dec 19, 2023
278dc09
Fixed bug with peds
MaximilianSchreff Dec 20, 2023
bbc5e20
Update .rosinstall for arena-unity
bowski23 Dec 22, 2023
b8ed19f
Merge pull request #106 from bowski23/patch-1
linhdoan8 Dec 22, 2023
1c40eca
Merge pull request #7 from Arena-Rosnav/master
TheZomb Dec 24, 2023
4245c0b
wall spawning
TheZomb Dec 24, 2023
5c0a64a
Merge branch 'unity-simulator' of https://github.com/TheZomb/arena-ro…
TheZomb Dec 24, 2023
29bc196
Merge branch 'unity-simulator' into unity-simulator
TheZomb Dec 24, 2023
29c5c72
Merge pull request #8 from Arena-Rosnav/unity-simulator
TheZomb Dec 24, 2023
2ba8a39
Added removed import
MaximilianSchreff Dec 24, 2023
9df9b6e
Merge pull request #9 from Arena-Rosnav/unity-simulator
TheZomb Dec 26, 2023
8ecc3c3
wall msg type
TheZomb Dec 26, 2023
d75941e
Merge branch 'unity-simulator' of https://github.com/TheZomb/arena-ro…
TheZomb Dec 26, 2023
b33908e
see prev
TheZomb Dec 26, 2023
50460ab
Merge pull request #107 from TheZomb/unity-simulator
MaximilianSchreff Dec 27, 2023
b9ec77c
Merge pull request #10 from Arena-Rosnav/master
TheZomb Dec 29, 2023
9a01dd9
changes
TheZomb Dec 29, 2023
42158d3
Merge branch 'world_generator' of https://github.com/TheZomb/arena-ro…
TheZomb Dec 29, 2023
37dc9c2
remove unneccessary code
TheZomb Jan 1, 2024
f10a7e3
new mapgenerator rosmap that prevents overlapping for now
TheZomb Jan 1, 2024
41c8460
adds /map_obstacles topic
TheZomb Jan 2, 2024
06509e0
clean up pose to position conversion
TheZomb Jan 7, 2024
5bf50ed
Added ROS package for launching unity
MaximilianSchreff Jan 9, 2024
96a7371
Modified unity launch to call unity_launcher package
MaximilianSchreff Jan 9, 2024
da41494
Tidying up
MaximilianSchreff Jan 9, 2024
0a8ef27
Changed comment
MaximilianSchreff Jan 9, 2024
e6e466a
Added arena_sim_setup_path argument to launch
MaximilianSchreff Jan 9, 2024
49c3a5c
Added dev arg to launch
MaximilianSchreff Jan 10, 2024
33fd274
Added dev arg to unity launch
MaximilianSchreff Jan 10, 2024
d243659
Added logic for development mode
MaximilianSchreff Jan 10, 2024
2bc09e8
Debugged and added headless arguments
MaximilianSchreff Jan 10, 2024
36c3abe
Removed logging
MaximilianSchreff Jan 10, 2024
532fdf0
park generation
TheZomb Jan 12, 2024
527a8af
Merge commit 'f215290cd50993ed3c369c1b8d3e143232daf64d' into new_world
TheZomb Jan 12, 2024
a7f5616
wrap up
TheZomb Jan 12, 2024
933ee2f
needed for dynamic Obstacle loading unity
TheZomb Jan 13, 2024
ecba5b1
Merge pull request #115 from MaximilianSchreff/unity-simulator
TheZomb Jan 13, 2024
b9bfed8
Merge remote-tracking branch 'origin/unity-simulator' into new_world
TheZomb Jan 13, 2024
c9a6400
adds canteen dyn map
TheZomb Jan 16, 2024
e591631
debug
TheZomb Jan 16, 2024
72a504d
Merge commit 'c9a640045a7763d7368e124629f540931359c7e3' into new_world
TheZomb Jan 16, 2024
783eb7e
correcting round tables
TheZomb Jan 16, 2024
9cc0525
solve relative path problem
TheZomb Jan 17, 2024
dafcafe
fixes rotation for round table
TheZomb Jan 17, 2024
11138a9
minor rotation change
TheZomb Jan 17, 2024
60ab200
corrects bug in parameterized task
TheZomb Jan 23, 2024
03ef5ec
make it so that others than me can test
TheZomb Jan 23, 2024
2447219
Merge commit '400c24f2d5295f5089a29b8dc8bce40c65eae7a7' into new_worl…
TheZomb Jan 26, 2024
9e5445d
Merge pull request #12 from Arena-Rosnav/master
TheZomb Jan 26, 2024
9f7874c
debugging
TheZomb Jan 26, 2024
db5f4ab
update README
TheZomb Jan 26, 2024
6a6c833
remove old unity build folder
TheZomb Jan 26, 2024
73ee613
removes some unneccessary comments
TheZomb Jan 28, 2024
f319095
create global pose and pos helper function and cleaning
TheZomb Jan 28, 2024
7b04db3
remove a debug setting from before
TheZomb Jan 28, 2024
2f75912
move the scaling from world_manager to map_generator
TheZomb Jan 28, 2024
917fe4a
Merge commit '2f75912940bc6ed9527cb6d5ad827f1da0208b3e' into new_world
TheZomb Jan 28, 2024
6c653af
restructuring
TheZomb Jan 28, 2024
8b1e83f
cleaning
TheZomb Jan 28, 2024
e802f37
generates warehouse
TheZomb Jan 29, 2024
d6fabb8
warehouse params
TheZomb Jan 29, 2024
435ae86
reminder
TheZomb Jan 29, 2024
86ac12b
Merge commit '435ae8698eb79c525e9539653fa8a84d665c4798' into new_world
TheZomb Jan 29, 2024
912dd0a
Merge branch 'master' into new_world
TheZomb Jan 29, 2024
8546885
Merge commit '912dd0ae09d4f67e469c80d1b0de4b91fa0f6edd' into warehouse
TheZomb Jan 29, 2024
9f071da
how tf did this get in here??
TheZomb Jan 29, 2024
9295013
Merge commit '9f071da016af781b8b522776fc7cc5349a850810' into new_world
TheZomb Jan 29, 2024
c2c92f6
add office
TheZomb Feb 2, 2024
63c60fb
office small changes
TheZomb Feb 14, 2024
ba18e13
Merge commit '1ff6d2d3c274c3a48e12cb061073a0b806a1b02b' into warehouse
TheZomb Feb 18, 2024
58bee09
fixes merge errors (some)
TheZomb Feb 18, 2024
9161802
Merge commit '1b2d3e0e79ed5c7c6ca141f783e468c4c596b619' into warehouse
TheZomb Feb 18, 2024
a41e0aa
now runs in 80x80 flatland
TheZomb Feb 22, 2024
cc55627
Merge commit '26a92fcf90932f0f891763624b2be6b01018a266' into warehouse
TheZomb Feb 23, 2024
4dba694
-
TheZomb Feb 25, 2024
ae39472
merge conflicts
TheZomb Feb 25, 2024
77fd0f0
Merge pull request #13 from TheZomb/warehouse
TheZomb Feb 25, 2024
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.resS filter=lfs diff=lfs merge=lfs -text
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ __pycache__/
*.lock
*.bkup
*.log

# Unity Data
utils/misc/unity_simulator/unity_simulator_BurstDebugInformation_DoNotShip/
!**/UnityPlayer.so
6 changes: 5 additions & 1 deletion .repos
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories:
arena/simulation-setup:
type: git
url: https://github.com/Arena-Rosnav/arena-simulation-setup.git
version: f093a8ef
version: 0016e3d379e848d2d7c11bca6447153ca1ba0e80
arena/utils/3rd-party-robot-packages:
type: git
url: https://github.com/Arena-Rosnav/3rd-party-robot-packages
Expand Down Expand Up @@ -47,6 +47,10 @@ repositories:
type: git
url: https://github.com/jackal/jackal.git
version: 85e16bd7b3ea72a4b5a2d3ca8224e056d7ab1c70
extern/ros_tcp_endpoint:
type: git
url: https://github.com/Unity-Technologies/ROS-TCP-Endpoint.git
version: 993d366b8900bf9f3d2da444fde64c0379b4dc7c
planners/all_in_one:
type: git
url: https://github.com/Arena-Rosnav/all_in_one
Expand Down
289 changes: 289 additions & 0 deletions arena_bringup/configs/scenarios/office_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,289 @@
{
"robots": [
{
"start": [24.0, 20.0, 0.7],
"goal": [2.0, 2.0, 0.0]
}
],
"obstacles": {
"static": [
{
"name": "desk1",
"model": "office_desk",
"pos": [8.0, 7.0, 0]
},
{
"name": "chair1",
"model": "office_chair",
"pos": [8.0, 6.2, 4.71]
},
{
"name": "desk1_1",
"model": "office_desk",
"pos": [8.0, 8.0, 3.14]
},
{
"name": "chair1_1",
"model": "office_chair",
"pos": [8.0, 8.9, 1.57]
},

{
"name": "desk2",
"model": "office_desk",
"pos": [11.0, 7.0, 0]
},
{
"name": "chair2",
"model": "office_chair",
"pos": [11.0, 6.2, 4.71]
},
{
"name": "desk2_1",
"model": "office_desk",
"pos": [11.0, 8.0, 3.14]
},
{
"name": "chair2_1",
"model": "office_chair",
"pos": [11.0, 8.9, 1.57]
},

{
"name": "desk3",
"model": "office_desk",
"pos": [14.0, 7.0, 0]
},
{
"name": "chair3",
"model": "office_chair",
"pos": [14.0, 6.2, 4.71]
},
{
"name": "desk3_1",
"model": "office_desk",
"pos": [14.0, 8.0, 3.14]
},
{
"name": "chair3_1",
"model": "office_chair",
"pos": [14.0, 8.9, 1.57]
},

{
"name": "desk4",
"model": "office_desk",
"pos": [17.0, 7.0, 0]
},
{
"name": "chair4",
"model": "office_chair",
"pos": [17.0, 6.2, 4.71]
},
{
"name": "desk4_1",
"model": "office_desk",
"pos": [17.0, 8.0, 3.14]
},
{
"name": "chair4_1",
"model": "office_chair",
"pos": [17.0, 8.9, 1.57]
},

{
"name": "desk5",
"model": "office_desk",
"pos": [20.0, 7.0, 0]
},
{
"name": "chair5",
"model": "office_chair",
"pos": [20.0, 6.2, 4.71]
},
{
"name": "desk5_1",
"model": "office_desk",
"pos": [20.0, 8.0, 3.14]
},
{
"name": "chair5_1",
"model": "office_chair",
"pos": [20.0, 8.9, 1.57]
},








{
"name": "desk6",
"model": "office_desk",
"pos": [8.0, 15.0, 0]
},
{
"name": "chair6",
"model": "office_chair",
"pos": [8.0, 14.2, 4.71]
},
{
"name": "desk6_1",
"model": "office_desk",
"pos": [8.0, 16.0, 3.14]
},
{
"name": "chair6_1",
"model": "office_chair",
"pos": [8.0, 16.9, 1.57]
},



{
"name": "desk7",
"model": "office_desk",
"pos": [11.0, 15.0, 0]
},
{
"name": "chair7",
"model": "office_chair",
"pos": [11.0, 14.2, 4.71]
},
{
"name": "desk7_1",
"model": "office_desk",
"pos": [11.0, 16.0, 3.14]
},
{
"name": "chair7_1",
"model": "office_chair",
"pos": [11.0, 16.9, 1.57]
},

{
"name": "desk8",
"model": "office_desk",
"pos": [14.0, 15.0, 0]
},
{
"name": "chair8",
"model": "office_chair",
"pos": [14.0, 14.2, 4.71]
},
{
"name": "desk8_1",
"model": "office_desk",
"pos": [14.0, 16.0, 3.14]
},
{
"name": "chair8_1",
"model": "office_chair",
"pos": [14.0, 16.9, 1.57]
},

{
"name": "desk9",
"model": "office_desk",
"pos": [17.0, 15.0, 0]
},
{
"name": "chair9",
"model": "office_chair",
"pos": [17.0, 14.2, 4.71]
},
{
"name": "desk9_1",
"model": "office_desk",
"pos": [17.0, 16.0, 3.14]
},
{
"name": "chair9_1",
"model": "office_chair",
"pos": [17.0, 16.9, 1.57]
},

{
"name": "desk10",
"model": "office_desk",
"pos": [20.0, 15.0, 0]
},
{
"name": "chair10",
"model": "office_chair",
"pos": [20.0, 14.2, 4.71]
},
{
"name": "desk10_1",
"model": "office_desk",
"pos": [20.0, 16.0, 3.14]
},
{
"name": "chair10_1",
"model": "office_chair",
"pos": [20.0, 16.9, 1.57]
},

{
"name": "desk11",
"model": "office_desk",
"pos": [23.0, 15.0, 0]
},
{
"name": "chair11",
"model": "office_chair",
"pos": [23.0, 14.2, 4.71]
},
{
"name": "desk11_1",
"model": "office_desk",
"pos": [23.0, 16.0, 3.14]
},
{
"name": "chair11_1",
"model": "office_chair",
"pos": [23.0, 16.9, 1.57]
}
],

"dynamic": [
{
"name": "1",
"pos": [14.0, 2.0, 0.0],
"type": "adult",
"model": "actor1",
"waypoints": [
[2.0, 14.0, 0.0],
[14.0, 2.0, 0.0]
],
"waypoint_mode": 1
},
{
"name": "2",
"pos": [2.0, 8.0, 0.0],
"type": "adult",
"model": "actor1",
"waypoints": [
[8.0, 2.0, 0.0],
[8.0, 2.0, 0.0]
],
"waypoint_mode": 1
},
{
"name": "3",
"pos": [8.0, 2.0, 0.0],
"type": "adult",
"model": "actor1",
"waypoints": [
[2.0, 8.0, 0.0],
[8.0, 2.0, 0.0]
],
"waypoint_mode": 1
}
],
"interactive": []
},
"map": "map_empty"
}
8 changes: 4 additions & 4 deletions arena_bringup/configs/task_generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ STAGED:
RANDOM:
seed: -1
static:
min: 5
max: 10
min: 0
max: 0
models: ["shelf"]
interactive:
min: 0
max: 0
models: ["shelf"]
dynamic:
min: 3
max: 15
min: 1
max: 3
models: ["actor1"]
9 changes: 8 additions & 1 deletion arena_bringup/launch/start_arena.launch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<arg name="model" default="burger" doc="robot model type [burger, jackal, ridgeback, agvota, rto, ...]" />
<arg name="inter_planner" default="bypass" doc="inter planner type [bypass, shortsighted, polite, aggressive, sideways]" />
<arg name="local_planner" default="teb" doc="local planner type [teb, dwa, mpc, rlca, arena, rosnav, cohan]" />
<arg name="simulator" default="flatland" doc="[flatland, gazebo]" />
<arg name="simulator" default="flatland" doc="[flatland, gazebo, unity]" />
<arg name="headless" default="0" doc="0 = show all, 1 = show only rviz, 2 = show nothing" />
<env name="SIMULATOR" value="$(arg simulator)" />
<param name="headless" value="$(arg headless)" />
Expand Down Expand Up @@ -130,6 +130,13 @@
<arg name="headless" value="$(arg headless)" />
</include>

<!-- Unity -->
<arg name="development_mode" default="false" />
<include file="$(find arena_bringup)/launch/testing/simulators/unity.launch" if="$(eval arg('simulator') == 'unity')">
<arg name="development_mode" value="$(arg development_mode)" />
<arg name="headless" value="$(arg headless)" />
</include>

<!-- map server-->
<include file="$(find arena_bringup)/launch/utils/map_server.launch">
<arg name="map_file" value="$(arg map_file)" />
Expand Down
1 change: 0 additions & 1 deletion arena_bringup/launch/start_generate.launch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

<arg name="gui" default="true"/>
<arg name="verbose" default="false"/>
<env name="GAZEBO_MODEL_PATH" value="$(find arena_simulation_setup)/gazebo_models" />

<arg name="world_name" default=""/>

Expand Down
3 changes: 2 additions & 1 deletion arena_bringup/launch/testing/simulators/gazebo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<launch>

<env name="GAZEBO_MODEL_PATH" value="$(find arena_simulation_setup)/worlds/$(arg world)/models" />
<env name="GAZEBO_MODEL_PATH" value="$(find arena_simulation_setup)/entities/obstacles/static" if="$(eval arg('world') == 'dynamic_map')"/>

<arg name="world" default="turtlebot3_house" />
<arg name="model" default="burger"/>
Expand Down Expand Up @@ -33,4 +34,4 @@
<arg name="show_rviz" value="$(arg show_rviz)" />
</include>

</launch>
</launch>
Loading