I may try suggesting some extra features to Livox Viewer that can eliminate all this R&D and turn any of their Lidars into rotational scanner right through Livox Viewer.
I do not know much about point clouds and not much about their hardware but their Lidars have Extrinsic Calibration feature that allow to apply yaw pitch and roll to a
lidar.
Once it is done and you start getting data the point cloud is placed according to entered values directly in Livox Viewer. If Livox adds an interface to their viewer for these values for a user to add them manually, set some timers accounting for rotation and time for capturing data it already is turning any of their Lidars into 360 scanners.
Just an example, you can have a lidar on a Mecha head set to rotate 360 degree with 20 stops(18 degrees each). The lidar(MID-40) needs 3 seconds to get the maximum coverage in its FOV. Rotating to each position takes say 2 seconds.
So in new Viewer interface you can set 20 positions for full 360 coverage, 3 seconds for rotation(just in case ) and 4 seconds for the lidar to be on(capturing data).
It starts with 0 degree position so extrinsic Calibration should set yaw to 0 degrees, then within 7 seconds(3+4) you have captured the data in front of the lidar with it is heading as it is placed on the ground. Then Viewer sends a command to the lidar to calibrate its yaw by 18 degrees while Mecha has already turn it physically 18 degrees. Now when Lidar is On again the data will be rotated in the Viewer and placed exactly where it should be relevant to the previous Lidar position and it goes on until it is finished full 360 rotation.
It actually works when done manually but there is too much time involved. You need to stop sampling manually and select captured data to go to extrinsic Calibration, then you need to apply yaw by entering a value, click apply and write this yaw value into the Lidar. Then you need another 3 seconds to capture rotated data. And after every position you need to save the data.
I have tested with just one rotation and two point clouds are actually come aligned. There may be some tiny misalignment but it is probably due to two factors. I am quite sure Mecha may not be rotating it 18 degrees exactly.. it can be 18.2.. 18.05 while I am entering exactly 18 degrees for yaw in calibration. And second it may suffer from a slight distortion due to parallax error so it is better to now where the laser is emitting from to set a rotation point of a nodal head close to that emitting point.
If somebody wants to see what you can get from my experiment with one rotations and changing yaw through Extrinsic Calibration and capturing the second set I am happy to share it on Google Drive.
You will need to download CloudCompare to load both point clouds at the same time and see how they are aligned.
CloudCompare is free.
Now imagine Livox can add an ability to connect an external IMU by simply letting users to specify IMU data format and what COM port Viewer should listen to. You align the IMU on top of the lidar and you can apply not only yaw data but also pitch and roll coming from the specified COM port in real time.
What else I have discovered? First I have finally got a meter for lipo batteries. It is kind of bad when you run something from lipo batteries (lidar, robot tank .. etc) but have no idea how much juice left. Now for just $20 I have a display that shows voltage.
And another discovery: Not sure how I could not find it for days but there is actually Livox SDK for Windows. it is not just offered through Livox website and you can only get it on github from non related to Livox person. For some reason(I guess wrong version of visual studio) I cannot compile it but I have already asked the guy who is sharing it to help. he offers different compile commands for different version of Visual Studio and he stops at 2017. Mine is fresh 2022 and I guess it may affect while I cannot compile it with Cmake.