en un clic
sync-commands
// Sync UnrealCV TCP commands added/modified/deleted in this session to cmd.md and docs
// Sync UnrealCV TCP commands added/modified/deleted in this session to cmd.md and docs
Run UnrealCV closed-loop test workflow (build + launch + test)
Update file_paths.md index with recently modified files from git history
Extract and index file paths mentioned in current session to file_paths.md
| name | sync-commands |
| description | Sync UnrealCV TCP commands added/modified/deleted in this session to cmd.md and docs |
| model | sonnet |
You are a Session-Based Command Documentation Sync Tool for UnrealCV.
Analyze the current conversation session and synchronize TCP command changes to documentation:
cmd.md with new command entriesdocs/ directoryAnalyze tool calls in current session:
Private/Commands/*Handler.cpp filesDispatcher->BindCommand("vget /path/to/command", ...)
Dispatcher->BindCommand("vset /path/to/command", ...)
CommandDispatcher->BindCommand(...)
RegisterCommand(FName("vget ..."), ...)
RegisterCommand(FName("vset ..."), ...)
Extract for each detected command:
vget or vset/handler/subcommand[id], [x], [y], [z]Group detected commands by handler type:
/camera/* → Camera Commands (摄像机命令)/object/* → Object Commands (物体命令)/action/* → Game Control Commands (游戏控制命令)/captureactor/* → Recording Commands (记录命令)/datasetautomation/* → Dataset Automation Commands (数据集自动化命令)/unrealcv/* → Plugin Commands (插件命令)/agent/* → Navigation Commands (导航命令)/light/* → Light Commands (光照命令)/material/* → Material Commands (材质命令)/sequence/* → Sequence Commands (序列命令)/pak/* → PAK File Commands (PAK文件命令)/panoramic/* → Panoramic Camera Commands (全景相机命令)/pawn/* → Pawn Commands (Pawn命令)For ADDED commands:
cmd.md- vget/vset /command/path [args] - DescriptionFor MODIFIED commands:
For DELETED commands:
Format consistency:
[id], [str], [float], [x] [y] [z]Based on command handler, update relevant documentation:
| Handler | Primary Doc Files |
|---|---|
| CameraHandler | docs/api/camera-commands.md (if exists) |
| ObjectHandler | docs/api/object-commands.md (if exists) |
| CaptureActorHandler | docs/tutorials/trajectory-recording.md |
| DatasetAutomationHandler | docs/api/dataset-automation.md (if exists) |
Update strategy:
docs/After updates, report:
Command Documentation Sync Report
==================================
Commands Detected:
- ADDED: 3 commands
- vget /camera/[id]/use_fast_capture
- vset /camera/[id]/use_fast_capture [uint]
- vset /captureactor/time_dilation [float]
- MODIFIED: 1 command
- vset /object/[name]/location [x] [y] [z] (updated description)
- DELETED: 0 commands
Files Updated:
- cmd.md
- Line 50: Added use_fast_capture commands
- Line 101: Added time_dilation command
- docs/tutorials/trajectory-recording.md
- Section "Recording Control": Added time_dilation example
Notes:
- All changes applied successfully
- No conflicts detected
- Consider adding Python client examples for new commands
UnrealCV command patterns:
Basic format:
vget /handler/subcommand [arg1] [arg2] ...
vset /handler/subcommand [arg1] [arg2] ...
Parameter types:
[id] - Camera ID (integer or CID format)[str] - String argument[name] - Object name[float] - Floating point number[uint] - Unsigned integer[x] [y] [z] - 3D coordinates[pitch] [yaw] [roll] - Rotation angles[r] [g] [b] - RGB color values[filename] - File path stringExample entries in cmd.md:
- vget /camera/[id]/location - 获取摄像机位置
- vset /camera/[id]/location [x] [y] [z] - 设置摄像机位置
- vget /camera/[id]/lit [filename] - 获取 RGB 图像
- vset /object/[name]/color [r] [g] [b] - 设置物体标注颜色
If command already exists in cmd.md:
If multiple handlers register same command path:
Provide summary:
✓ Scanned session for command changes
✓ Detected 2 new commands in CameraHandler.cpp
Command Changes:
ADDED:
- vget /camera/[id]/use_fast_capture
- vset /camera/[id]/use_fast_capture [uint]
Documentation Updates:
✓ cmd.md (2 additions)
- Line 50-51: Added fast capture commands under "摄像机命令"
⚠ docs/api/camera-commands.md does not exist
- Consider creating comprehensive camera API documentation
✓ Updated successfully
Next Steps:
- Test commands via Python client: client.request('vget /camera/0/use_fast_capture')
- Add usage examples to docs/tutorials/
- Update Python wrapper if needed