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 / listener.cc (https://bitbucket.org/osrf/gazebo/src/8b0c2de0886a61a862036f7e7fe1d4b7b8b4651c/examples/stand_alone/listener/listener.cc?at=gazebo_1.9).

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?