Skip to content

Add randomized goal option#17

Open
andrearitossa wants to merge 4 commits into
huggingface:mainfrom
andrearitossa:feature/random-goal-init
Open

Add randomized goal option#17
andrearitossa wants to merge 4 commits into
huggingface:mainfrom
andrearitossa:feature/random-goal-init

Conversation

@andrearitossa
Copy link
Copy Markdown

Added randomized goal:

  • Implemented a randomized_goal parameter that allows for goal pose randomization
  • When enabled, the goal position (x,y) and orientation are randomly sampled within the environment boundaries
  • Added proper margins for the goal position to be at a reasonable distance from the walls

@moribots
Copy link
Copy Markdown

I think you will need to add an option to change the conditioning to include the goal information visa pose.

This will necessitate an update to obs_type so that a new appropriate dataset can be generated

Otherwise, the agent will not be able to learn the harder task.

@andrearitossa
Copy link
Copy Markdown
Author

andrearitossa commented Mar 1, 2025

True!
I added the goal directly inside ´obs_type´s: ´state´ and ´environment_state_agent_pos´.

How does it look?

Copy link
Copy Markdown

@moribots moribots left a comment

Choose a reason for hiding this comment

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

minor nit :) thanks for doing this!

Comment thread gym_pusht/envs/pusht.py Outdated
Co-authored-by: Maurice Rahme <55120103+moribots@users.noreply.github.com>
@andrearitossa
Copy link
Copy Markdown
Author

Thank you for the review!

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