Skip to content

Commit

Permalink
uncrustify
Browse files Browse the repository at this point in the history
  • Loading branch information
Aron Svastits committed Feb 24, 2023
1 parent ad0f5ef commit 25ba9a7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions kuka_rox_hardware_interface/src/rox_hardware_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ CallbackReturn KukaRoXHardwareInterface::on_configure(const rclcpp_lifecycle::St
request.mutable_qos_profiles()->at(0).mutable_rt_packet_loss_profile()->
set_consequent_lost_packets(std::stoi(info_.hardware_parameters.at("consequent_lost_packets")));
request.mutable_qos_profiles()->at(0).mutable_rt_packet_loss_profile()->
set_lost_packets_in_timeframe(std::stoi(info_.hardware_parameters.at("lost_packets_in_timeframe")));
set_lost_packets_in_timeframe(
std::stoi(
info_.hardware_parameters.at(
"lost_packets_in_timeframe")));
request.mutable_qos_profiles()->at(0).mutable_rt_packet_loss_profile()->set_timeframe_ms(
std::stoi(
info_.hardware_parameters.at(
Expand All @@ -157,10 +160,11 @@ CallbackReturn KukaRoXHardwareInterface::on_configure(const rclcpp_lifecycle::St
}

RCLCPP_INFO(
rclcpp::get_logger(
"KukaRoXHardwareInterface"), "Set QoS profile with %s consequent and %s packet losses allowed in %s milliseconds", info_.hardware_parameters.at(
"consequent_lost_packets").c_str(), info_.hardware_parameters.at(
"lost_packets_in_timeframe").c_str(), info_.hardware_parameters.at("timeframe_ms").c_str());
rclcpp::get_logger("KukaRoXHardwareInterface"),
"Set QoS profile with %s consequent and %s packet losses allowed in %s milliseconds",
info_.hardware_parameters.at("consequent_lost_packets").c_str(),
info_.hardware_parameters.at("lost_packets_in_timeframe").c_str(),
info_.hardware_parameters.at("timeframe_ms").c_str());
#endif
return CallbackReturn::SUCCESS;
}
Expand Down

0 comments on commit 25ba9a7

Please sign in to comment.