Ask Your Question
1

Loading empty map to move_base

asked 2011-02-17 12:19:05 -0500

zhiping gravatar image

updated 2014-01-28 17:09:10 -0500

ngrennan gravatar image

previous message link

Thanks for the reply.

My main intention is to add Slam ability to my robot.

I tried to use gmapping to replace the map_server to produce a concurrent updating map. But the calculation is too demanding on my laptop. I'm thinking whether i can make a simplified Slam to reduce the computational demand on my laptop.

Currently when i published an empty map, which contains all unknown pixels, from my "/map" (nav_msgs::Occupany_msgs) topic, the map is not shown in rviz and the tf containing the odom to map is not created.

Is there any easier ways to solve it?

Sorry to trouble your guys.

With thanks, Zhiping

laptop specification

core2 duo

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-02-17 22:11:45 -0500

Eric Perko gravatar image

updated 2011-02-17 22:15:04 -0500

AMCL only operates with an a priori map, so it's not really appropriate for a situation where the map is constantly changing or being refined.

Does rviz's behavior change if you fill the map with free space instead of unknown space? It's possible that rviz is designed to ignore pixels marked as "unknown", but I'm not sure about that. Do you get any errors in rviz while attempting to show your map topic?

In standard usage, the odom->map transform is generated by either AMCL or Gmapping. Since you are using neither, you will have to publish this transform yourself from your SLAM node. See REP 105 for more details.

edit flag offensive delete link more

Comments

In this case, does it means that i might not be able to use particle filter, which is available in Amcl for localiation? There is no abnormality in rviz. The only error is that i need to publish the tf between odom and map. Would it be sufficient if i use the combined_odom from EKF localization and initial_pose from rivz to compute the resultant TF between odom and map ? Sorry to ask so many questions. I really appreciated your help and advice. With thanks, Zhiping
zhiping gravatar image zhiping  ( 2011-02-20 23:45:24 -0500 )edit
You will need to run a localization service. SLAM is simultaneous mapping and localization. If you don't do them both in one process you need a map a priori for a localization service to work against. Other things like robot_pose_ekf do not do localization, they produce odometry.
tfoote gravatar image tfoote  ( 2011-03-02 10:56:45 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2011-02-17 12:19:05 -0500

Seen: 1,500 times

Last updated: Feb 18 '11