Skip to content
Snippets Groups Projects
Commit 6665aa0a authored by Tixiao Shan's avatar Tixiao Shan
Browse files

update readme

parent ad32c990
No related branches found
No related tags found
No related merge requests found
......@@ -181,11 +181,12 @@ rosbag play your-bag.bag -r 3
<img src="./config/doc/ouster-demo.gif" alt="drawing" width="300"/>
</p>
- **Livox Horizon lidar:** Please note that solid-state lidar hasn't been extensively tested with LIO-SAM yet. An external IMU is also used here rather than the internal one. The support for such lidars is based on minimal change of the codebase from mechanical lidars. Other SLAM solutions may offer better implementations. More studies and suggestions are welcome. Please change the following parameters to make LIO-SAM work with Livox Horizon lidar:
- **Livox Horizon lidar:** Please note that solid-state lidar hasn't been extensively tested with LIO-SAM yet. An external IMU is also used here rather than the internal one. The support for such lidars is based on minimal change of the codebase from mechanical lidars. A customized [livox_ros_driver](https://github.com/TixiaoShan/livox_ros_driver) needs to be used to publish point cloud format that can be processed by LIO-SAM. Other SLAM solutions may offer better implementations. More studies and suggestions are welcome. Please change the following parameters to make LIO-SAM work with Livox Horizon lidar:
- sensor: livox
- N_SCAN: 6
- Horizon_SCAN: 4000
- edgeFeatureMinValidNum: 1
- Use [livox_ros_driver](https://github.com/TixiaoShan/livox_ros_driver) for data recording
<p align='center'>
<img src="./config/doc/livox-demo.gif" alt="drawing" width="600"/>
......
......@@ -84,7 +84,7 @@ private:
double timeScanEnd;
std_msgs::Header cloudHeader;
vector<int> columnIdnCountLivox;
vector<int> columnIdnCountVec;
public:
......@@ -141,7 +141,7 @@ public:
imuRotZ[i] = 0;
}
columnIdnCountLivox.assign(N_SCAN, 0);
columnIdnCountVec.assign(N_SCAN, 0);
}
~ImageProjection(){}
......@@ -552,8 +552,8 @@ public:
}
else if (sensor == SensorType::LIVOX)
{
columnIdn = columnIdnCountLivox[rowIdn];
columnIdnCountLivox[rowIdn] += 1;
columnIdn = columnIdnCountVec[rowIdn];
columnIdnCountVec[rowIdn] += 1;
}
if (columnIdn < 0 || columnIdn >= Horizon_SCAN)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment