Smart Maintenance for Human–Robot Interaction