Skip to content

Commit

Permalink
changed message depth of scan filter sub to 1 (#150)
Browse files Browse the repository at this point in the history
* Check if parameters exist already before declaring them

* fixed coding style

* changed message depth of scan filter sub to 1
  • Loading branch information
maxlein authored and SteveMacenski committed Jan 15, 2020
1 parent 139e080 commit 7d697a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slam_toolbox_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void SlamToolbox::setROSInterfaces()
shared_from_this().get(), scan_topic_, rmw_qos_profile_sensor_data);
scan_filter_ =
std::make_unique<tf2_ros::MessageFilter<sensor_msgs::msg::LaserScan> >(
*scan_filter_sub_, *tf_, odom_frame_, 10, shared_from_this());
*scan_filter_sub_, *tf_, odom_frame_, 1, shared_from_this());
scan_filter_->registerCallback(
std::bind(&SlamToolbox::laserCallback, this, std::placeholders::_1));
}
Expand Down

0 comments on commit 7d697a9

Please sign in to comment.