Ask Your Question
0

How can i use a pre loaded map in navigation stack?

asked 2019-06-05 07:07:42 -0500

sajal gravatar image

I'm making a robot using RPi. I made a map using my hector_slam and rplidar on my laptop, so I have the pgm and yaml files (I was having some issue running hector_slam on RPi). How can I use it in the navigation stack. Do I need to create a map_server node and publish it? If yes, how should I do it.

edit retag flag offensive close merge delete

Comments

1

This is all discussed in the Navigation Stack tutorials.

billy gravatar imagebilly ( 2019-06-05 13:53:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-06-06 08:49:40 -0500

Lucas Marins gravatar image

You may use the map_server node at your launch file. Do not forget to upload the.yaml file.

Something like this.

  <arg name="map_file" default="$(find robot_navigation)/maps/my_map.yaml"/>
  <node name="map_server" pkg="map_server" type="map_server" args="$(arg map_file)" />
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2019-06-05 07:07:42 -0500

Seen: 39 times

Last updated: Jun 06