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

Cost update in MPPIPlanner._compute_rollout_costs(perturbed_actions) #6

Open
Jerome-Cong opened this issue Dec 24, 2024 · 0 comments
Open

Comments

@Jerome-Cong
Copy link

Hi all,

Thanks for the nice work! I have a question regarding the _compute_rollout_costs() method in the MPPIPlanner class:

        # action perturbation cost
        if self.terminal_state_cost:
            c = self.terminal_state_cost(states, actions)
            cost_samples += c
        cost_total += cost_samples.mean(dim=0)
        
        if self.mppi_mode == 'halton-spline':
            self.noise = self._update_distribution(cost_horizon, actions)

        return cost_total, states, actions

When updating cost_total of K samples, why is the mean over all samples used?

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