Skip to content

Latest commit

 

History

History
44 lines (40 loc) · 1.74 KB

README.md

File metadata and controls

44 lines (40 loc) · 1.74 KB

map_changer

Change map with waypoint

Install

git clone https://github.com/kazukishirasu/map_changer.git
catkin build map_changer
source ~/.bashrc

Usage

waypoint placement

Place a waypoint at the robot's position after the map change, like waypoint number 2.

config:
    # Specify the waypoint_id when you want to change the map
  - waypoint_id: registed_0_1252124000000
    # Specify the full path to the map file you want to change without the extension
    map_file: /home/kazuki/tsukuba_ws/src/orne-box/orne_box_navigation_executor/maps/mymap2
  - waypoint_id: registed_0_1609011000000
    map_file: /home/kazuki/tsukuba_ws/src/orne-box/orne_box_navigation_executor/maps/mymap1
<launch>
<!-- Set configuration file -->
<arg name="file_path"   default="$(find map_changer)/config/test1.yaml"/>
<!-- The number of seconds after arriving at a waypoint before the map changes -->
<arg name="wait_time"   default="10.0"/>

<node pkg="map_changer" type="map_changer_node" name="map_changer_node" output="screen">
    <param name="file_path" value="$(arg file_path)"/>
    <param name="wait_time" value="$(arg wait_time)"/>
</node>
</launch>

launch

roslaunch map_changer map_changer.launch