Closed marc-wittwer closed 2 years ago
Hello @marc-wittwer,
That is an expected behaviour. MoveIt 2 has nothing to do with objects inside the simulation. Function add_collision_mesh()
adds mesh only to the planning scene of MoveIt such that it avoids these objects/meshes during motion planning.
To add objects to the Gazebo simulation, there are several ways. You can use some of the Gazebo plugins to add objects (e.g. Resource Spawner
), edit SDF world files (e.g. worlds/throw_object.sdf) or do it programatically. Try consulting ~Ignition~ Gazebo tutorials for that. Note that these objects will NOT be automatically a part of the MoveIt planning scene.
I managed to add collision meshes via an .stl-file to the moveit component. The mesh displays in the RViz window correctly but is missing in the gazebo scene.
However, how would I add the cylinder collision mesh to the gazebo scene?
How should I implement a moving obstacle (collision mesh) programmatically, so that it is both visible in RViz and gazebo? (e.g. a moving person walking by the robot)