frontier_exploration
frontier_exploration copied to clipboard
melodic failed to request goal
Hi, I'm running melodic, properly setup navigation stack, latest melodic-devel branch I'm trying to use the point-click tool from Rviz and I find an issue very similar to https://github.com/paulbovbel/frontier_exploration/issues/41
However it happens later on after polygon is generated.
[WARN] [1558978984.946517955, 746.901000000]: Please select an initial point for exploration inside the polygon
[ INFO] [1558978987.503531121, 749.439000000]: Sending goal
[ INFO] [1558978987.514613285, 749.447000000]: Updating polygon
[ INFO] [1558978987.514674446, 749.447000000]: Requesting a goal
Warning: class_loader.ClassLoader: SEVERE WARNING!!! Attempting to unload library while objects created by this loader exist in the heap! You should delete your objects before attempting to unload the library or destroying the ClassLoader. The library will NOT be unloaded.
at line 122 in /tmp/binarydeb/ros-melodic-class-loader-0.4.1/src/class_loader.cpp
My explore_costmap params look like this:
#must match incoming static map
global_frame: map
robot_base_frame: base_link
resolution: 0.05
rolling_window: false
track_unknown_space: true
plugins:
- {name: static, type: "costmap_2d::StaticLayer"}
- {name: polygon_layer, type: "polygon_layer::PolygonLayer"}
#Can disable sensor layer if gmapping is fast enough to update scans
- {name: sensor, type: "costmap_2d::ObstacleLayer"}
- {name: inflation, type: "costmap_2d::InflationLayer"}
static:
#Can pull data from gmapping, map_server or a non-rolling costmap
# map_topic: /map
map_topic: move_base/global_costmap/costmap
subscribe_to_updates: true
polygon_layer:
resize_to_polygon: true
Any advice for debugging direction?
Hi, I had the same problem as you and I found where the problem is and a solution for that. To explain, I will post two graphs. The first will be a rosgraph using explore_lite and the second a rosgraph using frontier_exploration.
explore_lite:
frontier_exploration:
As you can see, in the first screenshot there is a bidirectional connection between explore node and move_base (move_base/action_topics) but in the second screenshot there is no connection between exploration_server_node and move_base. And exactly that is the problem you mentioned.
So in code you need to change exploration_server/src/exploration_server.cpp. The original (problematic) code is:
As you see exploration_server_node communicates with p3_001/move_base node which is not exist. Now you need to change the node to /move_base in order to be able to use frontier_exploration.
After this change the rosgraph for frontier_exploration will be:
But now there is another problem. If a polygon is set inside map (turquoise color), then everything is working properly. But exploration_server_node dies if the defined exploration polygon is bigger than the map (created from SLAM). For example if you choose this polygon:
you will receive the following error and frontier exploration will stop:
That means that if you use gmapping, you can configure initial map (see gmapping xmin, xmax, ymin, ymax parameters) to be big enough to satisfy your desired exploration polygon. But if you want to use frontier_exploration with cartographer there is a Problem, because using cartographer you can not define the initial size of the map and at the beginning you receive a map with size relative to your laser range(map is as small as possible to reduce CPU load). But I think its better to create a new issue for this problem.
I hope I helped you
Hello I'm still encountered error after following yours way.
Is there anything else that i can do?
I'm using also melodic with jackal simulation thank you
Hi Can you display the error and a screenshot of your rosgraph??? I think it is another error. Thanks
Hii thank you for your fast reply here are the error and the rosgraph
On Tue, Aug 11, 2020 at 5:11 PM PSotiriadis [email protected] wrote:
Hi Can you display the error and a screenshot of your rosgraph??? I think it is another error. Thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paulbovbel/frontier_exploration/issues/47#issuecomment-671857933, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKBDOKJH6JGHLDRAQ6FBTTSAEKM5ANCNFSM4HP5VE6Q .
Hi folks, I apologise, I haven't had the time to bring the melodic branch up to snuff after a sizeable refactor - and hence never cut a melodic releaser. PRs are welcome and appreciated!
thank you for the hardwork We will wait for your work at melodic btw I'm sorry cannot help you because I'm quite new with this system and need learn so much thing right now
On Wed, Aug 12, 2020 at 1:11 AM Paul Bovbel [email protected] wrote:
Hi folks, I apologise, I haven't had the time to bring the melodic branch up to snuff after a sizeable refactor - and hence never cut a melodic releaser. PRs are welcome and appreciated!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/paulbovbel/frontier_exploration/issues/47#issuecomment-672150286, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKBDOOH52IBSOWOKREKRRDSAGCTVANCNFSM4HP5VE6Q .