We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2387696 + 9c90de5 commit afa4b87Copy full SHA for afa4b87
examples/sumo_rl_simple.py
@@ -56,7 +56,7 @@ def main():
56
action_id = np.random.choice(result.observation.action_mask)
57
58
# Take action
59
- result = env.step(SumoAction(phase_id=action_id))
+ result = env.step(SumoAction(phase_id=int(action_id)))
60
61
episode_reward += result.reward or 0
62
steps += 1
src/envs/sumo_rl_env/README.md
@@ -220,7 +220,7 @@ for episode in range(10):
220
221
222
223
224
225
226
0 commit comments