File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ struct PointXYZIR
1818 EIGEN_MAKE_ALIGNED_OPERATOR_NEW // make sure our new allocators are aligned
1919} EIGEN_ALIGN16; // enforce SSE padding for correct memory alignment
2020
21+
22+ struct PointXYZIRNormal
23+ {
24+ PCL_ADD_POINT4D; // preferred way of adding a XYZ+padding
25+ PCL_ADD_UNION_NORMAL4D;
26+ float intensity;
27+ float range;
28+ EIGEN_MAKE_ALIGNED_OPERATOR_NEW // make sure our new allocators are aligned
29+ } EIGEN_ALIGN16; // enforce SSE padding for correct memory alignment
30+
2131}
2232
2333POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PointXYZIR,
@@ -28,4 +38,15 @@ POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PointXYZIR,
2838 (float , range, range)
2939 )
3040
41+ POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PointXYZIRNormal,
42+ (float , x, x)
43+ (float , y, y)
44+ (float , z, z)
45+ (float , normal_x, normal_x)
46+ (float , normal_y, normal_y)
47+ (float , normal_z, normal_z)
48+ (float , intensity, intensity)
49+ (float , range, range)
50+ )
51+
3152#endif /* AM_UTILS_INCLUDE_AM_UTILS_POINT_TYPE_H_*/
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class am_topics
9090 static constexpr char SENSOR_DISTANCE_AGL_LW[] = " /sensor/distance/agl_lw" ;
9191 static constexpr char SENSOR_DISTANCE_DISTANCES_LW20[] = " /sensor/distance/distances_lw20" ;
9292
93- static constexpr char SENSOR_PROXIMITY[] = " /sensor/proximity" ;
93+ static constexpr char SENSOR_PROXIMITY[] = " /sensor/proximity" ;
9494
9595 // dji vision topics generated by dji_vision nodes(raw and rectified for both ImageTransport and SharedMemory)
9696 // image_transport
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ constexpr char am_topics::SENSOR_DISTANCE_AGL[];
8484constexpr char am_topics::SENSOR_DISTANCE_AGL_LW[];
8585constexpr char am_topics::SENSOR_DISTANCE_DISTANCES_LW20[];
8686
87+ constexpr char am_topics::SENSOR_PROXIMITY[];
88+
8789constexpr char am_topics::STATUS_CEIL[];
8890constexpr char am_topics::STATUS_CORR[];
8991constexpr char am_topics::STATUS_LIDAR[];
You can’t perform that action at this time.
0 commit comments