Home | Tutorials | Wiki | Issues
Ask Your Question
0

How print the output of a plugin ?

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

ronan gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Stats

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

Seen: 27 times

Last updated: Oct 05