Skip to content

Commit

Permalink
Always join with parent namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
  • Loading branch information
luca-della-vedova committed Nov 25, 2024
1 parent 7ad9241 commit 745af36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nav2_costmap_2d/plugins/static_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,11 @@ StaticLayer::getParameters()
node->get_parameter(name_ + "." + "map_topic", private_map_topic);
node->get_parameter("map_topic", global_map_topic);
if (!private_map_topic.empty()) {
// global_map_topic_ is already in parent namespace, so we only need to process
// the local topic
map_topic_ = joinWithParentNamespace(private_map_topic);
map_topic_ = private_map_topic;
} else {
map_topic_ = global_map_topic;
}
map_topic_ = joinWithParentNamespace(map_topic_);
node->get_parameter(
name_ + "." + "map_subscribe_transient_local",
map_subscribe_transient_local_);
Expand Down

0 comments on commit 745af36

Please sign in to comment.