Comments (4)
Dear @jfslin
-
The short answer is a "segment" in biorbd is translated into N-Degrees-of-freedom bodies into rbdl. Meaning that you always get as many Bodies as you have degrees of freedom. I therefore suspect you have segments that declares more than one translations or rotations. To get the "segment" value, you simply take the last one for that particular segment. For instance, if your model has 3 segments (all of them declaring 2 rotations), then the AM of the second segment is the 4th row (second being the values for the 1st segment and last being the values for the last segment). This is a bit confusing, but there is no easy workaround for this as sometimes you would need intermediate values.
-
There is no internal way to do that, but you can of course recompute the AM to be evaluated anywhere you want using the parallel axis theorem.
Cheers!
from biorbd.
@pariterre Thank you for the quick response!
- Ah:
mdl = ik.model
mdl.nbQ()
Out[3]: 47
There, that's the 47. Okay. So "segment" in this case is referring to joints/reference frames etc., while nbSegments()
gives me the number of rigid bodies that makes up my model.
- Thanks for including the bit about the parallel axis theorem. I was wondering if that was sufficient. So to recap, I should run
CalcSegmentsAngularMomentum
, keep only the vectors that are at the end of the body's "chain" for the cases of concentric joints, then useCoMbySegment
and the segment masses to move all the individual AMs to the contact point in question via parallel axis theorem.
Perfect. I will get on that. Thank you.
from biorbd.
Yup, sounds good, the only thing about 2) is that you probably willl have to rotate the AM after transporting, unless you want it aligned with the global reference frame!
from biorbd.
Noted. Thanks a lot for your help.
from biorbd.
Related Issues (20)
- anticlockwise rotation in .bioMod HOT 1
- Printing matrices in casadi HOT 2
- getting COM for the whole model HOT 6
- Add ligaments HOT 2
- Choose the muscle characteristic curves instead of a muscle type
- missing euler-cardan sequence yxy HOT 2
- Degree to radian
- Conda install PackagesNotFoundError HOT 3
- Possible to use coordinates of pose estimation with pyomeca? HOT 1
- Issues with the biorbd.model_creation HOT 5
- Create a flag to consider of not the mesh form the model HOT 2
- Declaration LoopConstraint HOT 2
- Constrained EKF HOT 1
- Correct presentation of joint angles from biorbd? HOT 16
- Perform inverse dynamics with IMUs and forces from pressure insoles
- Bug in ID with ExternalForceSet ? HOT 6
- SetLocalJCS crash in biorbd_casadi
- Set Symbolic markers HOT 4
- Bug on musculotendon length HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biorbd.