Skip to content

Commit

Permalink
fix voxel_decay declared value type (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
doisyg authored Mar 19, 2021
1 parent feb9d58 commit 77b6c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatio_temporal_voxel_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void SpatioTemporalVoxelLayer::onInitialize(void)
node->get_parameter(name_ + ".decay_model", decay_model_int);
_decay_model = static_cast<volume_grid::GlobalDecayModel>(decay_model_int);
// decay param
declareParameter("voxel_decay", rclcpp::ParameterValue(-1));
declareParameter("voxel_decay", rclcpp::ParameterValue(-1.0));
node->get_parameter(name_ + ".voxel_decay", _voxel_decay);
// whether to map or navigate
declareParameter("mapping_mode", rclcpp::ParameterValue(false));
Expand Down

0 comments on commit 77b6c5a

Please sign in to comment.