Signal8 1.4__tar.gz → 1.5__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-1.4 → Signal8-1.5}/PKG-INFO +1 -1
- {Signal8-1.4 → Signal8-1.5}/Signal8/Signal8.py +3 -3
- {Signal8-1.4 → Signal8-1.5}/Signal8.egg-info/PKG-INFO +1 -1
- {Signal8-1.4 → Signal8-1.5}/setup.py +1 -1
- {Signal8-1.4 → Signal8-1.5}/LICENSE +0 -0
- {Signal8-1.4 → Signal8-1.5}/README.md +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8/__init__.py +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8/main.py +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8/utils/__init__.py +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8/utils/core.py +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8/utils/problems.py +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8/utils/scenario.py +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8/utils/simple_env.py +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8.egg-info/SOURCES.txt +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8.egg-info/dependency_links.txt +0 -0
- {Signal8-1.4 → Signal8-1.5}/Signal8.egg-info/top_level.txt +0 -0
- {Signal8-1.4 → Signal8-1.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Signal8
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5
|
|
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
|
|
@@ -83,7 +83,7 @@ class Scenario(BaseScenario):
|
|
|
83
83
|
if agent.adversary:
|
|
84
84
|
agent.color = np.array([0.5, 0, 0])
|
|
85
85
|
agent.state.p_vel = np.zeros(world.dim_p)
|
|
86
|
-
agent.state.p_pos = np_random.uniform(*zip(*world.
|
|
86
|
+
agent.state.p_pos = np_random.uniform(*zip(*world.dynamic_obstacle_constr[(i+1) % len(world.dynamic_obstacle_constr)]))
|
|
87
87
|
agent.action_callback = self.get_scripted_action
|
|
88
88
|
else:
|
|
89
89
|
agent.color = np.array([0, 0.8, 0])
|
|
@@ -114,7 +114,7 @@ class Scenario(BaseScenario):
|
|
|
114
114
|
world.static_obstacle_constr = problem['static_obs']
|
|
115
115
|
|
|
116
116
|
if world.dynamic_obstacles:
|
|
117
|
-
world.
|
|
117
|
+
world.dynamic_obstacle_constr['dynamic_obs']
|
|
118
118
|
|
|
119
119
|
# Get scripted action for adversarial agents s.t. they move in a straight line along their constraint
|
|
120
120
|
def get_scripted_action(self, agent, world):
|
|
@@ -148,4 +148,4 @@ class Scenario(BaseScenario):
|
|
|
148
148
|
else: # Otherwise, follow the direction of velocity
|
|
149
149
|
action.u[1] = np.sign(agent.state.p_vel[1])
|
|
150
150
|
|
|
151
|
-
return action
|
|
151
|
+
return action
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: Signal8
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5
|
|
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
|