Skip to content

feat: Robotics mcap インポートパイプライン追加#278

Open
rikunosuke wants to merge 5 commits into
mainfrom
feature/robotics-pipeline
Open

feat: Robotics mcap インポートパイプライン追加#278
rikunosuke wants to merge 5 commits into
mainfrom
feature/robotics-pipeline

Conversation

@rikunosuke

Copy link
Copy Markdown
Contributor

概要

Robotics 向けの mcap zip ファイルインポート機能を追加します。

変更内容

  • import_robotics_mcap(project, task_id, file_path)Client に追加
    • signed URL を取得して zip をアップロードし、バッチインポートをトリガーする3ステップのパイプライン
    • .zip 拡張子以外は FastLabelInvalidException を送出
  • 内部メソッド _start_pipeline / _upload_zip_with_signed_url / _trigger_batch_import を追加
  • import-pipeline 系エンドポイントを data-lake/robotics/ 配下に変更
  • signed-url レスポンスを dict 形式(url キー)に対応
  • Api.get_request の戻り値型に str を追加

テスト

  • 未実施

🤖 Generated with Claude Code

rikunosuke and others added 4 commits June 15, 2026 18:16
- import-pipeline 系エンドポイントを data-lake/robotics/ 配下に変更
- signed-url レスポンスを dict 形式 (url キー) に対応

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
signed-url レスポンスを dict で扱うよう変更したため、str は不要

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@yo-tak yo-tak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

今回、非同期処理なのでこのAPI実行直後はインポート処理は終わってないと思いますが、進捗状況取得APIのようなものはないですよね?
そういったAPIがないのは単純に未開発なので良いと思いますが、進捗の確認方法(直接画面から確認かなと思います)は README.md あたりに記載した方が良いかと!

Comment thread README.md Outdated

Import an mcap zip file into an existing robotics task.

This method starts an import pipeline, uploads the zip file via a signed URL, and triggers the batch import.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大した事項ではないんですが、このAPIを使うユーザーにとってimport pipelinesigned URLの存在って重要でしょうか?
ユーザーが意識することではないのであれば、そこは省いても良いかなと(むしろ書いてあるとそのURL使ってなんかやる必要あるんだっけ?となってしまいそう)思います。

むしろ、この処理が同期なのか非同期なのかを明記した方が良いかなと思います。triggers the batch importで察することはできるかもしれませんが、そのbatch importを待って result が返ってくるのかどうかは分からないので。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yo-tak
readme の文言を修正しました!

内部実装の signed URL / pipeline の記述を削除し、処理が非同期である
ことと import 履歴画面で状態を確認する旨を追記

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rikunosuke rikunosuke requested a review from yo-tak June 22, 2026 05:59

@yo-tak yo-tak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正済みの文章良いと思います、ありがとうございます!
もう一箇所だけ対応お願いします 🙏

@@ -0,0 +1,19 @@
"""
Import an mcap zip file into an existing FastLabel robotics task.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このファイルの説明文も d446c4d に合わせた内容に変更をお願いします!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants