(Hacky version do not use) Add PVAT streaming DoCommand#218
Draft
EshaMaharishi wants to merge 1 commit into
Draft
(Hacky version do not use) Add PVAT streaming DoCommand#218EshaMaharishi wants to merge 1 commit into
EshaMaharishi wants to merge 1 commit into
Conversation
Externally-generated trajex PVATs can now be streamed to the arm without the controller re-planning: open one long-lived trajectory and feed spline points into it incrementally, terminating with a CANCEL. - streaming_trajectory: a third move_command_data alternative holding the declared point budget and a pending deque of spline points. - state_ open/push/close_pvat_stream: open grabs the move slot with a streaming command; push appends points (do_command thread); close requests the terminating CANCEL. pending is pushed/drained under mutex_. - state_controlled_::handle_move_request streaming_trajectory branch: write TRAJECTORY_START once, then writeTrajectorySplinePoint per pending point each worker tick WITHOUT re-issuing START (a second START would kill and restart the robot-side trajectory thread), then CANCEL on close or Stop(). - do_command keys trajex_stream_open / _points / _close, with parse_pva_points decoding [p0..5, v0..5, a0..5, dt] points (radians; dt = per-segment seconds). - is_moving reports true while a stream is open. Builds clean via conan on macOS arm64 (bin/setup.sh + bin/build.sh). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
No description provided.