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

MapQddotToAcceleration and friends #22630

Open
RussTedrake opened this issue Feb 13, 2025 · 4 comments
Open

MapQddotToAcceleration and friends #22630

RussTedrake opened this issue Feb 13, 2025 · 4 comments
Assignees

Comments

@RussTedrake
Copy link
Contributor

In kinematic trajectory optimization, we currently don't support qdot != v because we don't have MapQddotToAcceleration.

Request:

  • MultibodyPlant::MapQddotToAcceleration()
  • MultibodyPlant::MapAccelerationToQddot()
  • bonus:
    • MultibodyPlant::MakeQddotToAccelerationMap()
    • MultibodyPlant::MakeAccelerationToQddotMap()
@sherm1
Copy link
Member

sherm1 commented Feb 13, 2025

The existing MapQdotToVelocity() and related functions are methods of System (and thus Diagram) so that they can be invoked on a Diagram without having to dig out a MultibodyPlant (MultibodyPlant just implements the underlying virtual).

It would be easiest just to add a local function to MultibodyPlant but nicer to add it at the System level with appropriate overrideable virtuals. WDYT?

@mitiguy
Copy link
Contributor

mitiguy commented Feb 13, 2025

Just to clarify: @sherm1 -- does it make sense to start by adding to MultibodyPlant?

@sherm1
Copy link
Member

sherm1 commented Feb 13, 2025

@mitiguy I think so, since MbP has to implement it anyway even if we add the System virtual. @RussTedrake would users likely have direct access to the MultibodyPlant?

@RussTedrake
Copy link
Contributor Author

In my use case, I do have the MultibodyPlant. I think that's definitely sufficient for now.

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

No branches or pull requests

3 participants