ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Coordinates of new area of a map

asked 2013-07-03 05:21:18 -0600

barrybear gravatar image

Hello all!

I am using a Pioneer P3AT to apply map building and autonomous navigation using a hokuyo laser with GMapping and Navigation stack. However for the autonomous navigation part, I was success to allow a random selection of unknown cell and move the robot to that cell. After actually applying this to the robot, I realized that the robot seems to be moving in a circle and always stay at the same area.

I thought that if i could obtain the coordinates of the new area being built while mapping, I could direct the robot to move to that area instead..but I don't know if its possible as subscribing the /map topic could publish random points?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-07-03 05:47:08 -0600

dornhege gravatar image

I'm not really sure, what you mean, but you can subscribe to the /map topic without any problems. That cannot result in publishing random points in any way.

edit flag offensive delete link more

Comments

Oh I'm sorry, what I meant was instead of using random coordinates from move_base/local_costmap/unknown_space, I was thinking if its possible to obtain the coordinates of just-discovered-new area in the map and setting it as the move_base_simple/goal

barrybear gravatar image barrybear  ( 2013-07-03 05:50:51 -0600 )edit

In that case, you'd have to track that by recording the change in the map. The easiest would probably be to determine the frontiers and look at which one changes (or just drive to the one in front of the robot)

dornhege gravatar image dornhege  ( 2013-07-04 02:44:47 -0600 )edit

Yeah I'm wondering if there is way to do so autonomously.. Cant seem to figure out despite subscribing to the /map and /map_metadata topic

barrybear gravatar image barrybear  ( 2013-07-08 22:19:27 -0600 )edit

If by autonomously, you mean by ROS facilities, then I don't think there is something generic available. You could look into map based exploration packages though. You'd at least get the frontiers.

dornhege gravatar image dornhege  ( 2013-07-09 01:39:01 -0600 )edit

Oh okay, I was just thinking if there is a way to extract out the coordinates of the new area of the map being created

barrybear gravatar image barrybear  ( 2013-07-09 02:54:30 -0600 )edit

Question Tools

Stats

Asked: 2013-07-03 05:21:18 -0600

Seen: 360 times

Last updated: Jul 03 '13