In a robotic arm controller, it is crucial to manage error states to ensure patient safety. You are tasked with implementing a function that takes a list of error states and returns a list of safe commands that can be executed. Each error state is represented by an integer where positive values indicate safe commands and negative values indicate errors.
error_states where:
error_states[i] > 0 indicates a safe command.error_states[i] <= 0 indicates an error state.def safe_commands(error_states):