Skip to content

[pydrake] Honor None action/observation spaces in DrakeGymEnv - #24935

Open
castor639 wants to merge 1 commit into
RobotLocomotion:masterfrom
castor639:gymenv-none-spaces
Open

[pydrake] Honor None action/observation spaces in DrakeGymEnv#24935
castor639 wants to merge 1 commit into
RobotLocomotion:masterfrom
castor639:gymenv-none-spaces

Conversation

@castor639

@castor639 castor639 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

When action_space or observation_space is None and the corresponding port is vector-valued, build a gym.spaces.Box of the port size with ±infinity bounds, matching the documented API. Non-vector ports still require an explicit Space.


This change is Reviewable

When action_space or observation_space is None and the corresponding
port is vector-valued, build a gym.spaces.Box of the port size with
±infinity bounds, matching the documented API. Non-vector ports still
require an explicit Space.
@ggould-tri ggould-tri added the component: pydrake Python API and its supporting Starlark macros label Sep 1, 2026

@ggould-tri ggould-tri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+(component: pydrake) Assigning +a:@rpoyner-tri as pydrake lead; feel free to re-delegate.

@ggould-tri made 1 comment.
Reviewable status: LGTM missing from assignee rpoyner-tri(platform), needs at least two assigned reviewers, missing label for release notes (waiting on rpoyner-tri).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: pydrake Python API and its supporting Starlark macros

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants