qtcreator debug ROS
Hi,
I tried to run a ros node in qtcreator (version 3.5.1). It works in debug mode, I can have breakpoints, see variables ... I was able to change option for CMAKE ... with option Debug. No problem I think here;
But I don't see where are the outputs (I have ROSINFO lines in my ros file). I can see that it works when I do a "rostopic echo /rosoutagg" in another terminal. But it's difficult to see my debug messages with others messages which come in.
So my question is simple: where can I see the messages when I execute lines with ROS_INFO.
Thanks for help
qtcreator 3.5.1, ubuntu 14.04.3, ROS indigo
Asked by goupil35000 on 2015-10-24 15:33:58 UTC
Answers
If you start your node from inside QtCreator (as opposed to attaching to a node you started externally), you should be able to see it's output in the "3 Application Output" Tab as visible on the bottom in this Screenshot from Wikipedia.
Asked by Stefan Kohlbrecher on 2015-10-25 03:56:10 UTC
Comments
Hi, Thanks Stefan. But In Application Output I only have "Debugging starts" and "Debugging has finished". No output from ROS_INFO.
So the question is still there.
Asked by goupil35000 on 2015-10-25 04:28:21 UTC
Comments
In Debug mode you should be able to see your info messages in Qt Application Output. I attached an image of my project in which you can see the output of a ROS_INFO line.
Hope this helps.
Asked by mrslvgg on 2015-10-26 03:14:52 UTC
Comments
Hi Mario, Thanks but I don't have the same as you. I tried with part of your code, and it's the same. In Application Output, I get "Debugging starts" and after ... nothing. Except Debugging has finished when I stop the code (I publish in a topic every second). Is-it a bug ? Thanks.
Asked by goupil35000 on 2015-10-26 15:39:22 UTC
I suggest few things: - make sure you start qt creator from terminal, after sourced your environment - make sure to uncheck the "run in terminal" checkbox in "project->run settings" - check cmake argument -DCMAKE_BUILD_TYPE=Debug - try to remove CMakeLists.txt.user in your catkin_ws and restart qt.
Asked by mrslvgg on 2015-10-26 15:56:26 UTC
Comments