Ask Your Question
0

ROS moveit programmatically adding collision object

asked 2013-02-27 04:10:12 -0500

Wouter gravatar image

Hi,

I would like to add Collision objects to the planning scene, similar to how it was previously possible in Electric+arm_navigation (see code ). However, I did not get the code to work because the headers are deprecated in Groovy and MoveIt. Does anyone have an idea how to do a similar thing in Groovy+MoveIt?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-03-18 07:51:00 -0500

isucan gravatar image

Sorry for the late reply, but here it is:

You can do this in two ways: either you publish a CollisionObject message on the /collision_object topic, or, you can call processCollisionObjectMsg() function directly on the PlanningScene, if you are in the same process. Furthermore, you can do something like: planning_scene->getWorld()->addToObject("object_name", Shape, Pose);

edit flag offensive delete link more

Comments

Thanks for your comment isucan. I would like to add a cylinder (shape primitive) as collision object, but I am struggling to write a cpp file similar to the tutorial 'Adding known objects to the collision environment'. As far as I know, such an example does not exist for MoveIt, or do I miss somethi

Wouter gravatar image Wouter  ( 2013-04-15 23:28:20 -0500 )edit
1

answered 2014-04-05 11:46:00 -0500

Dave Coleman gravatar image

Very late reply, but I just created an easy helper function to publish a collision cylinder https://github.com/davetcoleman/movei...

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-02-27 04:10:12 -0500

Seen: 2,831 times

Last updated: Apr 05 '14