us.ihmc.simulationconstructionset.RobotControllerAndParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simulation-construction-set
Show all versions of simulation-construction-set
Simulation Construction Set
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;
}
}