Skip to content

Commit 5dbad3f

Browse files
committed
refactor(aeva)!: rename v point field to distance_rate
1 parent b6da1ed commit 5dbad3f

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

docs/point_types.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ These definitions can be found in the `nebula_common/include/point_types.hpp`.
5757

5858
## PointXYZVIRCAEDT
5959

60-
| Field | Type | Units | Description |
61-
| ------------- | -------- | ----- | --------------------------------------------------------------------------- |
62-
| `x` | `float` | `m` | The point's cartesian x coordinate. |
63-
| `y` | `float` | `m` | The point's cartesian y coordinate. |
64-
| `z` | `float` | `m` | The point's cartesian z coordinate. |
65-
| `v` | `float` | `m/s` | The point's velocity component in the direction of the sensor's origin. |
66-
| `intensity` | `uint8` | | The intensity of the return as reported by the sensor. |
67-
| `return type` | `uint8` | | Whether the point was the first, strongest, last, etc. of multiple returns. |
68-
| `channel` | `uint16` | | The ID of the laser channel that produced the point. |
69-
| `azimuth` | `float` | `rad` | The point's azimuth in polar coordinates. |
70-
| `elevation` | `float` | `rad` | The point's elevation in polar coordinates. |
71-
| `distance` | `float` | `m` | The point's distance from the sensor origin. |
72-
| `timestamp` | `uint32` | `ns` | The time the point was detected relative to the pointcloud timestamp. |
60+
| Field | Type | Units | Description |
61+
| --------------- | -------- | ----- | --------------------------------------------------------------------------- |
62+
| `x` | `float` | `m` | The point's cartesian x coordinate. |
63+
| `y` | `float` | `m` | The point's cartesian y coordinate. |
64+
| `z` | `float` | `m` | The point's cartesian z coordinate. |
65+
| `distance_rate` | `float` | `m/s` | The point's velocity component in the direction of the sensor's origin. |
66+
| `intensity` | `uint8` | | The intensity of the return as reported by the sensor. |
67+
| `return type` | `uint8` | | Whether the point was the first, strongest, last, etc. of multiple returns. |
68+
| `channel` | `uint16` | | The ID of the laser channel that produced the point. |
69+
| `azimuth` | `float` | `rad` | The point's azimuth in polar coordinates. |
70+
| `elevation` | `float` | `rad` | The point's elevation in polar coordinates. |
71+
| `distance` | `float` | `m` | The point's distance from the sensor origin. |
72+
| `timestamp` | `uint32` | `ns` | The time the point was detected relative to the pointcloud timestamp. |

nebula_common/include/nebula_common/aeva/point_types.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct EIGEN_ALIGN16 PointXYZVIRCAEDT
2424
float x;
2525
float y;
2626
float z;
27-
float v;
27+
float distance_rate;
2828
uint8_t intensity;
2929
uint8_t return_type;
3030
uint16_t channel;
@@ -39,7 +39,7 @@ struct EIGEN_ALIGN16 PointXYZVIRCAEDT
3939

4040
POINT_CLOUD_REGISTER_POINT_STRUCT( // NOLINT
4141
nebula::drivers::aeva::PointXYZVIRCAEDT,
42-
(float, x, x)(float, y, y)(float, z, z)(float, v, v)(std::uint8_t, intensity, intensity)(
43-
std::uint8_t, return_type,
44-
return_type)(std::uint16_t, channel, channel)(float, azimuth, azimuth)(
45-
float, elevation, elevation)(float, distance, distance)(std::uint32_t, time_stamp, time_stamp))
42+
(float, x, x)(float, y, y)(float, z, z)(float, distance_rate, distance_rate)(
43+
std::uint8_t, intensity, intensity)(std::uint8_t, return_type, return_type)(
44+
std::uint16_t, channel, channel)(float, azimuth, azimuth)(float, elevation, elevation)(
45+
float, distance, distance)(std::uint32_t, time_stamp, time_stamp))

nebula_decoders/src/nebula_decoders_aeva/aeva_aries2_decoder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void AevaAries2Decoder::processPointcloudMessage(const aeva::PointCloudMessage &
5454
point.y = xy_distance * std::cos(point.azimuth);
5555
point.z = point.distance * std::sin(point.elevation);
5656

57-
point.v = raw_point.velocity.value();
57+
point.distance_rate = raw_point.velocity.value();
5858
point.intensity = raw_point.intensity;
5959

6060
point.time_stamp = state.absolute_time_ns - cloud_state_.timestamp;

0 commit comments

Comments
 (0)