Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update default params for localization and configuration #129

Merged
merged 1 commit into from
Nov 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions config/mapper_params_lifelong.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@

# link_match_minimum_response_fine: 0.4
# link_scan_maximum_distance: 20.0
# loop_search_maximum_distance: 50.0
# distance_variance_penalty: 1.8
# angle_variance_penalty: 0.20
# minimum_angle_penalty: 1.6 #0.9

# Plugin params
solver_plugin: solver_plugins::CeresSolver
ceres_linear_solver: SPARSE_NORMAL_CHOLESKY
Expand Down
14 changes: 3 additions & 11 deletions config/mapper_params_localization.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@

# link_match_minimum_response_fine: 0.4
# link_scan_maximum_distance: 20.0
# loop_search_maximum_distance: 50.0
# distance_variance_penalty: 1.8
# angle_variance_penalty: 0.20
# minimum_angle_penalty: 1.6 #0.9

# Plugin params
solver_plugin: solver_plugins::CeresSolver
ceres_linear_solver: SPARSE_NORMAL_CHOLESKY
Expand Down Expand Up @@ -41,13 +33,12 @@ use_scan_matching: true
use_scan_barycenter: true
minimum_travel_distance: 0.5
minimum_travel_heading: 0.5
scan_buffer_size: 10
scan_buffer_size: 3
scan_buffer_maximum_scan_distance: 10
link_match_minimum_response_fine: 0.1
link_scan_maximum_distance: 1.5
loop_search_maximum_distance: 3.0
do_loop_closing: true
loop_match_minimum_chain_size: 10
loop_match_minimum_chain_size: 3
loop_match_maximum_variance_coarse: 3.0
loop_match_minimum_response_coarse: 0.35
loop_match_minimum_response_fine: 0.45
Expand All @@ -61,6 +52,7 @@ correlation_search_space_smear_deviation: 0.1
loop_search_space_dimension: 8.0
loop_search_space_resolution: 0.05
loop_search_space_smear_deviation: 0.03
loop_search_maximum_distance: 5.0

# Scan Matcher Parameters
distance_variance_penalty: 0.5
Expand Down
8 changes: 0 additions & 8 deletions config/mapper_params_offline.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@

# link_match_minimum_response_fine: 0.4
# link_scan_maximum_distance: 20.0
# loop_search_maximum_distance: 50.0
# distance_variance_penalty: 1.8
# angle_variance_penalty: 0.20
# minimum_angle_penalty: 1.6 #0.9

# Plugin params
solver_plugin: solver_plugins::CeresSolver
ceres_linear_solver: SPARSE_NORMAL_CHOLESKY
Expand Down
8 changes: 0 additions & 8 deletions config/mapper_params_online_async.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@

# link_match_minimum_response_fine: 0.4
# link_scan_maximum_distance: 20.0
# loop_search_maximum_distance: 50.0
# distance_variance_penalty: 1.8
# angle_variance_penalty: 0.20
# minimum_angle_penalty: 1.6 #0.9

# Plugin params
solver_plugin: solver_plugins::CeresSolver
ceres_linear_solver: SPARSE_NORMAL_CHOLESKY
Expand Down
8 changes: 0 additions & 8 deletions config/mapper_params_online_sync.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@

# link_match_minimum_response_fine: 0.4
# link_scan_maximum_distance: 20.0
# loop_search_maximum_distance: 50.0
# distance_variance_penalty: 1.8
# angle_variance_penalty: 0.20
# minimum_angle_penalty: 1.6 #0.9

# Plugin params
solver_plugin: solver_plugins::CeresSolver
ceres_linear_solver: SPARSE_NORMAL_CHOLESKY
Expand Down
3 changes: 2 additions & 1 deletion src/slam_toolbox_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ void SlamToolbox::loadSerializedPoseGraph(

// move the memory to our working dataset
smapper_->setMapper(mapper.release());
smapper_->configure(nh_);
dataset_.reset(dataset.release());

if (!smapper_->getMapper())
Expand Down Expand Up @@ -668,7 +669,7 @@ void SlamToolbox::loadSerializedPoseGraph(
ROS_INFO("Waiting for incoming scan to get metadata...");
boost::shared_ptr<sensor_msgs::LaserScan const> scan =
ros::topic::waitForMessage<sensor_msgs::LaserScan>(
std::string("/scan"), ros::Duration(1.0));
scan_topic_, ros::Duration(1.0));
if (scan)
{
ROS_INFO("Got scan!");
Expand Down