Skip to content

Commit

Permalink
fix for read the qos values
Browse files Browse the repository at this point in the history
  • Loading branch information
atiderko committed Oct 18, 2022
1 parent 40e8bc8 commit a0be5f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fkie_iop_component/include/fkie_iop_component/iop_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ namespace iop
{
std::string name = get_topic_name(topic_name, "topic.sub.");
auto qos_cfg = qos;
bool reliable = get_param_by_topic_name(topic_name, "topic.sub.qos.reliable", true, rcl_interfaces::msg::ParameterType::PARAMETER_BOOL);
bool reliable = get_param_by_topic_name(topic_name, "topic.sub.qos.reliable.", true, rcl_interfaces::msg::ParameterType::PARAMETER_BOOL);
if (reliable) {
qos_cfg = qos_cfg.reliable();
} else {
qos_cfg = qos_cfg.best_effort();
}
bool transient_local = get_param_by_topic_name(topic_name, "topic.sub.qos.transient_local", false, rcl_interfaces::msg::ParameterType::PARAMETER_BOOL);
bool transient_local = get_param_by_topic_name(topic_name, "topic.sub.qos.transient_local.", false, rcl_interfaces::msg::ParameterType::PARAMETER_BOOL);
if (transient_local) {
qos_cfg = qos_cfg.transient_local();
} else {
Expand Down

0 comments on commit a0be5f3

Please sign in to comment.