ntnu-arl / gbplanner_ros

Graph-based Exploration Planner for Subterranean Environments
BSD 3-Clause "New" or "Revised" License
667 stars 152 forks source link

Exploration Demo Not Working #24

Open SwiftGust opened 2 years ago

SwiftGust commented 2 years ago

Hi, I have encountered issue when running demo simulations on ROS Melodic (Ubuntu 18.04) following instructions After clicking "Initialization" and "Start Planner" in order, the exploration planner never leads vehicle to out of starting location. It just goes back and forth in starting area This behavior is similar in case of 'smb_sim' too.

How can I make exploration running?

Only console output to note for both cases [GBPLANNER] Very low local gain. Triggering global planner

I'm using latest gbplanner2 branch of this repository, resolved few compile issue other than that it is default as is.

image

image

MihirDharmadhikari commented 2 years ago

Hi @SwiftGust

It seems like the robot does not find enough exploration gain to proceed into the environment. This is not expected. Can you try to visualize the following topics:

Can you visualize these and send a screenshot of them?

Best, Mihir

SwiftGust commented 2 years ago

Hi @MihirDharmadhikari

I have checked this as you mentioned and topics you mentioned are visualized by default setting (except planning_workspace topic)

Exhibit issues as follows

Rviz screenshot is attached below image

MihirDharmadhikari commented 2 years ago

Seems like the planner is not able to build the graph. Are you using the default parameters? Also, had you built the code with -DCMAKE_BUILD_TYPE=Release?

SwiftGust commented 2 years ago

Hi, @MihirDharmadhikari Sorry for late response I have built code with -DCMAKE_BUILD_TYPE=RelWithDebInfo Is this could cause a trouble? It just adds debug symbol in addition to Release mode. I have also built it and tested in Release mode, problem persists

Workspace config is as follows

$ catkin config
--------------------------------------------------------------
Profile:                     default
Extending:        [explicit] /opt/ros/melodic
Workspace:                   /home/swift/gbplanner2_ws
--------------------------------------------------------------
Build Space:        [exists] /home/swift/gbplanner2_ws/build
Devel Space:        [exists] /home/swift/gbplanner2_ws/devel
Install Space:      [unused] /home/swift/gbplanner2_ws/install
Log Space:          [exists] /home/swift/gbplanner2_ws/logs
Source Space:       [exists] /home/swift/gbplanner2_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=Release
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
--------------------------------------------------------------
Workspace configuration appears valid.
--------------------------------------------------------------
MihirDharmadhikari commented 2 years ago

Hello,

I tried to reproduce this error from my side on a clean installation but was unable to reproduce this. You can try one thing, which is setting this to Verbosity::DEBUG and see if there are any warnings or errors printed by the planner.

Best, Mihir