Skip to content
Snippets Groups Projects
Unverified Commit b41d5d40 authored by Steven Macenski's avatar Steven Macenski Committed by GitHub
Browse files

static cast to int for map saver ID

parent 9f0bdd4e
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ MapSaver::MapSaver(const rclcpp::NodeOptions & options)
{
mapname_ = declare_parameter("output_file_no_ext", "map");
if (mapname_ == "map") {
mapname_ += "_" + std::to_string(int(now().seconds()));
mapname_ += "_" + std::to_string(static_cast<int>(now().seconds()));
}
threshold_occupied_ = declare_parameter("threshold_occupied", 65);
if (100 < threshold_occupied_) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment