48 #ifndef DW_PILOTNETDETECTOR_H_ 49 #define DW_PILOTNETDETECTOR_H_ 51 #include <dw/core/Config.h> 62 #define DW_PILOTNET_MAX_TRAJ_LEN 200 65 #define DW_PILOTNET_MAX_CAMERA_COUNT 7 66 #define DW_PILOTNET_MAX_ROI_VIEWS_PER_CAMERA 3 67 #define DW_PILOTNET_MAX_ROI_VIEWS DW_PILOTNET_MAX_CAMERA_COUNT* DW_PILOTNET_MAX_ROI_VIEWS_PER_CAMERA 276 dwPilotNetDetectorHandle_t pilotnet);
290 dwPilotNetDetectorHandle_t pilotnet);
309 dwPilotNetDetectorHandle_t pilotnet);
367 dwPilotNetDetectorHandle_t pilotnet);
386 dwPilotNetDetectorHandle_t pilotnet);
408 dwPilotNetDetectorHandle_t pilotnet);
428 size_t numTrajPoints,
430 dwPilotNetDetectorHandle_t pilotnet);
448 const uint32_t sensorId,
449 dwPilotNetDetectorHandle_t pilotnet);
465 dwPilotNetDetectorHandle_t pilotnet);
478 dwPilotNetDrivingMode drivingMode);
484 #endif // DW_PILOTNETDETECTOR_H_ DW_API_PUBLIC dwStatus dwPilotNetDetector_initialize(dwPilotNetDetectorHandle_t *pilotnet, const dwPilotNetDetectorParams *params, dwPilotNetHandle_t pilotnetDNN)
Creates and initializes the PilotNetDetector module with the given dwPilotNetHandle that is used for ...
NVIDIA DriveWorks API: Camera Methods
Holds the parameters to initialize the PilotNetDetector module.
bool rotationValid
If set to true, off-orientation output is valid.
uint32_t sensorId
Sensor ID of the sensor from the vehicle rig.
NVIDIA DriveWorks API: Core Types
float float32_t
Specifies POD types.
Forward facing right cross camera with 120deg FOV.
Defines a three-element floating-point vector.
Defines a two-element single-precision floating-point vector.
DW_API_PUBLIC dwStatus dwPilotNetDetector_initParams(dwPilotNetDetectorParams *params, dwPilotNetHandle_t pilotnetDNN)
Initializes the PilotNetDetector module params with the given dwPilotNetHandle.
NVIDIA DriveWorks API: PilotNet Module
dwTime_t commandTimeStamp
Timestamp when the output values are filled in.
float32_t rotation
Off-orientation position (yaw) of vehicle in degrees.
DW_API_PUBLIC dwStatus dwPilotNetDetector_setState(dwPilotNetDetectorState inputState, dwPilotNetDetectorHandle_t pilotnet)
Sets the driving state for the current frame.
DW_API_PUBLIC dwStatus dwPilotNetDetector_setSensorExtrinsics(const dwTransformation3f *tx, const uint32_t sensorId, dwPilotNetDetectorHandle_t pilotnet)
Setting PilotNetDetector extrinsic camera calibration parameters .
uint32_t numSensors
PilotNetDetector camera type.
float32_t cameraPitch
Predicted camera pitch.
DW_API_PUBLIC dwStatus dwPilotNetDetector_getPatchU8(const dwImageCUDA **dwImg, uint32_t *numROI, uint32_t sensorId, dwPilotNetDetectorHandle_t pilotnet)
Get a pointer to the CUDA patch buffer.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
Forward facing center camera with 120deg FOV.
float32_t fps
Update rate of the data from this sensor.
dwCameraModelHandle_t cameraModel
Camera model.
Holds the left and right lane dividers for a single lane type.
bool cameraPitchValid
If set to true, camera pitch is valid.
DW_API_PUBLIC dwStatus dwPilotNetDetector_getROIParams(dwRectf *roi, uint32_t *numROI, uint32_t sensorId, dwPilotNetDetectorHandle_t pilotnet)
Get the parameters for the region of interest (ROI) calculated by dwPilotNetDetector_processFrames.
bool rightLaneDividerValid
Right lane divider validity.
DW_API_PUBLIC dwStatus dwPilotNetDetector_getVisMaskU8(const dwImageCUDA **dwImg, uint32_t *numROI, uint32_t sensorId, dwPilotNetDetectorHandle_t pilotnet)
Gets a pointer to the CUDA visualization mask buffer.
dwPilotNetCameraType camera
PilotNetDetector camera type.
dwStatus
Status definition.
Holds the output trajectories and other predictions of PilotNetDetector.
#define DW_PILOTNET_MAX_TRAJ_LEN
The maximum trajectory length.
float32_t lcLength
Lane change length in m.
DW_API_PUBLIC dwStatus dwPilotNetDetector_release(dwPilotNetDetectorHandle_t pilotnet)
Releases the PilotNetDetector module.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
dwRect inDimensions
Input Image dimensions of the data from this sensor.
Forward facing right offset camera with 120deg FOV.
dwTransformation3f cameraExtrinsics
Camera Extrinsics.
DW_API_PUBLIC dwStatus dwPilotNetDetector_bindOutput(dwPilotNetDetectorOutput *output, dwPilotNetDetectorHandle_t pilotnet)
Bind the memory of the output to a pre-allocated memory in the application.
cudaStream_t stream
Stream to be used for a particular sensor.
DW_API_PUBLIC dwStatus dwPilotNetDetector_reset(dwPilotNetDetectorHandle_t pilotnet)
Resets the PilotNetDetector module.
dwPilotNetCameraType
The cameras supported by the PilotNetDetector module.
dwTime_t inputTimestamp
Timestamp of the input image.
struct dwPilotNetDetectorObject * dwPilotNetDetectorHandle_t
Handle for PilotNetDetector.
DW_API_PUBLIC dwStatus dwPilotNetDetector_getDrivingModeString(const char **string, dwPilotNetDrivingMode drivingMode)
Getting the driving mode enum as a string.
float32_t curSpeed
Speed in m/s.
Forward facing left cross camera with 120deg FOV.
DW_API_PUBLIC dwStatus dwPilotNetDetector_convertPointsRigToSensor(dwVector2f *points, size_t numPoints, const dwVector3f *trajPoints, size_t numTrajPoints, uint32_t sensorId, dwPilotNetDetectorHandle_t pilotnet)
Get the trajectory points based on the network output in image space.
DW_API_PUBLIC dwStatus dwPilotNetDetector_getAvailableDrivingModes(bool *modes, dwPilotNetDetectorHandle_t pilotnet)
Getting supported driving modes from PilotNetDetector.
#define DW_PILOTNET_MAX_CAMERA_COUNT
The maximum supported ROI Views.
struct dwPilotNetObject * dwPilotNetHandle_t
Handle for PilotNet DNN object.
struct dwCameraModelObject * dwCameraModelHandle_t
A pointer to the handle representing a calibrated camera model.
DW_API_PUBLIC dwStatus dwPilotNetDetector_setCameraFrame(const dwImageCUDA *inputFrame, uint32_t sensorId, dwPilotNetDetectorHandle_t pilotnet)
Sets the input camera frame for inferencing.
DW_API_PUBLIC dwStatus dwPilotNetDetector_infer(dwPilotNetDetectorHandle_t pilotnet)
Runs the inference on the patch produced by dwPilotNetDetector_processFrames to output the driving tr...
dwPilotNetDrivingMode
Defines the different driving trajectories produced by the PilotNet network.
bool leftLaneDividerValid
Left lane divider validity.
DW_API_PUBLIC dwStatus dwPilotNetDetector_processOutput(dwPilotNetDetectorHandle_t pilotnet)
Gets the driving state (mode, commands) for the last processed image.
Forward facing left offset camera with 120deg FOV.
Forward facing center camera with 60deg FOV.
Holds the input state values for PilotNetDetector.
DW_API_PUBLIC dwStatus dwPilotNetDetector_processFrames(dwPilotNetDetectorHandle_t pilotnet)
Processes the input image(s) by calculating a patch for the region of interest (ROI) by compensating ...