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);
Originally posted by isucan with karma: 1055 on 2013-03-18
This answer was ACCEPTED on the original site
Post score: 2
Original comments
Comment by Wouter on 2013-04-15:
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