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

Did the halton-spline mode work #4

Open
kkkkkaiai opened this issue May 20, 2024 · 1 comment
Open

Did the halton-spline mode work #4

kkkkkaiai opened this issue May 20, 2024 · 1 comment

Comments

@kkkkkaiai
Copy link

Dear author,

Hello! I have a question for the part of "halton-spline", the code in mppi.py is shown as below.

elif self.mppi_mode == 'halton-spline':
    # shift command 1 time step
    saved_action = self.mean_action[-1]
    self.mean_action = torch.roll(self.mean_action, -1, dims=0)
    self.mean_action[-1] = saved_action
    cost_total = self._compute_total_cost_batch_halton()
      
    action = torch.clone(self.mean_action)

In this part, the final 'action' is given by the mean of 'saved_action', and it only has a 'shift' operation and no other operations.

Is the method work, could you please explain this part. Thanks for your help.

Best wishes

@cpezzato
Copy link

Hi @kkkkkaiai, sorry for the late reply. In case of halton spline sampling, the self.mean_action is updated in _update_distribution.

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

2 participants