Skip to content

Commit

Permalink
Render the point cloud.
Browse files Browse the repository at this point in the history
  • Loading branch information
fanweng committed Dec 4, 2020
1 parent 16d5d3c commit 80be982
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lidar_Obstacle_Detection/src/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ void simpleHighway(pcl::visualization::PCLVisualizer::Ptr& viewer)
// ----------------------------------------------------

// RENDER OPTIONS
bool renderScene = true;
bool renderScene = false;
std::vector<Car> cars = initHighway(renderScene, viewer);

// Create lidar sensor
Lidar* lidar = new Lidar(cars, 0);
pcl::PointCloud<pcl::PointXYZ>::Ptr pointCloud = lidar->scan();
renderRays(viewer, lidar->position, pointCloud);
// renderRays(viewer, lidar->position, pointCloud);
renderPointCloud(viewer, pointCloud, "pointCloud");

// TODO:: Create point processor

Expand Down

0 comments on commit 80be982

Please sign in to comment.