Products + Follow Have 7 Audience + New Thread

Lidar scanner

[Copy Link]
Author: san | Time: 2020-12-24 00:39:52 | MID-40|
2 2946

2

Threads

3

Posts

30

Credits

Kindergarten

Rank: 1

Credits
30
Posted on 2020-12-24 00:39:52| All floors |Read mode
Last edited by san In 2020-12-24 00:58 Editor

Hi everyone,
I am a young architect, even though I am not a developer,
I was been able to use 360 ​​degree livox scans, following this:
https://github.com/Livox-SDK/livox_scanner
Now I would like to edit the source and save the point clouds and perform a single full scan.

Because the lidar now scans back and forth many times.
Can you help me understand the code in this file

https://github.com/Livox-SDK/livox_scanner/blob/master/scanner_publisher/src/pointcloud_publisher.cpp
I'd like to:
1 - enter the number of revolution of the servo (how many time it makes back and forth)

2- save point cloud file with timestamp.

Thanks in advance
Reply

Use props Report

0

Threads

4

Posts

26

Credits

Kindergarten

Rank: 1

Credits
26
Posted on 2020-12-29 22:12:03| All floors
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!
Reply

Use props Report

2

Threads

3

Posts

30

Credits

Kindergarten

Rank: 1

Credits
30
 Author| Posted on 2020-12-31 06:58:20From mobile phones | All floors
thank you sir I will try it
Reply

Use props Report

You need to log in before you can reply Login | Register

Credit Rules

Quick Reply Back to top