Skip to content
Discussion options

You must be logged in to vote

Hi @jducrocq007

No worries, even though I'm not a SOFA expert, I'm glad the code I shared can help.
You are right, the position data of a MechanicalObject with template Rigid3d is a position + a quaternion, under the form [x y z qx qy qz qw]. If you use the GUI to visualize your MechanicalObject (or set the data showObject='1' in object definition, like in the example script), you will see a tiny RGB frame which depicts the position and orientation of the rigid body.
With values [0 0 0 0 0 0 1], your object has null translation and null rotation wrt. world frame. If you press A to show the world frame of SOFA, you will see that it coincides with your rigid body. Try [0 0 0 0.707 0 0 0.707] …

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
1 reply
@jducrocq007
Comment options

Comment options

You must be logged in to vote
16 replies
@adkoessler
Comment options

@jducrocq007
Comment options

@jducrocq007
Comment options

@adkoessler
Comment options

Answer selected by hugtalbot
@jducrocq007
Comment options

@jducrocq007
Comment options

@jducrocq007
Comment options

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