EAIBOT / ydlidar

The driver of ydlidar for ROS on the linux !
101 stars 61 forks source link

[FIXED] laser_test.cpp could not compile #3

Open Delta-Sigma opened 6 years ago

Delta-Sigma commented 6 years ago

static array was being initialized with a variable specifying size. hence the code did not compile. Changed node_count to NODE_COUNTS in publicScanData function. Removed the parameter node_count from the function and its call, as it was redundant.

Delta-Sigma commented 6 years ago

I came to know recently that variable sized arrays can be used with g++ with extensions, but I guess removing this requirement would be a good thing, considering that variable sized array was not really required.