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.


Example

For example the following image shows cylinder added in the workspace with respect to world.

image.png