How print the output of a plugin ?
Hello,
I'm writing a plugin and it does work yet. So I'd like to debug it. I put some messages in the script of the plugin to see if the Callback is launch but they don't appear in my terminal. Like this : std::cout << "message"<< std::endl;
I launch Gazebo with a roslaunch command.
Do you know where I could see this messages ?
Thanks
Asked by ronan on 2017-10-05 12:30:55 UTC
Answers
I believe you should be seeing these messages, but in any case, another option would be to use Gazebo's logging tool. Add extra_gazebo_args=:"--verbose"
to your roslaunch command so that Gazebo is running in verbose mode. Then from your plugin, you can use gzdbg << "message" << std::endl;
and that should be printed in blue when you run the program. If you don't see it, that line is probably not being executed.
Asked by chapulina on 2017-10-05 12:49:54 UTC
Comments
There is typo. It should be
extra_gazebo_args:="--verbose"
Asked by jungx148 on 2020-11-02 22:24:14 UTC
Comments