Ensuring safety in human-robot coexisting environment based on two-level protection | Synapse