Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210910794
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210910794
Commits
b41d5d40
Unverified
Commit
b41d5d40
authored
5 years ago
by
Steven Macenski
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
static cast to int for map saver ID
parent
9f0bdd4e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nav2_map_server/src/map_saver.cpp
+1
-1
1 addition, 1 deletion
nav2_map_server/src/map_saver.cpp
with
1 addition
and
1 deletion
nav2_map_server/src/map_saver.cpp
+
1
−
1
View file @
b41d5d40
...
...
@@ -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_
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment