Package edu.tufts.hrilab.movebase
Class ChangeMapComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.movebase.ChangeMapComponent
This component allows for map swapping functionality
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
additionalUsageInfo, createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, init, main, parseArgs, shutdown, shutdownComponent
-
Constructor Details
-
ChangeMapComponent
public ChangeMapComponent()ChangeMapComponent Constructor. Simply starts the MapServer ade ROS ndoe
-
-
Method Details
-
changeMap
Changes the robot map to the given map.- Parameters:
mapAbsPath
- The absolute path of the map.yaml file- Returns:
- If the action was successful or not
-
changeMap
Changes the robot map to the given map based off a package and relative file path. For an example:changeMap("map_package", "map.yaml")
Calls this example absolute path:/home/user/catkin_ws/src/map_package/map.yaml
- Parameters:
mapPackName
- The package that contains the map.yaml filemapRelPackPath
- The map.yaml file path relative to the given package.- Returns:
-