A collaborative robotic cyber physical system for surgery applications