Skip to content

Conversation

@jorisv
Copy link
Contributor

@jorisv jorisv commented Nov 20, 2025

Description

When a frame have inertia and a non null transformation, appendModel algorithm was doing some wrong computation to compute joint inertia of the new transform.

Close #2805

TODO

  • Fix AppendJointOfModelAlgoTpl
  • Fix appendUniverseToModel
  • Check if there is an issue with eometry

Checklist

  • I have run pre-commit run --all-files or pixi run lint
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have made corresponding changes to the doxygen documentation
  • I have added tests that prove my fix or feature works
  • I have updated the CHANGELOG or added the "no changelog" label if it's a CI-related issue
  • I have updated the README credits section

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Hi,
This is a reminder message to assign an extra build label to this Pull Request if needed.
By default, this PR will be build with minimal build options (URDF support and Python bindings)
The possible extra labels are:

  • build_collision (build Pinocchio with coal support)
  • build_casadi (build Pinocchio with CasADi support)
  • build_autodiff (build Pinocchio with CppAD support)
  • build_codegen (build Pinocchio with CppADCodeGen support)
  • build_extra (build Pinocchio with extra algorithms)
  • build_mpfr (build Pinocchio with Boost.Multiprecision support)
  • build_sdf (build Pinocchio with SDF parser)
  • build_accelerate (build Pinocchio with APPLE Accelerate framework support)
  • build_all (build Pinocchio with ALL the options stated above)

Thanks.
The Pinocchio development team.

@martisalcedo7
Copy link

Shouldn't this be changed as well in the appendUniverseToModel() method?

@jorisv
Copy link
Contributor Author

jorisv commented Nov 20, 2025

@martisalcedo7 I'm currently looking at it but frame with inertia attached to universe is kind of weird. Do you see an use case of it ?

@martisalcedo7
Copy link

@martisalcedo7 I'm currently looking at it but frame with inertia attached to universe is kind of weird. Do you see an use case of it ?

It is weird but it can be there. We have to make sure this inertia is not given to the body with addFrame(), therefore the argument append_inertia should be set to false.

@jorisv
Copy link
Contributor Author

jorisv commented Nov 20, 2025

Ok, after discussion it can model the inertia of the base of a manipulator.

@jorisv jorisv force-pushed the topic/repro-append-model-issue branch from 72f323d to 3d8f92a Compare November 20, 2025 15:07
@martisalcedo7
Copy link

Can we also apply the fix here for the geometric bodies?

They are expressed with respect to the frames, not with respect to the joints, so this transformation is wrong. It was also shown in the issue.

In the function appendUniverseToModel()

go.placement = (pframe.placement * pfMAB) * go.placement;

@jorisv
Copy link
Contributor Author

jorisv commented Nov 20, 2025

As said in the issue I'm waiting to have an example to reproduce it.

@martisalcedo7
Copy link

As said in the issue I'm waiting to have an example to reproduce it.

I am working on that.

@martisalcedo7
Copy link

It was a bug in our side. Please omit this geometry problem.

@JTem
Copy link

JTem commented Nov 21, 2025

i also confirm, ignore the geometry issue

jcarpent
jcarpent previously approved these changes Nov 21, 2025
EtienneAr
EtienneAr previously approved these changes Nov 21, 2025
@jorisv jorisv dismissed stale reviews from EtienneAr and jcarpent via 0d16150 November 24, 2025 15:28
@jorisv jorisv force-pushed the topic/repro-append-model-issue branch from 60b1b7b to 0d16150 Compare November 24, 2025 15:28
@jorisv jorisv enabled auto-merge November 24, 2025 16:42
@jorisv jorisv merged commit acdb445 into stack-of-tasks:devel Nov 25, 2025
43 checks passed
@jorisv jorisv deleted the topic/repro-append-model-issue branch November 25, 2025 08:20
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.

modelAppend with URDF-Submodel with fixed Joints

5 participants