gpt4 book ai didi

c++ - get_input_port 方法位于 drake 的什么位置?

转载 作者:行者123 更新时间:2023-12-03 06:54:27 24 4
gpt4 key购买 nike

我试图找到这个调用所指的模板函数

https://github.com/RobotLocomotion/drake/blob/master/examples/pendulum/pendulum_geometry.cc#L102

  const auto& input = get_input_port(0).Eval<PendulumState<double>>(context);

我一直试图找到包含此调用的导入,但我不知所措。

最佳答案

那是在 https://github.com/RobotLocomotion/drake/blob/master/systems/framework/system.h#L927

(因为 PendulumGeometry 派生自 LeafSystem。)

关于c++ - get_input_port 方法位于 drake 的什么位置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64300432/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com