Skip to content

Commit 500abae

Browse files
authored
Allow mark_threhold parameter to be set dynamically (SteveMacenski#264)
1 parent 59802a3 commit 500abae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/spatio_temporal_voxel_layer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,12 @@ SpatioTemporalVoxelLayer::dynamicParametersCallback(std::vector<rclcpp::Paramete
933933
enabled_ = enable;
934934
}
935935
}
936+
937+
if (type == ParameterType::PARAMETER_INTEGER) {
938+
if (name == name_ + "." + "mark_threshold") {
939+
_mark_threshold = parameter.as_int();
940+
}
941+
}
936942
}
937943

938944
result.successful = true;

0 commit comments

Comments
 (0)