【问题标题】:Where does the get_input_port method reside in drake?get_input_port 方法在 drake 中的什么位置?
【发布时间】:2020-10-11 03:52:29
【问题描述】:

我正在尝试查找此调用所指的模板函数

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

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

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

【问题讨论】:

    标签: c++ drake


    【解决方案1】:

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

    (因为 PendulumGeometry 派生自 LeafSystem。)

    【讨论】:

    猜你喜欢
    • 2010-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-19
    • 2017-06-30
    • 2012-08-23
    • 1970-01-01
    • 2022-11-02
    相关资源
    最近更新 更多