Safety and path planning for collaborative applications based on an autonomous mobile platform