-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
992706c
commit b8a648a
Showing
25 changed files
with
608 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
docker/vectordisplay/maps/multienv/multienv.navigation.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"edges": [ | ||
{ | ||
"has_automated_door": false, | ||
"has_door": false, | ||
"has_elevator": false, | ||
"has_stairs": false, | ||
"max_clearance": 1.0, | ||
"max_speed": 2.0, | ||
"s0_id": 0, | ||
"s1_id": 2 | ||
}, | ||
{ | ||
"has_automated_door": false, | ||
"has_door": false, | ||
"has_elevator": false, | ||
"has_stairs": false, | ||
"max_clearance": 1.0, | ||
"max_speed": 2.0, | ||
"s0_id": 0, | ||
"s1_id": 1 | ||
}, | ||
{ | ||
"has_automated_door": false, | ||
"has_door": false, | ||
"has_elevator": false, | ||
"has_stairs": false, | ||
"max_clearance": 1.0, | ||
"max_speed": 2.0, | ||
"s0_id": 1, | ||
"s1_id": 3 | ||
}, | ||
{ | ||
"has_automated_door": false, | ||
"has_door": false, | ||
"has_elevator": false, | ||
"has_stairs": false, | ||
"max_clearance": 1.0, | ||
"max_speed": 2.0, | ||
"s0_id": 2, | ||
"s1_id": 3 | ||
}, | ||
{ | ||
"has_automated_door": false, | ||
"has_door": false, | ||
"has_elevator": false, | ||
"has_stairs": false, | ||
"max_clearance": 1.0, | ||
"max_speed": 2.0, | ||
"s0_id": 0, | ||
"s1_id": 3 | ||
}, | ||
{ | ||
"has_automated_door": false, | ||
"has_door": false, | ||
"has_elevator": false, | ||
"has_stairs": false, | ||
"max_clearance": 1.0, | ||
"max_speed": 2.0, | ||
"s0_id": 2, | ||
"s1_id": 1 | ||
} | ||
], | ||
"nodes": [ | ||
{ | ||
"id": 0, | ||
"loc": { | ||
"x": -11.379310607910156, | ||
"y": 15.17241382598877 | ||
} | ||
}, | ||
{ | ||
"id": 1, | ||
"loc": { | ||
"x": 8.448275566101074, | ||
"y": 15.0 | ||
} | ||
}, | ||
{ | ||
"id": 2, | ||
"loc": { | ||
"x": -8.793103218078613, | ||
"y": -6.724138259887695 | ||
} | ||
}, | ||
{ | ||
"id": 3, | ||
"loc": { | ||
"x": 9.82758617401123, | ||
"y": -8.103448867797852 | ||
} | ||
} | ||
] | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-19.655172, 21.724140, -19.655172, -7.241378 | ||
-19.827587, 22.241381, 13.275863, 22.586208 | ||
13.275863, 22.586208, 13.793104, -5.689654 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/home/rosdev/social_gym | ||
/home/rosdev/social_gym | ||
Name: SuperSuit | ||
Version: 3.9.0 | ||
Summary: Wrappers for Gymnasium and PettingZoo | ||
Home-page: None | ||
Author: None | ||
Author-email: Farama Foundation <contact@farama.org> | ||
License: MIT License | ||
Location: /usr/local/lib/python3.8/dist-packages | ||
Requires: tinyscaler, gymnasium, numpy | ||
Required-by: | ||
Name: pettingzoo | ||
Version: 1.23.1 | ||
Summary: Gymnasium for multi-agent reinforcement learning. | ||
Home-page: None | ||
Author: None | ||
Author-email: Farama Foundation <contact@farama.org> | ||
License: MIT License | ||
Location: /usr/local/lib/python3.8/dist-packages | ||
Requires: gymnasium, numpy | ||
Required-by: | ||
Name: stable-baselines3 | ||
Version: 2.1.0 | ||
Summary: Pytorch version of Stable Baselines, implementations of reinforcement learning algorithms. | ||
Home-page: https://github.com/DLR-RM/stable-baselines3 | ||
Author: Antonin Raffin | ||
Author-email: antonin.raffin@dlr.de | ||
License: MIT | ||
Location: /usr/local/lib/python3.8/dist-packages | ||
Requires: matplotlib, gymnasium, pandas, torch, cloudpickle, numpy | ||
Required-by: sb3-contrib, imitation | ||
Python 3.8.10 | ||
[0m[ INFO] [1693431990.500186587]: Updated sim with live config: Rate=40 incoming rate=40[0m | ||
[0m[ INFO] [1693431990.508012836]: Using default queue size of 10 for publisher queues... [0m | ||
[0m[ INFO] [1693431990.520342905]: Loading scene [/home/rosdev/social_gym/config/gym_gen/scene.xml] for simulation[0m | ||
[0m[ INFO] [1693431990.540756953]: node initialized, now running [0m | ||
Service Mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
<launch> | ||
<arg name="outfile" default="screen" /> | ||
|
||
<node pkg="ut_multirobot_sim" type="simulator_link" name="simulator" cwd="node" | ||
output="screen" | ||
args="-sim_config $(find social_gym)/config/gym_gen/sim_config.lua -scene_config $(find social_gym)/config/gym_gen/scene.xml -speedup_factor 1.0 --localize --use_pedsim" /> | ||
|
||
<group unless="$(optenv DOCKER false)"> | ||
<node pkg="rviz" type="rviz" name="rviz" args="-d $(find ut_multirobot_sim)/visualization.rviz" /> | ||
</group> | ||
|
||
<group ns="camera1"> | ||
<node pkg="tf" type="static_transform_publisher" name="camera_broadcaster" | ||
args="-1 7 12 15 0 0 1 map camera1 10" /> | ||
<node name="camera_info" pkg="rostopic" type="rostopic" | ||
args="pub camera_info sensor_msgs/CameraInfo | ||
'{header: {seq: 0, stamp: {secs: 0, nsecs: 0}, frame_id: 'camera1'}, | ||
height: 480, width: 640, distortion_model: 'plumb_bob', | ||
D: [0], | ||
K: [500.0, 0.0, 320, 0.0, 500.0, 240.0, 0.0, 0.0, 1.0], | ||
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], | ||
P: [500.0, 0.0, 320, 0.0, 0.0, 500, 240, 0.0, 0.0, 0.0, 1.0, 0.0], | ||
binning_x: 0, binning_y: 0, | ||
roi: {x_offset: 0, y_offset: 0, height: 480, width: 640, do_rectify: false}}' -r 2" | ||
output="screen"/> | ||
</group> | ||
|
||
<group ns="rviz1/camera1/image"> | ||
<rosparam param="disable_pub_plugins"> | ||
- 'image_transport/compressed' | ||
- 'image_transport/compressedDepth' | ||
- 'image_transport/theora' | ||
</rosparam> | ||
</group> | ||
|
||
<node pkg="graph_navigation" type="social_nav" name="graph_navigation" output="screen" args="-service_mode=true -map=multienv" /><include file="$(find social_gym)/config/gym_gen/pedsim_launch.launch" /> | ||
|
||
<param name="enable_statistics" value="true" /> | ||
</launch> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<launch> | ||
<arg name="outfile" default="screen" /> | ||
|
||
<node pkg="ut_multirobot_sim" type="simulator_link" name="simulator" cwd="node" | ||
output="screen" | ||
args="-sim_config $(find social_gym)/config/gym_gen/sim_config.lua -scene_config $(find social_gym)/config/gym_gen/scene.xml -speedup_factor 1.0 --localize --use_pedsim" /> | ||
|
||
<node pkg="graph_navigation" type="social_nav" name="graph_navigation" output="screen" args="-service_mode=true -map=multienv" /><include file="$(find social_gym)/config/gym_gen/pedsim_launch.launch" /> | ||
|
||
<param name="enable_statistics" value="true" /> | ||
</launch> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<launch> | ||
<arg name="outfile" default="screen" /> | ||
|
||
<node pkg="ut_multirobot_sim" type="simulator_link" name="simulator" cwd="node" | ||
output="screen" | ||
args="-sim_config $(find ut_multirobot_sim)/config/gym_gen/sim_config.lua -scene_config $(find ut_multirobot_sim)/config/gym_gen/scene.xml -speedup_factor 1.0 --localize --use_pedsim" /> | ||
|
||
<node pkg="rviz" type="rviz" name="rviz" args="-d $(find ut_multirobot_sim)/visualization.rviz" /> | ||
|
||
<node pkg="cpp-pips" type="social_greed" name="social_greed" output="screen" /> | ||
|
||
<node pkg="graph_navigation" type="social_nav" name="graph_navigation" output="screen" | ||
args="-service_mode=true -social_mode=true -map=multienv" /> | ||
|
||
<include file="$(find ut_multirobot_sim)/config/gym_gen/pedsim_launch.launch" /> | ||
|
||
<param name="enable_statistics" value="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
function Vector2(x, y) | ||
return {x = x, y = y} | ||
end | ||
|
||
-- Human shape information | ||
hu_radius = 0.2 | ||
hu_num_segments = 20 | ||
|
||
-- Human speed information | ||
hu_max_speed = 0.8 -- | ||
hu_avg_speed = 0.8 -- | ||
hu_max_omega = 0.2 | ||
hu_avg_omega = 0. | ||
hu_reach_goal_threshold = 0.1 | ||
|
||
-- Human walking mode | ||
local HumanMode = { | ||
Singleshot=0, | ||
Repeat=1, | ||
Controlled=2, | ||
Cycle=3, | ||
} | ||
|
||
hu_mode = HumanMode.Controlled | ||
hu_control_topic = "/command" | ||
|
||
{% for i in range(human_count) %} | ||
hu{{ i }}_waypoints = { | ||
{ {{ human_positions[i][0] }}, {{ human_positions[i][1] }}, {{ human_positions[i][2] }} } | ||
} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<launch> | ||
<arg name="outfile" default="screen" /> | ||
|
||
<group ns="camera1"> | ||
<node pkg="tf" type="static_transform_publisher" name="camera_broadcaster" | ||
args="-1 7 12 15 0 0 1 map camera1 10" /> | ||
<node name="camera_info" pkg="rostopic" type="rostopic" | ||
args="pub camera_info sensor_msgs/CameraInfo | ||
'{header: {seq: 0, stamp: {secs: 0, nsecs: 0}, frame_id: 'camera1'}, | ||
height: 480, width: 640, distortion_model: 'plumb_bob', | ||
D: [0], | ||
K: [500.0, 0.0, 320, 0.0, 500.0, 240.0, 0.0, 0.0, 1.0], | ||
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0], | ||
P: [500.0, 0.0, 320, 0.0, 0.0, 500, 240, 0.0, 0.0, 0.0, 1.0, 0.0], | ||
binning_x: 0, binning_y: 0, | ||
roi: {x_offset: 0, y_offset: 0, height: 480, width: 640, do_rectify: false}}' -r 2" | ||
output="screen"/> | ||
</group> | ||
|
||
<group ns="rviz1/camera1/image"> | ||
<rosparam param="disable_pub_plugins"> | ||
- 'image_transport/compressed' | ||
- 'image_transport/compressedDepth' | ||
- 'image_transport/theora' | ||
</rosparam> | ||
</group> | ||
|
||
<include file="$(find social_gym)/config/gym_gen/pedsim_launch.launch" /> | ||
|
||
|
||
<node pkg="graph_navigation" type="social_nav" name="graph_navigation" output="screen" args="-service_mode=true -map=multienv" /> | ||
<include file="$(find social_gym)/config/gym_gen/pedsim_launch.launch" /> | ||
|
||
<param name="enable_statistics" value="true" /> | ||
|
||
<param name="enable_statistics" value="true" /> | ||
</launch> |
Oops, something went wrong.