Skip to content

Conversation

@chenyenru
Copy link
Contributor

No description provided.

class Panda(BaseAgent):
uid = "panda"
urdf_path = f"{PACKAGE_ASSET_DIR}/robots/panda/panda_v2.urdf"
urdf_path = f"{PACKAGE_ASSET_DIR}/robots/panda/panda_v3.urdf"
Copy link
Member

Choose a reason for hiding this comment

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

why is this changed?

def __init__(
self, *args, robot_uids="panda_wristcam", robot_init_qpos_noise=0.02, **kwargs
):
self.num_cubes = 6 # 3 + 2 + 1
Copy link
Member

Choose a reason for hiding this comment

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

this variable is not used

z_offset = torch.abs(offset[..., 2] - self.cube_half_size[2])
xy_flag = xy_offset <= 0.05
z_flag = z_offset <= 0.05
logger.debug(f"NEXT TO Distance XY: {xy_offset}")
Copy link
Member

Choose a reason for hiding this comment

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

remove the print statements and logging

@@ -0,0 +1,69 @@

Copy link
Member

Choose a reason for hiding this comment

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

we don't usually have per env specific tests. this should be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gotcha. As a side question, I'm curious if there's a reason environments generally don't have per-environment tests?

My rationale for unit testing environment implementation was that it could help ensure the environment works correctly with current and future code changes. However, among different RL environments / framework, I've only come across one instance of environment-specific testing in Gymnasium, specifically in this file:

**Success Conditions:**
- the blue cube is static
- the blue cube is on top of both the red and green cube (to within half of the cube size)
- the blue cube is static
Copy link
Member

Choose a reason for hiding this comment

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

repeated line

@chenyenru
Copy link
Contributor Author

Thanks for the comments! They should be addressed now, please take a look

…es, and reversed change for updating panda version
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