diff --git a/controller_interface/src/controller_interface.cpp b/controller_interface/src/controller_interface.cpp index 30e63b07fb..d151cb9a1d 100644 --- a/controller_interface/src/controller_interface.cpp +++ b/controller_interface/src/controller_interface.cpp @@ -144,6 +144,9 @@ void ControllerInterface::release_interfaces() std::shared_ptr ControllerInterface::get_node() { + if (!node_.get()) { + throw std::runtime_error("Node hasn't been initialized yet!"); + } return node_; }