Skip to content

bench reports mpc_rollout_ns 0 (optimised away); rollout is candidate selection, not MPC #3

Closed

Description

@SMC17

physkernel bench prints "mpc_rollout_ns":0. The loop calls rolloutPlan with identical, constant inputs 10,000 times, so ReleaseFast hoists or folds the work. The number is not a measurement.

Also, rolloutPlan scores a caller-supplied list of candidate control sequences on a point-mass model and picks the cheapest one that does not collide. That is candidate selection, not an MPC optimiser. Collisions are checked only at step endpoints, so a fast trajectory can tunnel through an obstacle.

Fix: vary the inputs per iteration (or use doNotOptimizeAway on the inputs), and rename the docs accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions