I’m running a simulator and I’m sending the camera sensor frames over the network.
I want to use SAL to create a camera sensor which will recieve the frames over network and I saw there is a camera type “camera.nvidia-ip”.
I haven’t found any documentation on the packet format and how to tell the camera its parameters. How should I send the frames and set the camera parameters?
Currently the simulator just sends raw RGB pixels over the socket.
To test it I wrote a rig file and initialized the camera with the sensor manager
"parameter": "host=127.0.0.1,port=8000,output-format=raw+data,format=raw",
"properties": {
"Model": "pinhole",
"fx": "831.3843876330611",
"fy": "831.3843876330611",
"height": "540",
"width": "960",
"cx": "480",
"cy": "270",
"distortion": "0 0"
},
"protocol": "camera.nvidia-ip"
But it doesn’t work
[20-10-2020 14:17:49] SensorFactory::createSensor() -> camera.nvidia-ip, host=127.0.0.1,port=8000,output-format=raw+data,format=raw
[20-10-2020 14:17:49] CameraIP: Waiting for connection to source stream.
[20-10-2020 14:17:49] SocketClient: connected 127.0.0.1:8000
[20-10-2020 14:17:49] SensorManager: DW_SAL_SENSOR_ERROR: Protocol failure, packet size must be a power of 2.
Hardware Platform: DRIVE AGX Xavier™ Developer Kit
Software Version: DRIVE Software 10
Host Machine Version: native Ubuntu 18.04