How to use .msg in source code as a variable?
I want to use nav_msg/GridCells.msg and OccupancyGrid in my package,How to use it in the source code. It is not a member of nav_msgs and it is only a .msg and I am unable find documentation for using GridCells as a member variable i.e. I want to initialize occupancy grid and add data to it and publish it as a topic. I want to do in cpp.
@balakumar-s please accept the question by using the checkbox at the left of the answer instead of closing it. (the checkbox will implicitly close it, and reward the answerer with karma.
@tfoote Thanks I did that now.