Rule-based Dynamic Safety Monitoring for Mobile Robots