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

Potential inconsistency in metric and reward computation #3

Open
srama2512 opened this issue May 5, 2021 · 0 comments
Open

Potential inconsistency in metric and reward computation #3

srama2512 opened this issue May 5, 2021 · 0 comments

Comments

@srama2512
Copy link

Why does starting_distance in ObjectGoal_Env includes the object_boundary distance?

self.starting_distance = self.gt_planner.fmm_dist[self.starting_loc]\
/ 20.0 + self.object_boundary
self.prev_distance = self.starting_distance

The shortest path should only reach the object boundary right? Not the object itself. This also propagates into the reward for action 0 since prev_distance includes the object boundary, but curr_distance does not.

self.curr_distance = self.gt_planner.fmm_dist[curr_loc[0],
curr_loc[1]] / 20.0
reward = (self.prev_distance - self.curr_distance) * \
self.args.reward_coeff

The object_boundary should be not be added to starting_distance. Happy to send a PR if this makes sense.

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