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 | ||
exporting_six_degree_of_freedom_data [2024/06/18 20:19] – sgranger | exporting_six_degree_of_freedom_data [2024/07/12 13:25] (current) – removed sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{{{{{{{==== 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 " | ||
- | |||
- | mergeaurorafiles4.gif | ||
- | |||
- | 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). | ||
- | mergeaurorafiles5.gif | ||
- | |||
- | 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. | ||
- | |||
- | mergeaurorafiles7.gif | ||
- | |||
- | if you need a static trial for modeling the data, you can save the first frame of data to a c3d file. | ||
- | |||
- | mergeaurorafiles8.gif | ||
- | |||
- | |||
- | }}}}}}}} |
exporting_six_degree_of_freedom_data.1718741941.txt.gz · Last modified: 2024/06/18 20:19 by sgranger