Skip to content

attach collision objects when planning motion #5

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wuisky
Copy link

@wuisky wuisky commented Jun 19, 2024

Hello, this PR is a workaround for #3.

Since the geometry information in attached_collision_objects is not in world frame but is with respect to local frame which the object is attached to,
I passed the argument "world_objects_pose_offset=ee_pose".

I'm not sure this is a good workaround but this patch works for me.
Hope this help.

@bmdyrdal
Copy link

Tested and works for me!

Should maybe detach the objects after planning?
self.motion_gen.detach_spheres_from_robot(link_name)

@Alice-ly
Copy link

Alice-ly commented Jan 8, 2025

Thankyou for providing solution, it also works for me;
And I plot all my robot sphere, and feel the argument "world_objects_pose_offset=ee_pose" is used for coordinate conversion. Because when the argument is not added, my robot sphere of attached object is far away from the manipulator instead of being in the manipulater.

@Daniel-LoCY
Copy link

Hi, I used your method to add an extra object to the gripper for collision avoidance, but I encountered the following issue. How can I solve it?

[cumotion_planner_node-6] [WARNING] [curobo] MG: No spheres found, max_spheres: 0 n_objects: 1

Thank you.

@wuisky
Copy link
Author

wuisky commented Jul 8, 2025

if you start cumotion_planner_node like:

ros2 run isaac_ros_cumotion cumotion_planner_node --ros-args -p yml_file_path:=your_robot.yml   -p urdf_path:=your_robot.urdf 

make sure you have

 extra_collision_spheres: {"attached_linkname": 100}  // you can add as many spheres  as you want

in your_robot.yml. or, if you start cumotion_planner_node like:

ros2 run isaac_ros_cumotion cumotion_planner_node --ros-args -p robot:=your_robot.xrdf   -p urdf_path:=your_robot.urdf

make sure you already add

  attached_linkname:
        - center: [0.001, 0.001, 0.05]
          radius: -0.01
        - center: [0.001, 0.001, 0.05]
          radius: -0.01
        - center: [0.001, 0.001, 0.05]
          radius: -0.01
        .
        . 
        .  

in your_robot.xrdf. You can add as many spheres as you want here, too

@Daniel-LoCY
Copy link

Thanks, I'll give it another try.

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.

4 participants