Add thing_state metadata

This commit is contained in:
Richard Bowman 2023-09-04 11:43:32 +01:00
parent 63d7a6eb4d
commit e82acf2941

View file

@ -186,4 +186,13 @@ class CameraStageMapper(Thing):
np.array([y, x]),
np.array(self.image_to_stage_displacement_matrix)
)
stage.move_relative(x=relative_move[0], y=relative_move[1])
stage.move_relative(x=relative_move[0], y=relative_move[1])
@property
def thing_state(self) -> dict:
"""Summary metadata describing the current state of the Thing"""
return {
"image_to_stage_displacement_matrix": (
self.image_to_stage_displacement_matrix
),
}