51 #include <dw/core/Config.h> 186 #define DW_MAX_RIG_CAMERA_COUNT 255U 198 #define DW_PINHOLE_DISTORTION_LENGTH 3U 199 #define DW_VEHICLE_STEER_MAP_POLY_DEGREE 5U 231 #define DW_OCAM_POLY_LENGTH 5U 263 #define DW_FTHETA_POLY_LENGTH 5U 322 #define DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE 15U 418 char8_t const*
const configurationFile);
435 char8_t const*
const configurationString,
436 char8_t const*
const relativeBasePath);
497 dwConstRigHandle_t
const obj);
511 dwConstRigHandle_t
const obj);
527 dwConstRigHandle_t
const obj);
546 uint32_t
const sensorId,
547 dwConstRigHandle_t
const obj);
564 uint32_t
const sensorId,
565 dwConstRigHandle_t
const obj);
582 uint32_t
const sensorId,
583 dwRigHandle_t
const obj);
604 uint32_t
const sensorId,
605 dwRigHandle_t
const obj);
625 uint32_t
const sensorId,
626 dwConstRigHandle_t
const obj);
645 uint32_t
const sensorId,
646 dwConstRigHandle_t
const obj);
663 uint32_t
const sensorId,
664 dwConstRigHandle_t
const obj);
681 uint32_t
const sensorIdFrom,
682 uint32_t
const sensorIdTo,
683 dwConstRigHandle_t
const obj);
701 uint32_t
const sensorIdFrom,
702 uint32_t
const sensorIdTo,
703 dwConstRigHandle_t
const obj);
721 uint32_t
const sensorId,
722 dwRigHandle_t
const obj);
740 uint32_t
const sensorId,
741 dwConstRigHandle_t
const obj);
756 uint32_t
const sensorId,
757 dwConstRigHandle_t
const obj);
772 uint32_t
const sensorId,
773 dwConstRigHandle_t
const obj);
793 char8_t const*
const propertyName,
794 uint32_t
const sensorId,
795 dwConstRigHandle_t
const obj);
813 char8_t const*
const propertyName,
814 uint32_t
const sensorId,
815 dwRigHandle_t
const obj);
833 char8_t const*
const propertyName,
834 dwConstRigHandle_t
const obj);
851 char8_t const*
const propertyName,
852 dwRigHandle_t
const obj);
870 dwConstRigHandle_t
const obj);
886 uint32_t vehicleIOId,
887 dwConstRigHandle_t
const obj);
906 uint32_t sensorTypeIndex,
907 dwConstRigHandle_t
const obj);
923 uint32_t
const sensorId,
924 dwConstRigHandle_t
const obj);
942 uint32_t
const sensorId,
943 dwConstRigHandle_t
const obj);
960 uint32_t
const sensorId,
961 dwConstRigHandle_t
const obj);
981 uint32_t
const sensorId,
982 dwConstRigHandle_t
const obj);
1002 uint32_t
const sensorId,
1003 dwConstRigHandle_t
const obj);
1017 uint32_t
const sensorId,
1018 dwRigHandle_t
const obj);
1032 uint32_t
const sensorId,
1033 dwRigHandle_t
const obj);
1047 uint32_t
const sensorId,
1048 dwRigHandle_t
const obj);
1070 dwConstRigHandle_t
const obj);
1077 #endif // DW_RIG_RIG_H_ DW_API_PUBLIC dwStatus dwRig_setSensorParameter(char8_t const *const sensorParameter, uint32_t const sensorId, dwRigHandle_t const obj)
Sets the parameter string for a sensor.
float32_t centerOfMassToFrontAxle
float32_t u0
U coordinate for the principal point (in pixels)
NVIDIA DriveWorks API: Core Types
uint32_t width
Width of the image (in pixels)
float float32_t
Specifies POD types.
float32_t d
Affine matrix coefficient D.
dwSensorType
Defines the type of sensors that are available in DriveWorks.
Defines a three-element floating-point vector.
uint32_t height
Width of the image (in pixels)
float32_t c
Affine matrix coefficient C.
DW_API_PUBLIC dwStatus dwRig_setVehicle(dwVehicle const *vehicle, dwRigHandle_t const obj)
Sets the properties of the vehicle.
DW_API_PUBLIC dwStatus dwRig_getSensorCountOfType(uint32_t *const sensorCount, dwSensorType const sensorType, dwConstRigHandle_t const obj)
Find number of sensors of a given type.
Configuration parameters for a calibrated FTheta camera.
DW_API_PUBLIC dwStatus dwRig_getSensorPropertyByName(char8_t const **const propertyValue, char8_t const *const propertyName, uint32_t const sensorId, dwConstRigHandle_t const obj)
Returns property stored inside of a sensor.
float32_t focalY
Focal length in the Y axis.
DW_API_PUBLIC dwStatus dwRig_getSensorType(dwSensorType *sensorType, uint32_t const sensorId, dwConstRigHandle_t const obj)
Returns the type of sensor based upon the sensorID sent into the method.
float32_t centerOfMassHeight
uint32_t height
Width of the image (in pixels)
float32_t e
Affine matrix coefficient E.
float32_t u0
U coordinate for the principal point (in pixels)
NVIDIA DriveWorks API: Core Methods
float32_t frontCorneringStiffness
float32_t distortion[DW_PINHOLE_DISTORTION_LENGTH]
Distortion polynomial coefficients [k_1, k_2, k_3].
float32_t centerOfMassToRearAxle
DW_API_PUBLIC dwStatus dwRig_release(dwRigHandle_t const obj)
Releases the Rig Configuration module.
DW_API_PUBLIC dwStatus dwRig_getSensorFLUToRigTransformation(dwTransformation3f *const transformation, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the sensor FLU to rig transformation for a sensor.
DW_API_PUBLIC dwStatus dwRig_getOCamCameraConfig(dwOCamCameraConfig *config, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the parameters of the OCam camera model.
uint32_t height
Width of the image (in pixels)
DW_API_PUBLIC dwStatus dwRig_getNominalSensorToRigTransformation(dwTransformation3f *const transformation, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the nominal sensor to rig transformation for a sensor.
DW_API_PUBLIC dwStatus dwRig_getSensorProtocol(char8_t const **const sensorProtocol, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the protocol string of a sensor.
DW_API_PUBLIC dwStatus dwRig_getCameraTimestampPath(char8_t const **const timestampPath, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets path to camera timestamp file.
DW_API_PUBLIC dwStatus dwRig_serializeToFile(char8_t const *configurationFile, dwConstRigHandle_t const obj)
This method serializes the rig-configuration object to a human-readable rig-configuration file...
DW_API_PUBLIC dwStatus dwRig_getSensorToRigTransformation(dwTransformation3f *const transformation, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the sensor to rig transformation for a sensor.
float32_t frontSteeringOffset
front wheel steering offset [radians].
dwStatus
Status definition.
NVIDIA DriveWorks API: Sensors
DW_API_PUBLIC dwStatus dwRig_getSensorParameterUpdatedPath(char8_t const **const sensorParameter, uint32_t const sensorId, dwRigHandle_t const obj)
Gets the parameter string for a sensor with any path described by file=,video=,timestamp= property mo...
uint32_t width
Width of the image (in pixels)
float32_t u0
U coordinate for the principal point (in pixels)
Configuration parameters for a calibrated OCam sphere camera.
float32_t driveByWireTimeConstant
DW_API_PUBLIC dwStatus dwRig_setSensorToRigTransformation(dwTransformation3f const *transformation, uint32_t const sensorId, dwRigHandle_t const obj)
Sets the sensor to rig transformation for a sensor.
float32_t driveByWireTimeDelay
DW_API_PUBLIC dwStatus dwRig_findSensorByName(uint32_t *const sensorId, char8_t const *sensorName, dwConstRigHandle_t const obj)
Finds the sensor with the given name and returns its index.
DW_API_PUBLIC dwStatus dwRig_getCameraModel(dwCameraModel *const cameraModel, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the model type of the camera intrinsics.
float32_t rollingResistanceCoeff
DW_API_PUBLIC dwStatus dwRig_getPinholeCameraConfig(dwPinholeCameraConfig *config, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the parameters of the Pinhole camera model.
float32_t v0
V coordinate for the principal point (in pixels)
dwCameraModel
Specifies the supported optical camera models.
struct dwRigObject const * dwConstRigHandle_t
#define DW_VEHICLE_THROTTLE_BRAKE_LUT_SIZE
DW_API_PUBLIC dwStatus dwRig_initializeFromFile(dwRigHandle_t *obj, dwContextHandle_t ctx, char8_t const *const configurationFile)
Initializes the Rig Configuration module from a file.
float32_t v0
V coordinate for the principal point (in pixels)
DW_API_PUBLIC dwStatus dwRig_getSensorName(char8_t const **const sensorName, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the name of a sensor as given in the configuration.
#define DW_FTHETA_POLY_LENGTH
DW_API_PUBLIC dwStatus dwRig_addOrSetPropertyByName(char8_t const *const propertyValue, char8_t const *const propertyName, dwRigHandle_t const obj)
Overwrite content of an existing rig property.
DW_API_PUBLIC dwStatus dwRig_setPinholeCameraConfig(dwPinholeCameraConfig const *config, uint32_t const sensorId, dwRigHandle_t const obj)
Sets the parameters of the pinhole camera model.
float32_t hFOV
Horizontal FOV in radians.
DW_API_PUBLIC dwStatus dwRig_setFThetaCameraConfig(dwFThetaCameraConfig const *config, uint32_t const sensorId, dwRigHandle_t const obj)
Sets the parameters of the FTheta camera model.
DW_API_PUBLIC dwStatus dwRig_findSensorIdFromVehicleIOId(uint32_t *const sensorId, uint32_t vehicleIOId, dwConstRigHandle_t const obj)
Finds a sensor with the given vehicleIO ID and returns the index.
dwVehicleWheels
Define index for each of the wheels on a 4 wheel vehicle.
#define DW_VEHICLE_STEER_MAP_POLY_DEGREE
uint32_t height
height of the image (in pixels)
Number of wheels describing the vehicle.
float32_t rearCorneringStiffness
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwRig_getVehicleIOConfigCount(uint32_t *vioConfigCount, dwConstRigHandle_t const obj)
Gets the number of vehicle IO sensors.
float32_t steeringCoefficient
float32_t widthWithMirrors
float32_t u0
U coordinate for the principal point (in pixels)
DW_API_PUBLIC dwStatus dwRig_getSensorDataPath(char8_t const **const dataPath, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets path to sensor recording.
DW_API_PUBLIC dwStatus dwRig_getVehicle(dwVehicle const **const vehicle, dwConstRigHandle_t const obj)
Gets the properties of the vehicle.
float32_t aerodynamicDragCoeff
float32_t focalX
Focal length in the X axis.
Configuration parameters for a calibrated FTheta camera.
Configuration parameters for a calibrated pinhole camera.
#define DW_OCAM_POLY_LENGTH
NVIDIA DriveWorks API: Core Exports
#define DW_PINHOLE_DISTORTION_LENGTH
DW_API_PUBLIC dwStatus dwRig_getSensorToSensorTransformation(dwTransformation3f *const transformation, uint32_t const sensorIdFrom, uint32_t const sensorIdTo, dwConstRigHandle_t const obj)
Gets the sensor to sensor transformation for a pair of sensors.
DW_API_PUBLIC dwStatus dwRig_getFThetaCameraConfig(dwFThetaCameraConfig *const config, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the parameters of the FTheta camera model.
float32_t v0
V coordinate for the principal point (in pixels)
DW_API_PUBLIC dwStatus dwRig_findSensorByTypeIndex(uint32_t *const sensorId, dwSensorType const sensorType, uint32_t sensorTypeIndex, dwConstRigHandle_t const obj)
Finds the absolute sensor index of the Nth sensor of a given type.
float32_t v0
V coordinate for the principal point (in pixels)
dwVehicleTorqueLUT torqueLUT
DW_API_PUBLIC dwStatus dwRig_setOCamCameraConfig(dwOCamCameraConfig const *config, uint32_t const sensorId, dwRigHandle_t const obj)
Sets the parameters of the OCam camera model.
Throttle and brake state (input) to longitudinal force (output) lookup tables.
DW_API_PUBLIC dwStatus dwRig_reset(dwRigHandle_t const obj)
Resets the Rig Configuration module.
DW_API_PUBLIC dwStatus dwRig_getSensorParameter(char8_t const **const sensorParameter, uint32_t const sensorId, dwConstRigHandle_t const obj)
Gets the parameter string for a sensor.
DW_API_PUBLIC dwStatus dwRig_getSensorCount(uint32_t *const sensorCount, dwConstRigHandle_t const obj)
Gets the number of all available sensors.
DW_API_PUBLIC dwStatus dwRig_initializeFromString(dwRigHandle_t *obj, dwContextHandle_t ctx, char8_t const *const configurationString, char8_t const *const relativeBasePath)
Initializes the Rig Configuration module from a string.
uint32_t width
Width of the image (in pixels)
float32_t brakeActuatorTimeConstant
float32_t throttleActuatorTimeConstant
uint32_t width
Width of the image (in pixels)
DW_API_PUBLIC dwStatus dwRig_getNominalSensorToSensorTransformation(dwTransformation3f *const transformation, uint32_t const sensorIdFrom, uint32_t const sensorIdTo, dwConstRigHandle_t const obj)
Gets the nominal sensor to sensor transformation for a pair of sensors.
struct dwRigObject * dwRigHandle_t
Handle representing the Sensor Abstraction Layer interface.
Properties of the vehicle.
DW_API_PUBLIC dwStatus dwRig_addOrSetSensorPropertyByName(char8_t const *const propertyValue, char8_t const *const propertyName, uint32_t const sensorId, dwRigHandle_t const obj)
Overwrite content of an existing sensor property.
DW_API_PUBLIC dwStatus dwRig_getPropertyByName(char8_t const **const propertyValue, char8_t const *const propertyName, dwConstRigHandle_t const obj)
Returns property stored inside of rig.