Skip to content
Snippets Groups Projects
Commit 939e628c authored by Steven Macenski's avatar Steven Macenski
Browse files

removing default bogus for yaml filename in map server

parent b51f0767
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
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