Ask Your Question

move_group Python interface collision and visual mesh

asked 2020-03-17 10:54:48 -0500

krablander gravatar image


I am using the Python move_group interface for MoveIt. specifies a function add_mesh to add a model to the scene, limited to only 1 mesh file. Is it possible to add a model with both a collision and visual mesh to the planning scene? I mean similar to how we specify collision and visual meshes for links in xacro files.

I am using ROS Kinetic on Ubuntu 16.04.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-03-17 11:09:20 -0500

gvdhoorn gravatar image


That function is really just for publishing a "collision object".

It's not meant for adding arbitrary geometry to the scene.

edit flag offensive delete link more


If you could describe what you are looking to do exactly, perhaps an alternative could be found.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-17 11:11:05 -0500 )edit

My goal is to visualize the robot task in realtime at the same time with the physical robot, including objects that are being moved

krablander gravatar image krablander  ( 2020-03-17 11:27:00 -0500 )edit

If it's just for visualisation, you could consider publishing Markers. rviz_visual_tools could help you with that.

If those objects should be taken into account by the motion planner, you really should be publishing collision objects.

You could of course combine this.

gvdhoorn gravatar image gvdhoorn  ( 2020-03-17 11:33:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-03-17 10:54:48 -0500

Seen: 90 times

Last updated: Mar 17 '20