I want to get the angle value of each point for data format 1 #148

Open
opened 2021-09-25 12:44:08 +02:00 by yuyu19970716 · 1 comment
yuyu19970716 commented 2021-09-25 12:44:08 +02:00 (Migrated from github.com)

Hello, I want to know how to get the angle value of each point for data format 1?

Hello, I want to know how to get the angle value of each point for data format 1?
Livox-SDK commented 2021-10-08 16:16:49 +02:00 (Migrated from github.com)

Hi @yuyu19970716
you can refer to

void LdsLidar::GetLidarDataCb(uint8_t handle, LivoxEthPacket *data,
                              uint32_t data_num, void *client_data) {
...

LivoxSpherPoint *p_point_data = (LivoxSpherPoint *)data->data;
for (uint32_t i = 0; i < data_num; i++) {
  // each point's angle value
  // uint16_t theta = p_point_data[i].theta;
  // uint16_t phi = p_point_data[i].phi;
}

...
}
Hi @yuyu19970716 you can refer to ``` void LdsLidar::GetLidarDataCb(uint8_t handle, LivoxEthPacket *data, uint32_t data_num, void *client_data) { ... LivoxSpherPoint *p_point_data = (LivoxSpherPoint *)data->data; for (uint32_t i = 0; i < data_num; i++) { // each point's angle value // uint16_t theta = p_point_data[i].theta; // uint16_t phi = p_point_data[i].phi; } ... } ```
This repo is archived. You cannot comment on issues.
1 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mmr/Livox-SDK#148