Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ptr in function parameter[in]

Beginner Tutorial: Velodyne Sensor

public: virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf)
    {
      // Just output a message for now
      std::cerr << "\nThe velodyne plugin is attach to model[" <<
        _model->GetName() << "]\n";
    }

I am new to C++, i want to know more about the Ptr in function parameter[in], it can be seen everywhere.

Any gentle guide or hint would be appreciated.

Thanks for your kindness