-
Notifications
You must be signed in to change notification settings - Fork 5
Add pushT env #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add pushT env #85
Conversation
…diChain into yueci/add-sim-docs
|
|
||
|
|
||
| @register_env("PushTRL", max_episode_steps=50, override=True) | ||
| class PushTEnv(EmbodiedEnv): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should inherit RLEnv for now.
| super()._initialize_episode(env_ids=env_ids, **kwargs) | ||
| # self._draw_goal_marker() | ||
|
|
||
| def _step_action(self, action: EnvAction) -> EnvAction: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have standard preprocess_action function, so _step_action should not be modified.
| self.robot.set_qpos(qpos=target_qpos) | ||
| return scaled_action | ||
|
|
||
| def _get_eef_pos(self) -> torch.Tensor: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should implement a standard eef_pose computation method. cc @yhnsu
| def evaluate(self, **kwargs) -> Dict[str, Any]: | ||
| info = self.get_info(**kwargs) | ||
| return { | ||
| "success": info["success"][0].item(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
success should be a vector?
Description
This PR adds a new Reinforcement Learning task environment PushTRL (Push-T).
Changes include:
Environment Implementation: Added
PushTEnvclass which defines the task of pushing a T-shaped block to a goal using a UR10 manipulator. This also provides the relevant parameters for the task.Checklist