ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The Ptr/ConstPtr are defined by the ROS message generation and are boost shared pointers. AFAIK Msg::Ptr and MsgPtr are exactly the same thing, i.e. it's just a typedef.

As to your actual code, you only define a pointer occGrid, but never fill that with the actual nav_msgs data structure, so it points to nothing.