Skip to content

position: accept struct array with qpos#6

Merged
kou merged 1 commit into
enactic:mainfrom
kou:position-qpos
Jul 6, 2026
Merged

position: accept struct array with qpos#6
kou merged 1 commit into
enactic:mainfrom
kou:position-qpos

Conversation

@kou

@kou kou commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 6, 2026 02:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates position input handling to support PyArrow StructArray payloads carrying joint positions in a qpos field, aligning it with the existing handling for position_right / position_left.

Changes:

  • Accept pa.StructArray for position inputs and extract qpos before converting to NumPy.
  • Normalize the conversion path by introducing an intermediate value variable for position.

value = value.field("qpos")
last_pos = value.to_numpy(zero_copy_only=False)
last_right_pos = last_pos[:8]
last_left_pos = last_pos[9:]
@kou kou merged commit 7f0b5f8 into enactic:main Jul 6, 2026
4 checks passed
@kou kou deleted the position-qpos branch July 6, 2026 02:34
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