Home | Tutorials | Wiki | Issues
Ask Your Question

How print the output of a plugin ?

asked 2017-10-05 12:30:55 -0600

ronan gravatar image


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 ?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-05 12:49:54 -0600

chapulina gravatar image

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-10-05 12:30:55 -0600

Seen: 1,708 times

Last updated: Oct 05 '17