All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.simulationconstructionset.RobotControllerAndParameters Maven / Gradle / Ivy

There is a newer version: 0.25.2
Show newest version
package us.ihmc.simulationconstructionset;

import us.ihmc.simulationconstructionset.util.RobotController;
import us.ihmc.yoVariables.variable.YoInteger;

public class RobotControllerAndParameters
{
   protected final RobotController controller;
   protected final int simulationTicksPerControlTick;
   protected final YoInteger ticks_till_control;

   public RobotControllerAndParameters(RobotController controller, int simulationTicksPerControlTick)
   {
      this.controller = controller;
      this.simulationTicksPerControlTick = simulationTicksPerControlTick;
      ticks_till_control = new YoInteger("ticks_till_control_" + controller.getName(), controller.getYoRegistry());
      ticks_till_control.set(simulationTicksPerControlTick);
   }

   public RobotController getController()
   {
      return controller;
   }

   public int getSimulationTicksPerControlTick()
   {
      return simulationTicksPerControlTick;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy