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
939e628c
Commit
939e628c
authored
5 years ago
by
Steven Macenski
Browse files
Options
Downloads
Patches
Plain Diff
removing default bogus for yaml filename in map server
parent
b51f0767
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_server.cpp
+2
-3
2 additions, 3 deletions
nav2_map_server/src/map_server.cpp
with
2 additions
and
3 deletions
nav2_map_server/src/map_server.cpp
+
2
−
3
View file @
939e628c
...
...
@@ -34,7 +34,7 @@ MapServer::MapServer()
RCLCPP_INFO
(
get_logger
(),
"Creating"
);
// Declare the node parameters
declare_parameter
(
"yaml_filename"
,
"/home/s.macenski/Documents/nav/navigation2_ws/src/navigation2/nav2_bringup/bringup/maps/turtlebot3_world.yaml"
);
declare_parameter
(
"yaml_filename"
);
}
MapServer
::~
MapServer
()
...
...
@@ -48,8 +48,7 @@ MapServer::on_configure(const rclcpp_lifecycle::State & state)
RCLCPP_INFO
(
get_logger
(),
"Configuring"
);
// Get the name of the YAML file to use
std
::
string
yaml_filename
;
get_parameter
(
"yaml_filename"
,
yaml_filename
);
std
::
string
yaml_filename
=
get_parameter
(
"yaml_filename"
).
as_string
();
// Make sure that there's a valid file there and open it up
std
::
ifstream
fin
(
yaml_filename
.
c_str
());
...
...
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