slam_gmapping icon indicating copy to clipboard operation
slam_gmapping copied to clipboard

Log messages should be sent to rosinfo roserr etc. if possible.

Open tsbertalan opened this issue 8 years ago • 1 comments

gmapping spams the console with lots of unnecessary "Registering Scans:Done" and "Laser Pose= 1.9015 1.58619 1.4151" messages. These should be removed, or sent to the standard ros logging streams. As is, as far as I can tell, they're printed directly to std::cerr in gridfastslam/gridslamprocessor.hxx (not in this repository). Redirecting stderr is not a good workaround; I do want to see real errors.

tsbertalan avatar Dec 03 '16 16:12 tsbertalan

Gridslamprocessor is outside of ROS's jurisdiction - it is here in openSLAM: https://github.com/OpenSLAM-org/openslam_gmapping/blob/master/gridfastslam/gridslamprocessor.hxx

If you really have a personal vendetta against this error message, you can find the file in ros: /opt/ros/melodic/include/gmapping/gridfastslam/gridslamprocessor.hxx /opt/ros/melodic/include/gmapping/gridfastslam/gridslamprocessor.h

and edit out the cerr's there.

To reduce code duplication, this package shouldn't do that. ;( If you want to fix this for everyone, you can submit a PR to the openSLAM with a #ifdef maybe which will stop the logging.

acenturyandabit avatar May 25 '22 16:05 acenturyandabit