Skip to content
Snippets Groups Projects
Commit 87fa9af0 authored by Simon Wittl's avatar Simon Wittl
Browse files

added header to joint states

parent 5d0a5258
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -3,6 +3,7 @@ from thd_json import thd_joint_states ...@@ -3,6 +3,7 @@ from thd_json import thd_joint_states
from h5schemas.scan_schema import open_schema from h5schemas.scan_schema import open_schema
from h5schemas.initialize_dataset import initialize_dataset from h5schemas.initialize_dataset import initialize_dataset
from h5schemas.joint.add_joint import add_joint_sample from h5schemas.joint.add_joint import add_joint_sample
from h5schemas.header.add_header import add_header_sample, check_uuid_time_stamp
def init_thd_joint_states(h5_file: File | Group): def init_thd_joint_states(h5_file: File | Group):
...@@ -30,8 +31,11 @@ def add_thd_joint_states_sample( ...@@ -30,8 +31,11 @@ def add_thd_joint_states_sample(
slave_joint_a4: float | None = None, slave_joint_a4: float | None = None,
slave_joint_a5: float | None = None, slave_joint_a5: float | None = None,
slave_joint_a6: float | None = None, slave_joint_a6: float | None = None,
table_joint_a1: float | None = None): table_joint_a1: float | None = None,
uuid: str | None = None,
timestamp: int | None = None,):
uuid, timestamp = check_uuid_time_stamp(uuid, timestamp)
add_joint_sample(h5_file["/master_joint_e1"], master_joint_e1) add_joint_sample(h5_file["/master_joint_e1"], master_joint_e1)
...@@ -53,6 +57,7 @@ def add_thd_joint_states_sample( ...@@ -53,6 +57,7 @@ def add_thd_joint_states_sample(
add_joint_sample(h5_file["/table_joint_a1"], table_joint_a1) add_joint_sample(h5_file["/table_joint_a1"], table_joint_a1)
add_header_sample(h5_file["/header"], uuid, timestamp)
if __name__ == "__main__": if __name__ == "__main__":
import numpy as np import numpy as np
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment