- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotics.controllers.pidGains.implementations.YoPIDGains.setKi()
方法的一些代码示例,展示了YoPIDGains.setKi()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoPIDGains.setKi()
方法的具体详情如下:
包路径:us.ihmc.robotics.controllers.pidGains.implementations.YoPIDGains
类名称:YoPIDGains
方法名:setKi
暂无
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
public void setLinearGains(double kp, double ki, double kd)
{
linearPidGains.setKp(kp);
linearPidGains.setKi(ki);
linearPidGains.setKd(kd);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void set(PIDGainsReadOnly pidGains)
{
super.set(pidGains);
setKi(pidGains.getKi());
setMaximumIntegralError(pidGains.getMaxIntegralError());
setIntegralLeakRatio(pidGains.getIntegralLeakRatio());
}
}
代码示例来源:origin: us.ihmc/valkyrie
YoPIDGains gains = new YoPIDGains("Hand", registry);
gains.setKp(7.0);
gains.setKi(3.0);
gains.setKd(0.0);
gains.setMaximumFeedback(3.0);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.3)
@Test(timeout=300000)
public void testPIDControllerConstructorFromGains()
{
YoVariableRegistry registry = new YoVariableRegistry("robert");
double proportional = random.nextDouble();
double integral = random.nextDouble();
double derivative = random.nextDouble();
double maxError = random.nextDouble();
double deadband = random.nextDouble();
double leakRate = random.nextDouble();
double maxOutput = 100 * random.nextDouble();
YoPIDGains pidGains = new YoPIDGains("", registry);
pidGains.setKp(proportional);
pidGains.setKi(integral);
pidGains.setKd(derivative);
pidGains.setMaximumIntegralError(maxError);
pidGains.setPositionDeadband(deadband);
pidGains.setIntegralLeakRatio(leakRate);
pidGains.setMaximumFeedback(maxOutput);
PIDController pid = new PIDController(pidGains, "", registry);
assertEquals(proportional, pid.getProportionalGain(), 0.001);
assertEquals(integral, pid.getIntegralGain(), 0.001);
assertEquals(derivative, pid.getDerivativeGain(), 0.001);
assertEquals(maxError, pid.getMaxIntegralError(), 0.001);
assertEquals(deadband, pid.getPositionDeadband(), 0.001);
assertEquals(leakRate, pid.getIntegralLeakRatio(), 0.001);
assertEquals(maxOutput, pid.getMaximumFeedback(), 1e-5);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.2)
@Test(timeout=300000)
public void testPIDControllerConstructorFromGains2()
{
YoVariableRegistry registry = new YoVariableRegistry("robert");
double proportional = random.nextDouble();
double integral = random.nextDouble();
double derivative = random.nextDouble();
double maxError = random.nextDouble();
double deadband = random.nextDouble();
double maxOutput = random.nextDouble() * 100;
YoPIDGains pidGains = new YoPIDGains("", registry);
pidGains.setKp(proportional);
pidGains.setKi(integral);
pidGains.setKd(derivative);
pidGains.setMaximumIntegralError(maxError);
pidGains.setPositionDeadband(deadband);
pidGains.setMaximumFeedback(maxOutput);
PIDController pid = new PIDController(pidGains, "", registry);
assertEquals(proportional, pid.getProportionalGain(), 0.001);
assertEquals(integral, pid.getIntegralGain(), 0.001);
assertEquals(derivative, pid.getDerivativeGain(), 0.001);
assertEquals(maxError, pid.getMaxIntegralError(), 0.001);
assertEquals(deadband, pid.getPositionDeadband(), 0.001);
assertEquals(maxOutput, pid.getMaximumFeedback(), 0.001);
assertEquals(1.0, pid.getIntegralLeakRatio(), 0.001);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.2)
@Test(timeout=300000)
public void testPIDControllerConstructorFromGains3()
{
YoVariableRegistry registry = new YoVariableRegistry("robert");
double proportional = random.nextDouble();
double integral = random.nextDouble();
double derivative = random.nextDouble();
double maxIntegralError = random.nextDouble();
double maxOutput = random.nextDouble() * 100;
YoPIDGains pidGains = new YoPIDGains("", registry);
pidGains.setKp(proportional);
pidGains.setKi(integral);
pidGains.setKd(derivative);
pidGains.setMaximumIntegralError(maxIntegralError);
pidGains.setMaximumFeedback(maxOutput);
PIDController pid = new PIDController(pidGains, "", registry);
assertEquals(proportional, pid.getProportionalGain(), 0.001);
assertEquals(integral, pid.getIntegralGain(), 0.001);
assertEquals(derivative, pid.getDerivativeGain(), 0.001);
assertEquals(maxIntegralError, pid.getMaxIntegralError(), 0.001);
assertEquals(maxOutput, pid.getMaximumFeedback(), 1e-5);
assertEquals(0.0, pid.getPositionDeadband(), 0.001);
assertEquals(1.0, pid.getIntegralLeakRatio(), 0.001);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.2)
@Test(timeout=300000)
public void testPIDControllerConstructorFromGains4()
{
YoVariableRegistry registry = new YoVariableRegistry("robert");
double proportional = random.nextDouble();
double integral = random.nextDouble();
double derivative = random.nextDouble();
double maxIntegralError = random.nextDouble();
YoPIDGains pidGains = new YoPIDGains("", registry);
pidGains.setKp(proportional);
pidGains.setKi(integral);
pidGains.setKd(derivative);
pidGains.setMaximumIntegralError(maxIntegralError);
PIDController pid = new PIDController(pidGains, "", registry);
assertEquals(proportional, pid.getProportionalGain(), 0.001);
assertEquals(integral, pid.getIntegralGain(), 0.001);
assertEquals(derivative, pid.getDerivativeGain(), 0.001);
assertEquals(maxIntegralError, pid.getMaxIntegralError(), 0.001);
assertEquals(Double.POSITIVE_INFINITY, pid.getMaximumFeedback(), 0.001);
assertEquals(0.0, pid.getPositionDeadband(), 0.001);
assertEquals(1.0, pid.getIntegralLeakRatio(), 0.001);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
pidGains.setKi(ki);
pidGains.setMaximumFeedback(maxAcc);
pidGains.setMaximumFeedbackRate(maxJerk);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.3)
@Test(timeout=300000)
public void testComputeFromYoPIDGains()
{
YoVariableRegistry registry = new YoVariableRegistry("robert");
double proportional = 3.0;
double integral = 2.0;
double derivative = 1.0;
double maxError = 10.0;
YoPIDGains pidGains = new YoPIDGains("", registry);
pidGains.setKp(proportional);
pidGains.setKi(integral);
pidGains.setKd(derivative);
pidGains.setMaximumIntegralError(maxError);
PIDController pid = new PIDController(pidGains, "", registry);
double currentPosition = 0.0;
double desiredPosition = 5.0;
double currentRate = 0.0;
double desiredRate = 1.0;
assertEquals(17.0, pid.compute(currentPosition, desiredPosition, currentRate, desiredRate, 0.1), 0.001);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
pidGains.setKi(ki);
pidGains.setMaximumFeedback(maxAcc);
pidGains.setMaximumFeedbackRate(maxJerk);
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
linearPidGains.setKi(linearKi);
linearPidGains.setKd(linearKd);
linearPidGains.setMaximumIntegralError(linearMaxIntegral);
angularPidGains.setKi(angularKi);
angularPidGains.setKd(angularKd);
angularPidGains.setMaximumIntegralError(angularMaxIntegral);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
pidGains.setKi(integral);
pidGains.setKd(derivative);
pidGains.setMaximumIntegralError(maxIntegral);
我经常在 C 标准文档中看到“实现定义”的说法,并且非常将其作为答案。 然后我在 C99 标准中搜索它,并且: ISO/IEC 9899/1999 (C99) 中第 §3.12 条规定: 3.12 I
“依赖于实现”中的“实现”是什么意思? “依赖于实现”和“依赖于机器”之间有什么区别? 我使用C,所以你可以用C解释它。 最佳答案 当 C 标准讨论实现时,它指的是 C 语言的实现。因此,C 的实现就
我刚刚在 Android-studio 中导入了我的项目,并试图在其中创建一个新的 Activity。但我无法在 android-studio 中创建 Activity 。我指的是here我看不到将目
我想知道您对为什么会发生此错误的意见。在陆上生产环境中,我们使用 CDH4。在我们的本地测试环境中,我们只使用 Apache Hadoop v2.2.0。当我运行在 CDH4 上编译的同一个 jar
我正在尝试集成第三方 SDK (DeepAR)。但是当我构建它时,它会显示一个错误。我试图修复它。如果我创建一个简单的新项目,它就可以正常工作。但是我现有的应用程序我使用相机和 ndk。请帮我找出错误
我很好奇为什么我们有 @Overrides 注释,但接口(interface)没有类似的习惯用法(例如 @Implements 或 @Implementation)。这似乎是一个有用的功能,因为您可能
我对 DAODatabase(适用于 Oracle 11 xe)的 CRUD 方法的实现感到困惑。问题是,在通常存储到 Map 集合的情况下,“U”方法(更新)会插入新元素或更新它(像 ID:Abst
Java-API 告诉我特定类实现了哪些接口(interface)。但有两种不同类型的信息,我不太确定这意味着什么。例如,对于“TreeSet”类:https://docs.oracle.com/en
我有一个接口(interface) MLService,它具有与机器学习算法的训练和交叉验证相关的基本方法,我必须添加两个接口(interface)分类和预测,它们将实现 MLService 并包含根
我一直想知道如何最好地为所有实现相同接口(interface)的类系列实现 equals()(并且客户端应该只使用所述接口(interface)并且永远不知道实现类)。 我还没有编写自己的具体示例,但
我有一个接口(interface)及其 2 个或更多实现, public interface IProcessor { default void method1() { //logic
我有同一个应用程序的免费版和高级版(几乎相同的代码,相同的类,到处都是“if”, list 中的不同包, list 中的进程名称相同)。主要 Activity 使用 IMPLICIT Intent 调
这是我为我的应用程序中的错误部分编写的代码 - (id)initWithData:(NSData *)data <-------- options:(NSUInteger)opti
请查找随附的代码片段。我正在使用此代码将文件从 hdfs 下载到我的本地文件系统 - Configuration conf = new Configuration(); FileSys
我想在 MongoDB 中使用 Grails2.5 中的“ElasticSearch”插件。我的“BuildConfig.groovy”文件是: grails.servlet.version = "3
我收到一条错误消息: fatal error: init(coder:) has not been implemented 对于我的自定义 UITableViewCell。该单元格未注册,在 Stor
得到这个错误 kotlin.NotImplementedError: An operation is not implemented: not implemented 我正在实现一个 ImageBut
typedef int Element; typedef struct { Element *stack; int max_size; int top; } Stack; //
Playground 代码 here 例子: interface IFoo { bar: number; foo?: () => void; } abstract class Abst
我想知道如何抑制警告: Category is implementing a method which will also be implemented by its primary class. 我
我是一名优秀的程序员,十分优秀!