Conversation
可視化オブジェクトの有効期限を管理する機能を追加し、 一時的な可視化データの自動削除を実現。 ## 主な変更 ### メッセージ定義 - `SvgLayerUpdate.msg`に`duration`フィールド追加(秒単位、0=無限) ### VisualizerMessageBuilder - `withDuration()`メソッドを追加してdurationを設定可能に - `flush()`時にdurationをメッセージに含める ### Aggregator - `LayerState`構造体を導入し、プリミティブと期限を管理 - 100msタイマーで期限切れレイヤーを自動削除 - スナップショット生成時は有効なレイヤーのみ含める ### デフォルト設定 - SkillInterface: 0.5秒のデフォルトduration - SessionBase: 0.5秒のデフォルトduration ## 効果 - 短命な可視化データ(スキル・セッション)が自動的に消える - メモリ使用量の削減 - 表示の整理 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Contributor
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
可視化オブジェクトの有効期限を管理する機能を追加し、一時的な可視化データ(スキル・セッション)の自動削除を実現しました。
主な変更
メッセージ定義
SvgLayerUpdate.msg:float64 durationフィールドを追加VisualizerMessageBuilder (
crane_msg_wrappers)withDuration(double seconds)メソッド: durationを設定可能にflush(): durationをメッセージに含めて送信double duration = 0.0(デフォルトは無限)Aggregator (
crane_visualization_aggregator)LayerState構造体: プリミティブ配列と期限時刻を管理update.duration > 0なら現在時刻 + durationを期限として設定デフォルト設定
crane_robot_skills/skill_base.hpp): 0.5秒crane_sessions/session_base.hpp): 0.5秒アーキテクチャ
効果
テスト計画
関連PR
🤖 Generated with Claude Code