New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why the cartographer_ros public "map" topic can not be accepted correctly by ros navigation? #1031
Comments
You said you successfully created a ROS map with
|
@MichaelGrupp Thank you for your reply. Now the third question has been done. When i launch "move_base" node, "cartographer_node" node(which creates submaps) and "cartographer_occupancy_grid_node" node(which integrates submaps and public "map" topic), and when i specify a goal, there is a path create by "move_base" node, but the path will across the obstacle. When i launch "move_base" node and "slam_gmapping" node, the path will bypasses obstacle. This reason is the same to why do i use "map_server" node to save a map which does not contain obstacle occupation. In other words, the maps created by "gmapping" and "cartographer" respectively have different style data. So how can i do to create real-time cartographer map which has some features:
I hope you can enlighten me. Thank very much! |
I have the same problem |
@alliansmover Hi friend, do you want to use dynamic map created by cartographer and use move_base node to achieve dynamic navigation? If you want to achieve this goal, you will meet a problem that the map created by cartographer can not be accept correctly by move_base node. Right? |
Yes, I have the same problem.Have you solved it? |
@alliansmover yes, i think i had solved this problem. Now the move_base node can identity the obstacle publiced by cartographer_occupancy_grid_node; at the same time, the path created by planner can correctly avoid obstacles. If you want to have the same effects, i can give you some tips:
|
Thanks, I think I seem to know how to solve this problem. |
@alliansmover Good luck. |
Follow-up to #715, spotted by @CccYunxiao, see #1031.
When i use cartographer to create a map that display in rviz correctly, but when i use map_server to save the map which without include the occupancy information.
Then i create a pbstream file and run the node "cartographer_pbstream_to_ros_map", in the end the map contains occupation info.
But i have some questions:
why the cartographer_ros public "map" topic can not be accepted correctly by ros navigation?
how can i make ros navigation package(eg. map_server, move_base ...) correctly read the map create by cartographer_ros?
in the file cartographer_ros/cartographer_ros/cartographer_ros/occupancy_grid_node_main.cc, the function "void PublishOccupancyGrid()" just has declaration, but without realization. Did your team ignore the function or did i not find the realization?
The text was updated successfully, but these errors were encountered: