habitat.tasks.nav.nav.DistanceToGoalReward class

The measure calculates a reward based on the distance towards the goal. The reward is - (new_distance - previous_distance) i.e. the decrease of distance to the goal.

Methods

def get_metric(self)
def reset_metric(self, episode, task, *args: typing.Any, **kwargs: typing.Any)
def update_metric(self, episode, task: core.embodied_task.EmbodiedTask, *args: typing.Any, **kwargs: typing.Any)

Special methods

def __init__(self, sim: core.simulator.Simulator, config: DictConfig, *args: typing.Any, **kwargs: typing.Any)

Data

cls_uuid: str = 'distance_to_goal_reward'

Method documentation

def habitat.tasks.nav.nav.DistanceToGoalReward.get_metric(self)

Returns the current metric for Measure.