Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the ConstWorldStatisticsPtr datatype?

I was going through the tutorial on Topics and the souce code gazebo / examples / stand_alone / listener / (

I got a question on the callback function.

///////////////////////////////////////////////// // Function is called everytime a message is received. void cb(ConstWorldStatisticsPtr &_msg) {
// Dump the message contents to stdout. std::cout << _msg->DebugString(); }

I can see that ConstWorldStatisticsPtr deals with worldstatistics messages. But where can I find documents about this datatype? And if I want to process SonarStamped, what Const Ptr should be used?