In MoveIt! you can add the mesh files of such obstacles in the Planning Scene.
In MoveIt! you can dynamically attach/detach objects to the end-effector. When attached, Motion Planners will then consider the object also in Motion Planning.
Scene Objects
tab in the Motion Planning mini window within Rviz.Publish
button to publish the same to the Planning Scene
. So that the moveit understands that it is a collision while planning trajectory in the workspace.world
.