Skip to content

Conversation

@chernyadev
Copy link
Collaborator

@chernyadev chernyadev commented Feb 28, 2025

Closes #37 🕺

preview

@xuai05
Copy link

xuai05 commented Mar 8, 2025

Hello, I noticed that you have uploaded a new branch, fix_full_body_reset.
image

I have downloaded this branch and reinstalled Bigym within it.
However, I am still only getting upper-body observations.
image

Is there any additional step I might have missed? Or does this issue still persist?
Thank you for your help!

@chernyadev
Copy link
Collaborator Author

Hi @xuai05, thanks for trying out this branch! Could you share the code you're using to launch BiGym in full-body mode?

Here's a working code sample for this branch:

from bigym.action_modes import JointPositionActionMode
from bigym.envs.reach_target import ReachTarget

env = ReachTarget(
    action_mode=JointPositionActionMode(floating_base=False),
    render_mode="human",
)

print("Observation Space:")
print(env.observation_space)
print("Action Space:")
print(env.action_space)

env.reset()
for i in range(1000):
    obs, reward, terminated, truncated, info = env.step(env.action_space.sample())
    img = env.render()
    if i % 100 == 0:
        env.reset()
env.close()

Expected output:

Observation Space:
Dict('proprioception': Box(-inf, inf, (74,), float32), 'proprioception_grippers': Box(0.0, 1.0, (2,), float32))
Action Space:
Box([-0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1
 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1 -0.1  0.   0. ], [0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1 0.1
 0.1 0.1 0.1 1.  1. ], (23,), float32)

Could you try running this and let me know if it doesn't work?

@xuai05
Copy link

xuai05 commented Mar 17, 2025 via email

@chernyadev
Copy link
Collaborator Author

@xuai05 Could you please validate the code you're using? We can't reproduce this behavior on this branch. Let me know if the issue still occurs. Thanks!

@chernyadev chernyadev merged commit 2afbf62 into master May 25, 2025
1 check passed
@chernyadev chernyadev deleted the fix_full_body_reset branch May 25, 2025 14:08
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.

Issue with Humanoid Robot Initialization and Ejection Behavior in Simulation

4 participants