NVIDIA DRIVE OS Linux SDK API Reference

5.1.12.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvroscommon.h
Go to the documentation of this file.
1 /*Copyright (c) 2019, 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 
128 const std::string InitCamPreviewService("nvros_init_cam_preview");
129 
131 const std::string CloseCamPreviewService("nvros_close_cam_preview");
132 
134 const std::string StartCameraCaptureService("camera_start");
135 
137 const std::string StopCameraCaptureService("camera_stop");
138 
140 const std::string InitCudaProcessingService("nvros_init_cuda_processing");
141 
143 const std::string CloseCudaProcessingService("nvros_close_cuda_processing");
144 
146 const std::string SocketPathOutput("/tmp/nvmedia_egl_socket_out");
147 
149 const std::string Default_GroupName("A");
150 
152 const std::string Default_FileName("drive-px2-a.conf");
153 
155 }
156 #endif
Indicates dynamic memory allocation failed during API execution.
Definition: nvroscommon.h:51
const std::string CloseCamPreviewService("nvros_close_cam_preview")
Constant string for closing camera preview services.
const std::string CloseCudaProcessingService("nvros_close_cuda_processing")
Constant string for closing CUDA processing services.
_NvRosErrCode
Declares error codes for all NvROS modules and packages.
Definition: nvroscommon.h:43
const std::string Default_FileName("drive-px2-a.conf")
Default configuration file for OV10635 camera parameters.
const std::string StartCameraCaptureService("camera_start")
Constant string for starting camera capture services.
const std::string Default_GroupName("A")
Default group name for the camera capture node.
Indicates an error occurred while executing one or more NvMedia API.
Definition: nvroscommon.h:54
Indicates an error occurred due to bad parameters passed in the API.
Definition: nvroscommon.h:62
const std::string SocketPathOutput("/tmp/nvmedia_egl_socket_out")
Constant string for default output EGL socket_path value for the cuda_processor node.
const std::string InitCamPreviewService("nvros_init_cam_preview")
Constant string for initializing camera preview services.
enum nvros::_NvRosErrCode NvRosErr
Declares error codes for all NvROS modules and packages.
const std::string StopCameraCaptureService("camera_stop")
Constant string for closing camera capture services.
Indicates the API was successfully executed.
Definition: nvroscommon.h:46
Indicates an error occurred due to a miscellaneous reason other than NVROS_ERR_NO_MEM and NVROS_ERR_N...
Definition: nvroscommon.h:59
const std::string InitCudaProcessingService("nvros_init_cuda_processing")
Constant string for initializing CUDA processing services.