Skip to content

nix: switch to flakoboros#404

Merged
ManifoldFR merged 1 commit intoSimple-Robotics:mainfrom
nim65s:flakoboros
Apr 18, 2026
Merged

nix: switch to flakoboros#404
ManifoldFR merged 1 commit intoSimple-Robotics:mainfrom
nim65s:flakoboros

Conversation

@nim65s
Copy link
Copy Markdown
Member

@nim65s nim65s commented Apr 17, 2026

lots of clean, and should fix ci

@nim65s
Copy link
Copy Markdown
Member Author

nim65s commented Apr 17, 2026

for the records, this is working with pinocchio 3.

but when I switch to pinocchio 4 I get :

14/17 Test  #4: aligator-test-py-constrained-dynamics ....***Failed    2.20 sec
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-8.4.2, pluggy-1.6.0
rootdir: /build/source
configfile: pyproject.toml
collected 2 items

../../../tests/python/test_constrained_dynamics.py F.                    [100%]

=================================== FAILURES ===================================
_________________________________ test_inv_dyn _________________________________

    def test_inv_dyn():
        model, rcm = createFourBarLinkages()
        data = model.createData()
        rcd = rcm.createData()
        q0 = model.q_init.copy()
        v0 = np.zeros(model.nv)
        nu = model.nv
        B = np.eye(nu)
        tau0, _fc = aligator.underactuatedConstrainedInverseDynamics(
            model, data, q0, v0, B, [rcm], [rcd]
        )
    
        # test the resulting acceleration is zero
        if ALIGATOR_PINOCCHIO_V4:
            pin.initConstraintDynamics(model, data, [rcm], [rcd])
        else:
            pin.initConstraintDynamics(model, data, [rcm])
        prox = pin.ProximalSettings(1e-12, 1e-10, 30)
        a0 = pin.constraintDynamics(model, data, q0, v0, tau0, [rcm], [rcd], prox)
>       assert np.allclose(a0, 0.0)
E       assert False
E        +  where False = <function allclose at 0x7fff53665430>(array([-2.25816088, 13.41048217,  5.02403886]), 0.0)
E        +    where <function allclose at 0x7fff53665430> = np.allclose

../../../tests/python/test_constrained_dynamics.py:205: AssertionError
----------------------------- Captured stdout call -----------------------------
constraint_value: 0.000e+00
constraint_value: 0.000e+00
constraint_value: 0.000e+00
Convergence achieved
=========================== short test summary info ============================
FAILED ../../../tests/python/test_constrained_dynamics.py::test_inv_dyn - ass...
========================= 1 failed, 1 passed in 1.32s ==========================iter─┬───alpha───┬─inner_crit─┬─prim_err──┬─dual_err──┬───preg────┬───cost────┬───dphi0────┬───merit───┬─────ΔM─────┬─aliter─┬───mu───
    11.000e+001.031e+012.364e-021.031e+011.000e-095.718e+00-1.773e+038.362e+01-8.113e+0210.01 
    21.000e+003.816e-025.093e-033.816e-023.333e-104.385e+00-1.567e+026.103e+00-7.752e+0110.01 
    31.000e+007.612e-032.755e-057.612e-031.111e-104.372e+00-8.635e-015.668e+00-4.349e-0120.01 
    41.000e+003.413e-048.026e-103.413e-041.000e-104.372e+00-2.433e-055.667e+00-4.542e-0420.01 
    51.000e-061.350e-058.026e-101.350e-051.000e-104.372e+00-5.944e-115.667e+006.271e-1330.01 
    61.000e-061.350e-058.026e-101.350e-053.333e-104.372e+00-5.944e-115.667e+006.155e-1330.01 
    71.000e-061.350e-058.026e-101.350e-051.111e-094.372e+00-5.944e-115.667e+006.191e-1330.01 
    81.000e-061.350e-058.026e-101.350e-053.704e-094.372e+00-5.942e-115.667e+006.404e-1330.01 
    91.000e-061.350e-058.026e-101.350e-051.235e-084.372e+00-5.938e-115.667e+006.075e-1330.01 
   101.000e-061.350e-058.026e-101.350e-054.115e-084.372e+00-5.923e-115.667e+006.235e-1330.01 
   111.000e-061.350e-058.026e-101.350e-051.372e-074.372e+00-5.873e-115.667e+005.969e-1330.01 
   121.000e-061.350e-058.026e-101.350e-054.572e-074.372e+00-5.714e-115.667e+005.542e-1330.01 
   131.000e-061.350e-058.026e-101.350e-051.524e-064.372e+00-5.245e-115.667e+003.935e-1330.01 
   141.000e-061.350e-058.026e-101.350e-055.081e-064.372e+00-4.139e-115.667e+002.753e-1430.01 
   151.000e+001.350e-052.276e-141.350e-051.694e-054.372e+00-2.468e-115.667e+00-6.726e-0730.01 
Successfully converged

@ManifoldFR
Copy link
Copy Markdown
Member

Unfortunately a known issue :(
Will fix for 0.19.1 if I ever get the time

@ManifoldFR ManifoldFR merged commit 348b466 into Simple-Robotics:main Apr 18, 2026
15 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants