Class MapServer
Defined in File map_server.hpp
Inheritance Relationships
Base Type
public nav2_util::LifecycleNode
Class Documentation
Parses the map yaml file and creates a service and a publisher that provides occupancy grid.
Public Functions
A constructor for nav2_map_server::MapServer.
- Parameters:
options – Additional options to control creation of the node.
A Destructor for nav2_map_server::MapServer.
Protected Functions
Sets up required params and services. Loads map and its parameters from the file.
- Parameters:
state – Lifecycle Node’s state
- Returns:
Success or Failure
Start publishing the map using the latched topic.
- Parameters:
state – Lifecycle Node’s state
- Returns:
Success or Failure
Stops publishing the latched topic.
- Parameters:
state – Lifecycle Node’s state
- Returns:
Success or Failure
Resets the member variables.
- Parameters:
state – Lifecycle Node’s state
- Returns:
Success or Failure
Called when in Shutdown state.
- Parameters:
state – Lifecycle Node’s state
- Returns:
Success or Failure
Load the map YAML, image from map file name and generate output response containing an OccupancyGrid. Update msg_ class variable.
- Parameters:
yaml_file – name of input YAML file
response – Output response with loaded OccupancyGrid map
- Returns:
true or false
Method correcting msg_ header when it belongs to instantiated object.
Map getting service callback.
- Parameters:
request_header – Service request header
request – Service request
response – Service response
Map loading service callback.
- Parameters:
request_header – Service request header
request – Service request
response – Service response
Protected Attributes