Skip to content
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

[Question] Collision error between mobile manipulator and YCB object #60

Closed
dengyh16code opened this issue Apr 13, 2023 · 5 comments
Closed

Comments

@dengyh16code
Copy link

I have defined a mobile manipulator and import a YCB object in issac orbit.
here is the code of importing YCB object

Obj_cfg = RigidObjectCfg()
Obj_cfg.meta_info.usd_path = f"{ISAAC_NUCLEUS_DIR}/Props/YCB/Axis_Aligned_Physics/006_mustard_bottle.usd"
rigid_object = RigidObject(Obj_cfg)

obj_quat = convert_quat(tf.Rotation.from_euler("XYZ", (-90, 90, 0), degrees=True).as_quat(), to="wxyz")
translation =(np.random.uniform(-0.1,0.1), np.random.uniform(-0.3,0), 0.8)
rigid_object.spawn("/World/Objects/mustard_bottle",translation=translation, orientation=obj_quat)

and when I try to control the mobile manipulator to grasp the YCB object, there is no collision between the gripper and the object.
But there is collision between the robotic arm and the object. I have check the URDF file, but there is no difference between the arm and the gripper.

the following video shows the grasp process.
https://user-images.githubusercontent.com/41771334/231722830-79a4a5e2-c3ec-407b-b2a0-b8c5db67d322.mp4

@Mayankm96
Copy link
Contributor

Are there collision bodies on the gripper?

@dengyh16code
Copy link
Author

I have build the robot with the class LeggedMobileManipulator and set collision property to the whole robot. I think there should be collision bodies on the gripper, but there is not.

@dengyh16code
Copy link
Author

hos s

Are there collision bodies on the gripper?

how should i add collision bodies on the gripper

@Mayankm96
Copy link
Contributor

These should be added by default when you import the URDF for your robot. If it is missing over there, then you'd need to add the collision API to your visual mesh.

You can check the physics documentation about this:

@Mayankm96 Mayankm96 changed the title collision error of mobile manipulator and YCB object [Question] Collision error between mobile manipulator and YCB object Apr 13, 2023
@Mayankm96
Copy link
Contributor

Closing this issue since it doesn't seem related to Orbit itself. Feel free to continue this thread if you need help with solving the issue.

Mayankm96 pushed a commit that referenced this issue Mar 11, 2024
# Description

This MR adds the following:

1. Observations: Adds observations for root state (pos, quat, linear
vel, and angular vel) in the environment frame. Important for assets
such as objects during manipulation.

2. Randomizations: Adds random orientation randomization for assets
(such as objects) and joint position randomization for articulations.

3. Rewards: Adds a termination reward function for specific termination
terms. Needed if terminations are to be weighted individually, for eg,
if successful termination reward should have a different weighting
factor than illegal state termination reward.

Tested for functionality.

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./orbit.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have run all the tests with `./orbit.sh --test` and they pass
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
fatimaanes pushed a commit to fatimaanes/omniperf that referenced this issue Aug 8, 2024
# Description

This MR adds the following:

1. Observations: Adds observations for root state (pos, quat, linear
vel, and angular vel) in the environment frame. Important for assets
such as objects during manipulation.

2. Randomizations: Adds random orientation randomization for assets
(such as objects) and joint position randomization for articulations.

3. Rewards: Adds a termination reward function for specific termination
terms. Needed if terminations are to be weighted individually, for eg,
if successful termination reward should have a different weighting
factor than illegal state termination reward.

Tested for functionality.

## Type of change

- New feature (non-breaking change which adds functionality)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./orbit.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have run all the tests with `./orbit.sh --test` and they pass
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
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

No branches or pull requests

2 participants