Signal8 3.6__tar.gz → 3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Signal8 might be problematic. Click here for more details.
- {Signal8-3.6 → Signal8-3.7}/PKG-INFO +1 -1
- {Signal8-3.6 → Signal8-3.7}/Signal8/utils/simple_env.py +6 -3
- {Signal8-3.6 → Signal8-3.7}/Signal8.egg-info/PKG-INFO +1 -1
- {Signal8-3.6 → Signal8-3.7}/Signal8.egg-info/SOURCES.txt +1 -0
- {Signal8-3.6 → Signal8-3.7}/setup.py +1 -1
- {Signal8-3.6 → Signal8-3.7}/LICENSE +0 -0
- {Signal8-3.6 → Signal8-3.7}/README.md +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/Signal8.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/__init__.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/main.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/utils/__init__.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/utils/core.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/utils/problems.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/utils/scenario.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8/utils/test_dynamic_obs.py +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8.egg-info/dependency_links.txt +0 -0
- {Signal8-3.6 → Signal8-3.7}/Signal8.egg-info/top_level.txt +0 -0
- {Signal8-3.6 → Signal8-3.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Signal8
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.7
|
|
4
4
|
Summary: A multi-agent environment inspired by the Lewis Signaling Game, featuring eight unique problem configurations with both static and dynamic obstacles.
|
|
5
5
|
Home-page: https://github.com/ethanmclark1/signal8
|
|
6
6
|
Author: Ethan Clark
|
|
@@ -74,8 +74,8 @@ class SimpleEnv(AECEnv):
|
|
|
74
74
|
dtype=np.float32,
|
|
75
75
|
)
|
|
76
76
|
|
|
77
|
-
# state space is used by aerial agent
|
|
78
|
-
state_dim = len(world.agents) * 2 + len(world.large_obstacles) * 2
|
|
77
|
+
# state space is used by aerial agent; it encodes the positions of all agents, obstacles, and goals
|
|
78
|
+
state_dim = len(world.agents) * 2 + len(world.large_obstacles) * 2 + len(world.agents) * 2
|
|
79
79
|
self.state_space = spaces.Box(
|
|
80
80
|
low=-np.float32(1),
|
|
81
81
|
high=+np.float32(1),
|
|
@@ -108,10 +108,13 @@ class SimpleEnv(AECEnv):
|
|
|
108
108
|
for i, agent in enumerate(self.world.agents):
|
|
109
109
|
state[2*i : 2*i+2] = agent.state.p_pos
|
|
110
110
|
|
|
111
|
-
# Calculate the starting index for the obstacles in the state array
|
|
112
111
|
start_idx = 2 * len(self.world.agents)
|
|
113
112
|
for i, obstacle in enumerate(self.world.large_obstacles):
|
|
114
113
|
state[start_idx + 2*i : start_idx + 2*i+2] = obstacle.state.p_pos
|
|
114
|
+
|
|
115
|
+
start_idx = 2 * len(self.world.agents) + 2 * len(self.world.large_obstacles)
|
|
116
|
+
for i, agent in enumerate(self.world.agents):
|
|
117
|
+
state[start_idx + 2*i : start_idx + 2*i+2] = agent.goal_a.state.p_pos
|
|
115
118
|
|
|
116
119
|
return np.concatenate(state, axis=None)
|
|
117
120
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Signal8
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.7
|
|
4
4
|
Summary: A multi-agent environment inspired by the Lewis Signaling Game, featuring eight unique problem configurations with both static and dynamic obstacles.
|
|
5
5
|
Home-page: https://github.com/ethanmclark1/signal8
|
|
6
6
|
Author: Ethan Clark
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|