Skip to content

Commit

Permalink
fixed #1117
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Feb 10, 2024
1 parent e800bb0 commit 74d611c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rtabmap_slam/src/CoreWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,12 @@ CoreWrapper::CoreWrapper(const rclcpp::NodeOptions & options) :
{
RCLCPP_WARN(get_logger(), "Node paused... don't forget to call service \"resume\" to start rtabmap.");
}

const std::map<std::string, rclcpp::ParameterValue> & overrides = this->get_node_parameters_interface()->get_parameter_overrides();
for(ParametersMap::iterator iter=allParameters.begin(); iter!=allParameters.end(); ++iter)
{
std::string vStr = this->declare_parameter(iter->first, iter->second);
if(vStr.compare(iter->second)!=0)
if(overrides.find(iter->first) != overrides.end())
{
RCLCPP_INFO(this->get_logger(), "Setting RTAB-Map parameter \"%s\"=\"%s\"", iter->first.c_str(), vStr.c_str());

Expand Down

0 comments on commit 74d611c

Please sign in to comment.