Repository navigation
docs(client): correct affect() note on which commands run in simulation - #42
rishabh-bansal wants to merge 1 commit into
Conversation
The note said locomotion, flight and catalog commands are live-only and raise NotSimulatedError in any simulation runtime, and named twin.locomote/twin.flying, which don't exist. Locomotion and flight methods are marked SimLevel.PLAYGROUND and run in every sim runtime (as docs/overview/features/simulation.mdx already says); catalog commands follow their delegate or the controller policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for contributing to the Cyberwave Python SDK, @rishabh-bansal! Maintainer contacts: @KhushiSharma22. When this PR is ready, we request a maintainer review and run an automated advisory review. CI and human review remain the source of truth. Please describe what changed and how you tested it. See the contribution guide or ask for help on Discord. Drafts are welcome. Merged human contributions receive a Discord thank-you. To opt out, check the PR template's Discord opt-out box or add |
|
Slack team notifications
|
Automated advisory review · ClaudeCommit: The patch modifies only the docstring for the `affect` method in `cyberwave/client.py`. It updates the description of which locomotion/flight commands run in simulation versus raise `NotSimulatedError`. No executable code is changed in the supplied patch excerpt. One concrete concern is identifiable from the docstring change alone: the new text contradicts what the previous note said, and the direction of the change could mislead callers into attempting commands in simulation that will raise `NotSimulatedError` at runtime. However, without access to the actual runtime guard logic or the rest of `client.py`, it is not possible to confirm whether the new docstring accurately reflects behavior or introduces a documentation-driven regression. No behavioral bugs are directly introduced by this patch as supplied.
Coverage: 1 of 1 changed files; patch excerpts only. Generated REST code, lockfiles, notebooks, SVGs, missing patches and files beyond the 40-file / 60,000-character budget are excluded. GitHub may truncate individual patches. |
What changed and why?
The
Cyberwave.affect()docstring says:That doesn't match the code, and
twin.locomote/twin.flyingdon't exist (they'retwin.locomotion/twin.flight):@simulation_level(SimLevel.PLAYGROUND), soTwin._ensure_simulation_supportallows them in every sim runtime.twin.takeoff(),move_forward()andturn_left()on adji/tellotwin worked for me in both"playground"and MuJoCo.command_factory._catalog_command_sim_level), and only otherwise isUNSUPPORTED.docs-mintlify/overview/features/simulation.mdxalready says these work in any sim runtime.The note now describes that behaviour. Docstring only; no code change.
How did you test it?
Checked against
twin/simulation_support.py,Twin._ensure_simulation_support(twin/base.py) andtwin/command_factory.py, and against real flights of adji/tellotwin in Playground and MuJoCo (cyberwave 0.7.5). No tests needed for a docstring.Contributor checklist
Recognition
🤖 Generated with Claude Code