Skip to content

Commit

Permalink
remove build warings
Browse files Browse the repository at this point in the history
  • Loading branch information
ipa-vsp committed Nov 3, 2023
1 parent 3e53a2f commit 92ed7f1
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ void NodeCanopenBaseDriver<rclcpp_lifecycle::LifecycleNode>::configure(bool call
catch (...)
{
}
RCLCPP_INFO(
this->node_->get_logger(), "Non transmit timeout %d", this->non_transmit_timeout_.count());
RCLCPP_INFO_STREAM(
this->node_->get_logger(),
"Non transmit timeout" << static_cast<int>(this->non_transmit_timeout_.count()) << "ms");

try
{
Expand Down Expand Up @@ -101,6 +102,18 @@ void NodeCanopenBaseDriver<rclcpp_lifecycle::LifecycleNode>::configure(bool call
template <>
void NodeCanopenBaseDriver<rclcpp::Node>::configure(bool called_from_base)
{
try
{
this->non_transmit_timeout_ =
std::chrono::milliseconds(this->config_["non_transmit_timeout"].as<int>());
}
catch (...)
{
}
RCLCPP_INFO_STREAM(
this->node_->get_logger(),
"Non transmit timeout" << static_cast<int>(this->non_transmit_timeout_.count()) << "ms");

try
{
polling_ = this->config_["polling"].as<bool>();
Expand Down

0 comments on commit 92ed7f1

Please sign in to comment.