|
Last edited by Fred In 2020-12-30 08:25 Editor
Hey,This is Fred.great thanks for your interest in livox. I do not have solution for these problems, but i can give you some suggestions on these two question, hope that could help you
First, You can add one rotation to the control condition of speed change as the criterion.
" If (glb_angle>177+setting_angle/2)
target_rpm=-setting_speed;
If(glb_angle<183 -setting_angle/2)
target_rpm=setting_speed; "
or you can add an angle control loop and use PID control to stop the device at a certain angle, this method could have a higher accuracy.
As for the second problem, We can get Lidar timestamp from Lidar data. Save the pointcloud via this time.
msg.header.frane_id="livox_frame";
msg.header.stamp.sec=cloud_msg - >header.stamp.sec;
msg.header.stamp.nsec=cloud_msg->header.stamp.nsec;
Hope these could help you! |
|