Design of Timeline-Based Planning Systems for Safe Human-Robot Collaboration