Safety systems for AGVs and AMRs