NVIDIA DRIVE OS Linux SDK API Reference

5.1.15.0 Release
For Test and Development only
nvroscommon.h
Go to the documentation of this file.
1 /*Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
2 
3 NVIDIA CORPORATION and its licensors retain all intellectual property
4 and proprietary rights in and to this software, related documentation
5 and any modifications thereto. Any use, reproduction, disclosure or
6 distribution of this software and related documentation without an express
7 license agreement from NVIDIA CORPORATION is strictly prohibited.*/
8 
9 #ifndef _NVROSCOMMON_H_
10 #define _NVROSCOMMON_H_
11 
20 #include <string>
21 
22 
27 namespace nvros
28 {
43 typedef enum _NvRosErrCode {
44 
47 
52 
55 
60 
63 
64  } NvRosErr ;
65 
67 #define DEFAULT_DISPLAY_WIDTH 1920
68 
70 #define DEFAULT_DISPLAY_HEIGHT 1080
71 
73 #define DEFAULT_WINDOW_OFFSET_X 0
74 
76 #define DEFAULT_WINDOW_OFFSET_Y 0
77 
79 #define DEFAULT_DISPLAY_ID 0
80 
82 #define SECONDARY_DISPLAY_ID 2
83 
85 #define DEFAULT_WINDOW_ID 0
86 
88 #define DEFAULT_EGLSTREAM_MODE 1
89 
92 #define CUDA_KERNEL_RGBA_TO_GREY 1
93 
95 #define CUDA_KERNEL_SOBEL 2
96 
98 #define CUDA_KERNEL_NEGATIVE_RGBA 3
99 
102 #define DEFAULT_CSI_PORT_ID 0
103 
105 #define ONE_FRAME_TIME_US_30_FPS 33334
106 
112 #define MAX_WAIT_TIMEOUT_FRAMES 100
113 
120 #define MAX_SERVICE_WAIT_TIMEOUT_MS 100
121 
125 #define IS_RGBA_CONVERSION 1
126 
129 #define DEFAULT_SERVICE_WAIT_TIMEOUT 30
130 
132 const std::string InitCamPreviewService("nvros_init_cam_preview");
133 
135 const std::string CloseCamPreviewService("nvros_close_cam_preview");
136 
138 const std::string StartCameraCaptureService("camera_start");
139 
141 const std::string StopCameraCaptureService("camera_stop");
142 
144 const std::string InitCudaProcessingService("nvros_init_cuda_processing");
145 
147 const std::string CloseCudaProcessingService("nvros_close_cuda_processing");
148 
150 const std::string SocketPathOutput("/tmp/nvmedia_egl_socket_out");
151 
153 const std::string Default_GroupName("A");
154 
156 const std::string Default_FileName("drive-px2-a.conf");
157 
159 }
160 #endif
nvros::_NvRosErrCode
_NvRosErrCode
Declares error codes for all NvROS modules and packages.
Definition: nvroscommon.h:43
nvros::NVROS_ERR_NVMEDIA
@ NVROS_ERR_NVMEDIA
Indicates an error occurred while executing one or more NvMedia API.
Definition: nvroscommon.h:54
nvros::StartCameraCaptureService
const std::string StartCameraCaptureService("camera_start")
Constant string for starting camera capture services.
nvros::Default_GroupName
const std::string Default_GroupName("A")
Default group name for the camera capture node.
nvros::Default_FileName
const std::string Default_FileName("drive-px2-a.conf")
Default configuration file for OV10635 camera parameters.
nvros::InitCamPreviewService
const std::string InitCamPreviewService("nvros_init_cam_preview")
Constant string for initializing camera preview services.
nvros::NVROS_SUCCESS
@ NVROS_SUCCESS
Indicates the API was successfully executed.
Definition: nvroscommon.h:46
nvros::NvRosErr
enum nvros::_NvRosErrCode NvRosErr
Declares error codes for all NvROS modules and packages.
nvros::NVROS_ERR
@ NVROS_ERR
Indicates an error occurred due to a miscellaneous reason other than NVROS_ERR_NO_MEM and NVROS_ERR_N...
Definition: nvroscommon.h:59
nvros::StopCameraCaptureService
const std::string StopCameraCaptureService("camera_stop")
Constant string for closing camera capture services.
nvros::NVROS_ERR_BAD_PARAMS
@ NVROS_ERR_BAD_PARAMS
Indicates an error occurred due to bad parameters passed in the API.
Definition: nvroscommon.h:62
nvros::NVROS_ERR_NO_MEM
@ NVROS_ERR_NO_MEM
Indicates dynamic memory allocation failed during API execution.
Definition: nvroscommon.h:51
nvros::SocketPathOutput
const std::string SocketPathOutput("/tmp/nvmedia_egl_socket_out")
Constant string for default output EGL socket_path value for the cuda_processor node.
nvros
A global namespace for NvRos packages.
nvros::CloseCamPreviewService
const std::string CloseCamPreviewService("nvros_close_cam_preview")
Constant string for closing camera preview services.
nvros::CloseCudaProcessingService
const std::string CloseCudaProcessingService("nvros_close_cuda_processing")
Constant string for closing CUDA processing services.
nvros::InitCudaProcessingService
const std::string InitCudaProcessingService("nvros_init_cuda_processing")
Constant string for initializing CUDA processing services.