NVIDIA DeepStream SDK API Reference
6.2 Release
lidar_3d_datatype.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3
* SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4
*
5
* NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6
* property and proprietary rights in and to this material, related
7
* documentation and any modifications thereto. Any use, reproduction,
8
* disclosure or distribution of this material and related documentation
9
* without an express license agreement from NVIDIA CORPORATION or
10
* its affiliates is strictly prohibited.
11
*/
12
13
#ifndef _DS3D_COMMON_LIDAR_DATATYPE__H
14
#define _DS3D_COMMON_LIDAR_DATATYPE__H
15
16
#include <ds3d/common/common.h>
17
#include <ds3d/common/idatatype.h>
18
19
#undef DS3D_MAX_LABEL_SIZE
20
#define DS3D_MAX_LABEL_SIZE 128
21
22
/*
23
* Pointcloud Coordinate System
24
* pointcloud & box coordinate system, x -> front, y -> left, z -> up
25
*
26
*
27
* up z x front (yaw=0)
28
* ^ ^
29
* | /
30
* | /
31
* (yaw=0.5*pi) left y <------ 0
32
*/
33
namespace
ds3d
{
34
35
struct
Lidar3DBbox
{
36
float
centerX
= 0.0f;
37
float
centerY
= 0.0f;
38
float
centerZ
= 0.0f;
39
float
width
= 0.0f;
40
float
length
= 0.0f;
41
float
height
= 0.0f;
42
float
yaw
= 0.0f;
43
int
cid
= 0;
44
float
score
= 0.0f;
45
vec4b
bboxColor
= {{255, 255, 0, 255}};
// RGBA
46
char
labels
[
DS3D_MAX_LABEL_SIZE
] = {0};
47
48
Lidar3DBbox
() =
default
;
49
Lidar3DBbox
(
float
centerX_,
float
centerY_,
float
centerZ_,
float
width_,
float
length_,
50
float
height_,
float
yaw_,
int
cid_,
float
score_)
51
:
centerX
(centerX_),
centerY
(centerY_),
centerZ
(centerZ_),
width
(width_),
length
(length_),
52
height
(height_),
yaw
(yaw_),
cid
(cid_),
score
(score_) {}
53
};
54
55
}
56
57
#endif
ds3d::Lidar3DBbox::yaw
float yaw
Definition:
lidar_3d_datatype.h:42
ds3d::Lidar3DBbox::width
float width
Definition:
lidar_3d_datatype.h:39
ds3d::Lidar3DBbox::Lidar3DBbox
Lidar3DBbox()=default
ds3d::Lidar3DBbox::cid
int cid
Definition:
lidar_3d_datatype.h:43
ds3d::Lidar3DBbox::bboxColor
vec4b bboxColor
Definition:
lidar_3d_datatype.h:45
ds3d::Lidar3DBbox::Lidar3DBbox
Lidar3DBbox(float centerX_, float centerY_, float centerZ_, float width_, float length_, float height_, float yaw_, int cid_, float score_)
Definition:
lidar_3d_datatype.h:49
ds3d::Lidar3DBbox::score
float score
Definition:
lidar_3d_datatype.h:44
ds3d::Lidar3DBbox::length
float length
Definition:
lidar_3d_datatype.h:40
ds3d::Lidar3DBbox::height
float height
Definition:
lidar_3d_datatype.h:41
ds3d::Lidar3DBbox::centerX
float centerX
Definition:
lidar_3d_datatype.h:36
DS3D_MAX_LABEL_SIZE
#define DS3D_MAX_LABEL_SIZE
Definition:
lidar_3d_datatype.h:20
ds3d::Lidar3DBbox::labels
char labels[DS3D_MAX_LABEL_SIZE]
Definition:
lidar_3d_datatype.h:46
ds3d
Definition:
lidar_custom_process.hpp:19
ds3d::Lidar3DBbox
Definition:
lidar_3d_datatype.h:35
ds3d::Lidar3DBbox::centerZ
float centerZ
Definition:
lidar_3d_datatype.h:38
ds3d::Lidar3DBbox::centerY
float centerY
Definition:
lidar_3d_datatype.h:37
Advance Information | Subject to Change | Generated by NVIDIA | Mon Dec 12 2022 17:47:16 | PR-09318-R32