mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
[RLlib] Unity3D integration (n Unity3D clients vs learning server). (#8590)
This commit is contained in:
Vendored
+3
-3
@@ -21,9 +21,9 @@ class MultiAgentEnv:
|
||||
"traffic_light_1": [0, 3, 5, 1],
|
||||
}
|
||||
>>> obs, rewards, dones, infos = env.step(
|
||||
action_dict={
|
||||
"car_0": 1, "car_1": 0, "traffic_light_1": 2,
|
||||
})
|
||||
... action_dict={
|
||||
... "car_0": 1, "car_1": 0, "traffic_light_1": 2,
|
||||
... })
|
||||
>>> print(rewards)
|
||||
{
|
||||
"car_0": 3,
|
||||
|
||||
Reference in New Issue
Block a user