diff --git a/canopen_core/include/canopen_core/node_interfaces/node_canopen_driver.hpp b/canopen_core/include/canopen_core/node_interfaces/node_canopen_driver.hpp index e1f4c73e7..cf61a0761 100644 --- a/canopen_core/include/canopen_core/node_interfaces/node_canopen_driver.hpp +++ b/canopen_core/include/canopen_core/node_interfaces/node_canopen_driver.hpp @@ -195,8 +195,8 @@ class NodeCanopenDriver : public NodeCanopenDriverInterface node_->get_parameter("config", config); this->config_ = YAML::Load(config); this->non_transmit_timeout_ = std::chrono::milliseconds(non_transmit_timeout); - auto path = this->config_["dcf_path"].as(); - auto dcf = this->config_["dcf"].as(); + auto path = this->config_["dcf_path"].template as(); + auto dcf = this->config_["dcf"].template as(); auto name = this->node_->get_name(); eds_ = path + "/" + dcf; bin_ = path + "/" + name + ".bin";