Move module#
- class lpcore.move.SingleAxisMovement(devices: dict[str, Any] | None = None, parameters: dict[str, Any] | None = None, child_tasks: dict[str, Task] | None = None, name: str | None = None, *args: Any, **kwargs: Any)[ソース]#
- devices_required: ClassVar[dict[str, Any]] = {'stage': laserprocessing.abc.Stage}#
プロセスが必要とするデバイスを指定する辞書型.
- parameters_required: ClassVar[dict[str, Any]] = {'axis_name': <class 'str'>}#
タスクが必要とするパラメタを指定する辞書型.
- runtime_parameters_required: ClassVar[dict[str, Any]] = {'acceleration': <class 'numbers.Real'>, 'move_mode': typing.Literal['move_to', 'move_by', 'move_to_and_wait', 'move_by_and_wait'], 'position': <class 'numbers.Real'>, 'velocity': <class 'numbers.Real'>}#
タスクの実行に必要なパラメタを指定する辞書型.
- runtime_parameters_optional: ClassVar[dict[str, Any]] = {'log_queue': <class 'collections.deque'>, 'timeout_s': <class 'numbers.Real'>}#
タスクの実行にオプションとして必要なパラメタを指定する辞書型.
- property stage: laserprocessing.abc.Stage#
このプロセスが使用するステージ
- property axis: laserprocessing.abc.StageAxis#
このプロセスが使用するステージの軸
- property is_actively_moving: bool#
ステージの軸が動いているかどうかを返す
- _execute(*args: Any, **kwargs: Any) tuple[TaskStatus, dict[str, Any]][ソース]#
ステージを指定された位置・速度・加速度で移動させる
- パラメータ:
position (numbers.Real) -- 移動先の位置
move_mode (Literal["move_to", "move_by", "move_to_and_wait", "move_by_and_wait"]) -- 移動モード
velocity (numbers.Real) -- 速度
acceleration (numbers.Real) -- 加速度
log_queue (deque, optional) -- 位置をログするためのキュー. Defaults to None.
timeout_s (numbers.Real, optional) -- ログを取得する時間. Defaults to 60.0.
- 戻り値:
タスクのステータス result (dict[str, Any]): 結果.失敗した場合は,"message" キーにエラーメッセージが格納される.
- 戻り値の型:
status (TaskStatus)