Skip to content

Potential time-index mismatch in physics integration update (q_{t+3} uses \ddot{q} at t+1) #11

Description

@pluviophile-psv

Hi authors, thank you for releasing this great work and codebase.
I have a question about the physics integration step in models/PhysMoP.py:

motion_pred_physics_pred[:, t+3] = 2*motion_pred_physics_pred[:, t+2] - motion_pred_physics_pred[:, t+1] + pred_q_ddot_physics_pred[:, t+1].clone() * constants.dt**2

According to the Verlet/central-difference scheme ( $q_{k+1} = 2q_k - q_{k-1} + \ddot{q_k} \Delta t^2$ ), the acceleration for $q_{t+3}$ should typically be indexed at $t+2$ instead of $t+1$.
Could you clarify this for me? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions