RED: A Systematic Real-Time Scheduling Approach for Robotic Environmental Dynamics