Add thing_state metadata
This commit is contained in:
parent
63d7a6eb4d
commit
e82acf2941
1 changed files with 10 additions and 1 deletions
|
|
@ -187,3 +187,12 @@ class CameraStageMapper(Thing):
|
||||||
np.array(self.image_to_stage_displacement_matrix)
|
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
|
||||||
|
),
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue