Class ChangeMapComponent

java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.movebase.ChangeMapComponent

public class ChangeMapComponent extends DiarcComponent
This component allows for map swapping functionality
  • Constructor Details

    • ChangeMapComponent

      public ChangeMapComponent()
      ChangeMapComponent Constructor. Simply starts the MapServer ade ROS ndoe
  • Method Details

    • changeMap

      public boolean changeMap(String mapAbsPath)
      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

      public boolean changeMap(String mapPackName, String mapRelPackPath)
      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 file
      mapRelPackPath - The map.yaml file path relative to the given package.
      Returns: