Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.10.90 Release
    For Test and Development only

    All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

    Detailed Description

    Provides an interface for non-standard Lidar sensors.

    Data Structures

    struct  _dwSensorLidarDecoder_constants
     Holds constants for a given lidar. More...
     
    struct  dwSensorLidarPluginFunctionTable
     Holds the list of exported functions implemented by the vendor-provided library. More...
     

    Typedefs

    typedef dwStatus(* dwSensorLidarPlugin_getDecoderConstants) (_dwSensorLidarDecoder_constants *constants, dwSensorPluginSensorHandle_t sensor)
     Gets constants associated with this lidar sensor. More...
     
    typedef dwStatus(* dwSensorLidarPlugin_parseDataBuffer) (dwLidarDecodedPacket *output, const dwTime_t hostTimeStamp, dwSensorPluginSensorHandle_t sensor)
     Processes the data previously passed via the 'dwSensorPlugin_pushData' interface. More...
     
    typedef dwStatus(* dwSensorLidarPlugin_sendMessage) (uint32_t const cmd, uint8_t const *const data, size_t const size, dwSensorPluginSensorHandle_t sensor)
     Send message to lidar sensor. More...
     

    Functions

    dwStatus dwSensorLidarPlugin_getFunctionTable (dwSensorLidarPluginFunctionTable *functions)
     Returns the table of functions that are provided by the vendor-provided library for the sensor. More...
     

    Data Structure Documentation

    ◆ _dwSensorLidarDecoder_constants

    struct _dwSensorLidarDecoder_constants
    Data Fields
    size_t maxPayloadSize Packet max payload size, in bytes.
    dwLidarProperties properties Lidar properties.

    ◆ dwSensorLidarPluginFunctionTable

    struct dwSensorLidarPluginFunctionTable

    Typedef Documentation

    ◆ dwSensorLidarPlugin_getDecoderConstants

    typedef dwStatus(* dwSensorLidarPlugin_getDecoderConstants) (_dwSensorLidarDecoder_constants *constants, dwSensorPluginSensorHandle_t sensor)

    Gets constants associated with this lidar sensor.

    Parameters
    [out]constantsConstant parameters for this sensor are written here.
    [in]sensorSpecifies the sensor to which the constants are related.
    Returns
    DW_FAILURE, DW_SUCCESS

    Definition at line 94 of file LidarPlugin.h.

    ◆ dwSensorLidarPlugin_parseDataBuffer

    typedef dwStatus(* dwSensorLidarPlugin_parseDataBuffer) (dwLidarDecodedPacket *output, const dwTime_t hostTimeStamp, dwSensorPluginSensorHandle_t sensor)

    Processes the data previously passed via the 'dwSensorPlugin_pushData' interface.

    The interpreted memory buffer outputted from this API is owned by the plugin. The plugin shall support multiple buffers in flight via this API.

    Parameters
    [out]outputPointer to decoded lidar point cloud
    [in]hostTimeStampSpecifies the host timeStamp when raw data was received.
    [in]sensorSpecifies the sensor the data came from.
    Returns
    DW_INVALID_HANDLE - if the sensor handle is NULL or invalid
    DW_NOT_AVAILABLE - if no frame is ready for consumption DW_SUCCESS

    Definition at line 81 of file LidarPlugin.h.

    ◆ dwSensorLidarPlugin_sendMessage

    typedef dwStatus(* dwSensorLidarPlugin_sendMessage) (uint32_t const cmd, uint8_t const *const data, size_t const size, dwSensorPluginSensorHandle_t sensor)

    Send message to lidar sensor.

    Parameters
    [in]cmdIdentification of the message.
    [in]dataRaw payload of the message.
    [in]sizeRaw payload size of the message.
    [in]sensorSpecifies the sensor to send the message data.
    Returns
    DW_INVALID_ARGUMENT - if the data is invalid
    DW_NOT_SUPPORTED - if the sensor handle is NULL or invalid, or specified sensor doesn't support cmd or the output connection is not set
    DW_FAILURE - if not able to send data out successfully
    DW_SUCCESS - if send the message out to the sensor successfully

    Definition at line 110 of file LidarPlugin.h.

    Function Documentation

    ◆ dwSensorLidarPlugin_getFunctionTable()

    dwStatus dwSensorLidarPlugin_getFunctionTable ( dwSensorLidarPluginFunctionTable functions)

    Returns the table of functions that are provided by the vendor-provided library for the sensor.

    Parameters
    [out]functionsFunction table exported by the library
    Returns
    DW_FAILURE - unspecified failure while getting the function table.
    DW_SUCCESS
    人人超碰97caoporen国产