Skip to content

Commit a90a149

Browse files
authored
Update lidar_node.cpp
1 parent f61da78 commit a90a149

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎src/lidar/src/lidar_node.cpp‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
#include <pcl/io/pcd_io.h>
1818

1919
#include <cv_bridge/cv_bridge.h>
20-
#include <opencv/cv.h>
21-
#include <opencv/highgui.h>
20+
#include <opencv2/core.hpp>
21+
#include <opencv2/highgui.hpp
2222
#include <opencv2/highgui/highgui.hpp>
23+
#include <opencv2/highgui/highgui_c.h>
2324

2425
#include <ros/ros.h>
2526
#include <ros/console.h>
@@ -171,14 +172,14 @@ int main(int argc, char** argv)
171172
// Setup image
172173
cv::Mat map(IMAGE_HEIGHT, IMAGE_WIDTH, CV_8UC3, cv::Scalar(0, 0, 0));
173174
heightmap = &map;
174-
cvNamedWindow("Height Map", CV_WINDOW_AUTOSIZE);
175+
cvNamedWindow("Height Map", WINDOW_AUTOSIZE);
175176
cvStartWindowThread();
176177
cv::imshow("Height Map", *heightmap);
177178

178179
// Setup Image Output Parameters
179180
fnameCounter = 0;
180181
lowest = FLT_MAX;
181-
compression_params.push_back(CV_IMWRITE_PNG_COMPRESSION);
182+
compression_params.push_back(IMWRITE_PNG_COMPRESSION);
182183
compression_params.push_back(9);
183184

184185
// Setup indicies in point clouds

0 commit comments

Comments
 (0)