I am trying to create a small CGF app where I can read from the camera and other sensors, run a object detector and tracking algorithm on the camera and then display the results.
Among the CGF examples, I found VisualizationNode which suits well for my needs. Looking at its code I found a preprocessor directive called PERCEPTION_ENABLED that could be ease the process of showing tracking result. But there are two problems:
I don’t know where enable PERCEPTION_ENABLED
VisualizationNode includes YoloNet.hpp. I looked for this file in the whole system, but I was not able to find any match and without it I am not able to make it run properly.
Please provide the following info (tick the boxes after creating this topic): Software Version
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other
Target Operating System
Linux
QNX
other
Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other
SDK Manager Version
1.9.3.10904
other
Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other
Dear @SivaRamaKrishnaNV ,
the question still remains, can we enable the “PERCEPTION_ENABLED” directive? or dev can’t enable it? if it can be enabled, then YoloNet.hpp is missing.
Dear @sushant.bahadure,
No. You can not enable. Actually this need to be removed from the file to avoid confusion. I have informed the engineering team on this.
Anyway two weeks ago, in parallel with the opening of this topic, I decided to try to develop a solution to this problem and I succeeded. I created a YoloNet.cpp and YoloNet.hpp where I defined:
YoloScoreRectArray struct as an array of YoloScoreRect and its size. I took YoloScoreRect from /usr/local/driveworks-5.14/samples/src/dnn/sample_object_detector_tracker/main.cpp
I create ad new channel and added a new value to dwSerializationTypeExt in order to be able to feed VisualizationNode with this type of input.
I enabled PERCEPTION_ENABLED directive from CMakeFile.