Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can you ensure that your step reward is the true reward after the action? #55

Open
feiyang-cai opened this issue Jul 18, 2018 · 0 comments

Comments

@feiyang-cai
Copy link

I read your source codes and feel confused with your TorcsEnv.step function.
From line 121 to 124,
# Apply the Agent's action into torcs
client.respond_to_server()
# Get the response of TORCS
client.get_servers_input()
You send the action to the Torcs server first and then get the observations from the torcs instantly, which is used to calculate the reward. However, are you sure the server will respond to the actions before you run "client.get_servers_input()"?

@feiyang-cai feiyang-cai changed the title How can ensure that your step reward is the true reward after the action? How can you ensure that your step reward is the true reward after the action? Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant