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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Signal8
3
- Version: 3.6
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, encodes agents and large obstacles
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.6
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
@@ -4,6 +4,7 @@ setup.py
4
4
  Signal8/Signal8.py
5
5
  Signal8/__init__.py
6
6
  Signal8/main.py
7
+ Signal8/signal8.py
7
8
  Signal8.egg-info/PKG-INFO
8
9
  Signal8.egg-info/SOURCES.txt
9
10
  Signal8.egg-info/dependency_links.txt
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="Signal8",
5
- version="3.6",
5
+ version="3.7",
6
6
  packages=find_packages(),
7
7
  author="Ethan Clark",
8
8
  author_email="eclark715@gmail.com.com",
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