Ask Your Question
0

Question re ACML_demo rosout messages

asked 2018-01-22 10:24:57 -0500

g-bot gravatar image

Hi All,

I am fairly new to ROS, so forgive a rookie question. When I run amcl_demo.launch and view the output, I can see info such as "goal reached" and "got new plan", and I would like to publish these to a rostopic. Trouble is, I can't seem to find which file these info messages are originating from. I checked through the amcl_demo.launch file, the amcl.launch.xlm, etc. but can't find where the info logging is coming from. Any help would be appreciated.

edit retag flag offensive close merge delete

Comments

I'm not sure of how much use it is, but those messages are "log messages", and are emitted by move_base itself. Specifically: here.

gvdhoorn gravatar imagegvdhoorn ( 2018-01-22 10:50:41 -0500 )edit

It might be better / less invasive to subscribe to the action topic(s) that move_base listens to. You should be able to derive goal status from that.

gvdhoorn gravatar imagegvdhoorn ( 2018-01-22 10:52:52 -0500 )edit

Thanks for the info. I took a look for move_base.cpp, and I can't seem to find it. I found folders move_base_msg, etc. but not move_base.cpp. (I also searched for all .cpp files) Could it be called something else in my distro? I am run indigo (source installation) with a turtlebot 1 (create, kinect

g-bot gravatar imageg-bot ( 2018-01-22 11:40:37 -0500 )edit

If you installed things using apt (or apt-get) you will not find the source code on your system. That is expected.

You'll have to build the navigation stack from source to edit it.

But again: I would look at the action server topics to get at this info.

gvdhoorn gravatar imagegvdhoorn ( 2018-01-22 11:42:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-22 12:44:56 -0500

tfoote gravatar image

Those messages come through the rosconsole logging system: http://wiki.ros.org/rosconsole

The messages are already published on the rosout topic and can be viewed in rqt_console and other similar tools.

A full overview of the logging system can be found here: http://wiki.ros.org/roscpp/Overview/L...

edit flag offensive delete link more

Comments

Hi, I can see that they are being published on rosout, but I am interested in having them published to a new topic that I've created as well. I don't want to have to parse all of the information from rosout just to grab these pieces of info.

g-bot gravatar imageg-bot ( 2018-01-22 13:10:46 -0500 )edit

@g-bot: can you clarify what the problem is with looking at the actionlib Goal, Status and Result topics? Those get you the same info and don't seem to require any modification of move_base code.

gvdhoorn gravatar imagegvdhoorn ( 2018-01-22 14:21:48 -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: 2018-01-22 10:24:57 -0500

Seen: 24 times

Last updated: Jan 22 '18