/** {@inheritDoc} */ @Override public void set(GoHomeCommand other) { clear(); trajectoryTime = other.trajectoryTime; executionDelayTime = other.getExecutionDelayTime(); for (HumanoidBodyPart bodyPart : HumanoidBodyPart.values) { if (bodyPart.isRobotSideNeeded()) { for (RobotSide robotSide : RobotSide.values) { if (other.getRequest(robotSide, bodyPart)) sideDependentBodyPartRequestMap.get(robotSide).get(bodyPart).setValue(true); } } else if (other.getRequest(bodyPart)) { otherBodyPartRequestMap.get(bodyPart).setValue(true); } } }