visual3d:documentation:kinematics_and_kinetics:exporting_six_degree_of_freedom_data
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:kinematics_and_kinetics:exporting_six_degree_of_freedom_data [2024/07/16 17:02] – removed sgranger | visual3d:documentation:kinematics_and_kinetics:exporting_six_degree_of_freedom_data [2024/07/17 15:45] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Exporting six degree of freedom data ====== | ||
+ | |||
+ | === Exporting 6 DOF Data === | ||
+ | |||
+ | Exporting 6 degree of freedom data to an ASCII format as either an | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | **ORIGIN and QUATERNION**\\ | ||
+ | |||
+ | **OR**\\ | ||
+ | |||
+ | **ORIGIN and 3x3 ROTATION MATRIX** | ||
+ | === Exported File Format === | ||
+ | |||
+ | Visual3D loads 6 degree of freedom from ASCII data files with the following formats. | ||
+ | |||
+ | == Rotation Matrix Based == | ||
+ | |||
+ | | |filename | ||
+ | | |TIME | ||
+ | | |FRAME_NUMBERS|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED| | ||
+ | | |ORIGINAL | ||
+ | |ITEM|0 | ||
+ | |1 | ||
+ | |2 | ||
+ | |||
+ | \\ | ||
+ | The Origin is at the Proximal End of the Segment | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | The Rotation matrix is represented as | ||
+ | |||
+ | | |||0|1|2||| | ||
+ | |[R]=|||3|4|5||| | ||
+ | | |||6|7|8||| | ||
+ | |||
+ | == Quaternion Based == | ||
+ | |||
+ | | |filename | ||
+ | | |TIME | ||
+ | | |FRAME_NUMBERS|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED|LINK_MODEL_BASED| | ||
+ | | |ORIGINAL | ||
+ | |ITEM|0 | ||
+ | |1 | ||
+ | |2 | ||
+ | |||
+ | \\ | ||
+ | The file format is column based. Additional rigid bodies can be added as new columns with the same format. | ||
+ | |||
+ | === Example 1 === | ||
+ | |||
+ | Exporting the position and orientation of segment RFT as an ORIGIN and Quaternion | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | **Export_Data_To_Ascii_File** | ||
+ | ! /FILE_NAME= | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! /END_LABEL= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | **;** | ||
+ | \\ | ||
+ | Exporting the position and orientation of segment RFT as an ORIGIN and Rotation | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | **Export_Data_To_Ascii_File** | ||
+ | ! /FILE_NAME= | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! /END_LABEL= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | **;** | ||
+ | === Example 2 === | ||
+ | |||
+ | Open the text file that was just created. Select File -> Open. Select the viewer for .txt files. Select " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The file will be loaded into memory. The Aurora file contains position and rotation data for a rigid body. It will appear in Visual3D as LINKMODEL_BASED items containing the | ||
+ | |||
+ | ORIGIN (3 components) | ||
+ | QUATERNION (4 components). | ||
+ | {{: | ||
+ | |||
+ | Visual3D typically works with motion capture markers, so to maximize your ability to work with this data, you can create a set of 3 targets per rigid body using the following command. | ||
+ | |||
+ | **Create_Targets_For_LinkModelBased_Rotations** | ||
+ | / | ||
+ | **;** | ||
+ | Targets for each rigid body should appear in the data tree. | ||
+ | |||
+ | It is possible to save this data to a C3D formatted file, but the LINK MODEL data (e.g. the ORIGINAL Translation and Quaternion will be lost, so it is recommended that you save this data to a cmo file. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | If you need a static trial for modeling the data, you can save the first frame of data to a c3d file. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
visual3d/documentation/kinematics_and_kinetics/exporting_six_degree_of_freedom_data.1721149351.txt.gz · Last modified: 2024/07/16 17:02 by sgranger