Giter Site home page Giter Site logo

Comments (5)

chrisdembia avatar chrisdembia commented on May 18, 2024

Is there a more efficient way to obtain this than:

Vector calc{CoriolisAndCentrifugal,QuadraticVelocity}Forces(const State& s)
{
Vector f_inertal;
smss.calcResidualForce(s, Vector(0), Vector_< SpatialVec >(0), Vector(0), Vector(0), f_inertial)    

Vector f_gravity;
smss.multiplyBySystemJacobianTranspose(s, gravity.getBodyForces(s)), gravityMobilityForces);

return (f_inertial - f_gravity);
}

?

from simbody.

kingchurch avatar kingchurch commented on May 18, 2024

+1. This is super useful to building walking controllers.

from simbody.

chrisdembia avatar chrisdembia commented on May 18, 2024

@sherm1 just told me that this method exists now:
https://github.com/simbody/simbody/blob/master/Simbody/include/simbody/internal/SimbodyMatterSubsystem.h#L2560

It might not be in a released version yet though.

On Fri, Apr 25, 2014 at 6:34 PM, kingchurch [email protected]:

+1. This is super useful to building walking controllers.

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-41453692
.

from simbody.

sherm1 avatar sherm1 commented on May 18, 2024

It is probably this method you want: https://github.com/simbody/simbody/blob/master/Simbody/include/simbody/internal/SimbodyMatterSubsystem.h#L2584

The routine that returns only the Coriolis acceleration is not that useful -- you almost always want the gyroscopic force included as well. I called that "total centrifugal forces" for lack of a better term but it means all the forces that arise just from rotational motion.

That is available in the Simbody 3.4 release which is posted on the release page.

from simbody.

sherm1 avatar sherm1 commented on May 18, 2024

The original topic was to add a routine that would return the rotational forces in internal coordinates directly. I’m still not clear exactly what would be the most clear & efficient form for these methods. I would like to leave the issue open until you are happy with your task space control code.

Please check out the doxygen for the methods calcBiasForSystemJacobian https://simtk.org/api_docs/simbody/api_docs33/Simbody/html/classSimTK_1_1SimbodyMatterSubsystem.html#a43d9b54ce86f55165488b2dd270d5995 (). There is a signature that returns a Vector_ like Force::Gravity does. But this is just the Coriolis acceleration and not the mass-weighted Coriolis force and gyroscopic force so probably isn’t what you want. I would like to make sure the API includes some obvious methods that get all the op space control matrices in a straightforward way.

From: Christopher Dembia [mailto:[email protected]]
Sent: Saturday, April 26, 2014 1:08 PM
To: simbody/simbody
Cc: Michael Sherman
Subject: Re: [simbody] Need a method that returns the coriolis/centrifugal force in internal coordinates (#28)

Does that mean this issue can be closed?

β€”
Reply to this email directly or view it on GitHub #28 (comment) . https://github.com/notifications/beacon/4088016__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxNDE2MjEwOCwiZGF0YSI6eyJpZCI6MTU5ODIxNDV9fQ==--bd3a67f5bc93d3aec3efb0cdc5ae592fc50f71b9.gif

from simbody.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.