Robot Teaching Manager
ロボットの現在位置を P 変数として登録・確認し、JSON ファイルで管理する Qt ベースのティーチング GUI です。
バージョン: 0.0.0(初期版)
主な機能
- ロボットの現在位置を取得して表示します。
- P 番号と座標の一覧を表示します。P 番号範囲を指定して読み込めます(Cobotta)。
- 指定した P 番号、または一覧で選択した P 番号に 取得済みの現在位置を書き込みます。書き込み前に確認します。
- 一覧の右クリックメニューから、現在位置の書き込み、 0 クリア、 一覧から削除を実行できます。
- Ctrl/Command による複数行選択と Shift による範囲選択に対応します。0 クリアと一覧から削除は複数行をまとめて操作できます。
- 0 クリアは対象 P 番号を
[0, 0, 0, 0, 0, 0, -1]に設定します。 - JSON ファイルからの読み込み、表示中の一覧の JSON 保存に対応します。
注意: 「空き番号にティーチング」ボタンはありますが、未使用番号の判定仕様が未確定のため、自動登録は実行できません。
デバイスごとの保存先
DeviceProxy に渡す device_name で自動的に切り替わります。名前の比較は CobottaCtrl と完全一致です。
| 操作 | CobottaCtrl |
その他のデバイス名 |
|---|---|---|
| 起動時の P 変数読込 | ロボット内部 P 変数 | JSON ファイル |
| 現在位置の取得 | ロボット API | ロボット API |
| 現在位置の登録 | ロボット内部 P 変数 | JSON に自動保存 |
| 0 クリア | ロボット内部 P 変数 | JSON に自動保存 |
| 一覧から削除 | 表示一覧のみ(実機は変更しない) | 表示一覧と JSON |
| 「JSONに保存」ボタン | 表示一覧を JSON に保存 | 表示一覧を JSON に保存 |
Cobotta の実機 P 変数の変更は JSON に自動保存されません。その他のデバイスでは、P 変数をロボット内部メモリに保存せず、JSON を利用します。 現在位置の取得には、どちらの場合も接続済みのロボットが必要です。
構成
| ファイル | 役割 |
|---|---|
example/teaching_gui.py |
PySide6 の画面・操作・確認ダイアログ |
src/teaching_manager/teaching_controller.py |
デバイス名による保存先選択と操作の振り分け |
src/teaching_manager/teaching_model.py |
P 変数・現在位置・ロボット API・JSON の処理 |
src/teaching_manager/robot_var_manager.py |
ローカル変数管理 |
GUI、Controller、Model を分離した MVC 構成です。
起動と設定
現行の example/teaching_gui.py は PySide6、x_logger、cobotta2 を import
します。これらのパッケージと接続先の設定ファイルを、使用環境に合わせて用意してください。依存関係を宣言するパッケージ設定ファイルは今回の確認対象に含まれていないため、対応バージョンはここでは規定しません。
example/teaching_gui.py の main() で、Config("config_cobotta3_server5.yaml")、device_name = "CobottaCtrl"、
DeviceProxy(...) を設定します。JSON の保存先は同ファイル内の JSON_FILE で、初期値はプロジェクトルートの
robot_positions.json です。P 番号の GUI 入力範囲は 0〜999、起動時の読込範囲の初期値は P0〜P20 です。
プロジェクトルートからの実行例:
python example/teaching_gui.py
ロボット通信が必要な操作は、対応する DeviceProxy とサーバーが利用可能な状態で実行してください。
操作上の注意
- 書き込み・0 クリアは既存の座標を上書きします。確認ダイアログで対象を確認してください。
- Cobotta の「一覧から削除」はロボット内部 P 変数を消去しません。0 クリアとは別操作です。
- JSON 管理モードの「一覧から削除」は JSON にも反映されます。
- ロボットへの書き込み後は P 変数を読み戻して検証します。
- 現在位置の取得中に画面を閉じると、通信スレッドの終了待ちが発生する場合があります。
更新履歴
Metadata
Release files for teaching-manager 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teaching_manager-0.0.0.tar.gz | 16.7 kB | With provenance | Details for teaching_manager-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teaching_manager-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for teaching_manager-0.0.0-py3-none-any.whl |
Total release size: 33.0 kB
Release files / teaching_manager-0.0.0.tar.gz
| Download URL | teaching_manager-0.0.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1cfc46a440f803bd648d0a5285fff7ae0638b87ada758ba8a9daeff2ee23ba8
|
|
BLAKE2b-256 checksum How to use checksums |
45b63f4bd86e9911af8c1f8d6e8485141a34abb9202ecb7b2e2f97d9b937ef67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / teaching_manager-0.0.0-py3-none-any.whl
| Download URL | teaching_manager-0.0.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9c719578e4f7d54a9ca872e194d1ccb95d116efbecc48630279d09c981f24a2
|
|
BLAKE2b-256 checksum How to use checksums |
a10d707f1210d78ec53f0dc8c9dd7c7c3e6e37c88216bb91b020d6dde7ecf53a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for teaching-manager 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for teaching_manager-0.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.