NVIDIA DRIVE OS Linux API Reference

5.1.3.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) 2018, 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 
26 namespace nvros
27 {
42 typedef enum _NvRosErrCode {
43 
46 
51 
54 
59 
62 
63  } NvRosErr ;
64 
66 #define DEFAULT_DISPLAY_WIDTH 1920
67 
69 #define DEFAULT_DISPLAY_HEIGHT 1080
70 
72 #define DEFAULT_WINDOW_OFFSET_X 0
73 
75 #define DEFAULT_WINDOW_OFFSET_Y 0
76 
78 #define DEFAULT_DISPLAY_ID 0
79 
81 #define SECONDARY_DISPLAY_ID 2
82 
84 #define DEFAULT_WINDOW_ID 0
85 
87 #define DEFAULT_EGLSTREAM_MODE 1
88 
91 #define CUDA_KERNEL_RGBA_TO_GREY 1
92 
94 #define CUDA_KERNEL_SOBEL 2
95 
97 #define CUDA_KERNEL_NEGATIVE_RGBA 3
98 
101 #define DEFAULT_CSI_PORT_ID 0
102 
104 #define ONE_FRAME_TIME_US_30_FPS 33334
105 
111 #define MAX_WAIT_TIMEOUT_FRAMES 100
112 
119 #define MAX_SERVICE_WAIT_TIMEOUT_MS 100
120 
124 #define IS_RGBA_CONVERSION 1
125 
127 const std::string InitCamPreviewService("nvros_init_cam_preview");
128 
130 const std::string CloseCamPreviewService("nvros_close_cam_preview");
131 
133 const std::string StartCameraCaptureService("camera_start");
134 
136 const std::string StopCameraCaptureService("camera_stop");
137 
139 const std::string InitCudaProcessingService("nvros_init_cuda_processing");
140 
142 const std::string CloseCudaProcessingService("nvros_close_cuda_processing");
143 
145 const std::string SocketPathOutput("/tmp/nvmedia_egl_socket_out");
146 
148 const std::string Default_GroupName("A");
149 
151 const std::string Default_FileName("drive-px2-a.conf");
152 
154 }
155 #endif
Indicates dynamic memory allocation failed during API execution.
Definition: nvroscommon.h:50
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:42
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:53
Indicates an error occurred due to bad parameters passed in the API.
Definition: nvroscommon.h:61
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:45
Indicates an error occurred due to a miscellaneous reason other than NVROS_ERR_NO_MEM and NVROS_ERR_N...
Definition: nvroscommon.h:58
const std::string InitCudaProcessingService("nvros_init_cuda_processing")
Constant string for initializing CUDA processing services.