3

I'm trying to find the template function that this call is referring to

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

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

I've been trying to find the import that contains this call but I'm at a loss.

cjds
  • 8,268
  • 10
  • 49
  • 84

1 Answers1

2

That's at https://github.com/RobotLocomotion/drake/blob/master/systems/framework/system.h#L927

(Because PendulumGeometry derives from LeafSystem.)

Sherm
  • 643
  • 4
  • 6
  • 1
    Add'l links: [permalink](https://github.com/RobotLocomotion/drake/blob/7cf93ce48c760b953425a31b840fa9dcd0eaad47/systems/framework/system.h#L927), [C++ API](https://drake.mit.edu/doxygen_cxx/classdrake_1_1systems_1_1_system.html#a39b7b9f7723ad69fca8766e6590ef681) – Eric Cousineau Oct 12 '20 at 18:28