How do I find OccupancyGrid message data, and how do I use it with QImage?
Hello, I'm a real amateur and just started not long ago, and I'm currently using LIDAR and an aerial vehicle. Basically I'm stucked at this situation where I don't know how am I gonna find out the OccupancyGrid message data and how to use it.
void QNode::parsemap( const nav_msgs::OccupancyGrid::ConstPtr& msg ) {
if( mapImage == NULL ) {
mapImage = new QImage( 240, 350, QImage::Format_RGB888 );
}
// copy map from msg to mapImage.
yeah, I'm stucked here trying to copy the map from the message data to mapImage(QImage).
I'm a real real real amateur... so don't be too hard on me if I'm asking a very simple question. I really hope that you guys would be able to help this friend in need. Thank you all, in advance. :)