Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does the get_input_port method reside in drake?

Tags:

c++

drake

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.

like image 987
cjds Avatar asked Dec 10 '25 06:12

cjds


1 Answers

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

(Because PendulumGeometry derives from LeafSystem.)

like image 101
Sherm Avatar answered Dec 11 '25 21:12

Sherm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!