Ask Your Question
0

How to use an image in move_base to create a map in RVIZ

asked 2018-02-06 04:07:15 -0600

Mark Borg gravatar image

I would like to use the path planning capability of move_base to plot a path through a map that I initialize from an image I created of a white background with black circles on it (I was unable to attach the image not enough points) using this command: rosrun map_server map.png map.yaml I know the map server then publishes an initial map based off of my image, but I am having trouble getting move_base to plot an actual course. I would like to display the plotted course in rviz.

edit retag flag offensive close merge delete

Comments

Please Elaborate on the steps you did to command a Goal, as well as adding the expected Input and the Output you saw...

mgruhler gravatar imagemgruhler ( 2018-02-06 08:09:01 -0600 )edit

In RVIZ the map is displayed and the Pioneer 3dx robot is sitting on the map. I can click on 2D goal and it allows me to place a goal (arrow) on the map. But the robot does not move to that goal. There are no errors. The Pioneer moves with rqt_gui and that movement is reflected in RVIZ

Mark Borg gravatar imageMark Borg ( 2018-02-06 08:42:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-26 13:12:45 -0600

Mark Borg gravatar image

updated 2018-09-26 17:18:26 -0600

jayess gravatar image

The problem I was experiencing was that I had not set up the obstacles_layer correctly. The correction is shown as:

obstacles_layer:
  observation_sources: scanMap
  scanMap: {sensor_frame: laser, data_type: LaserScan, topic: scan, marking: true, clearing: false}
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

1 follower

Stats

Asked: 2018-02-06 04:07:15 -0600

Seen: 64 times

Last updated: Sep 26 '18