gbr1 / ros_openvino

A ROS package to wrap openvino inference engine and get it working with Myriad and GPU
https://gbr1.github.io
GNU Affero General Public License v3.0
57 stars 13 forks source link

Compilation Issue when cmake #8

Open irwanmazlin opened 2 years ago

irwanmazlin commented 2 years ago

Description i tried to use your project because it has 3D detection features, but i ran into compilation issue. I would really appreciate if you could help if you encounter this problem before.

Step to reproduce

  1. i clone the project in ros working space
  2. then after clone i try to compile the project in my working space using catkin_make then i got an error

Screenshot from 2022-04-25 14-25-17

Versions OPENVINO 2019_R3 realsense version 2.50

gbr1 commented 2 years ago

Hi! Did you source openvino env variables? It seems that cmake is not able to find openvino. Let me know!

irwanmazlin commented 2 years ago

i have source the environment but still same error occurs, i have uninstall the openvino and fresh install openvino 2019_R3.1 Screenshot from 2022-04-25 14-25-17

irwanmazlin commented 2 years ago

seems like i dont install openvino 2019_R3 version, i install 2019_R3.1 using this link http://registrationcenter-download.intel.com/akdlm/irc_nas/16057/l_openvino_toolkit_p_2019.3.376.tgz

this figure shows my installation directory Screenshot from 2022-04-27 07-27-57

its openvino_2019.3.376, not openvino_2019.3.334 i think it one of the reason why that error occurs

do you have the installer for openvino 2019_R3?

irwanmazlin commented 2 years ago

Hi mate, i manage to compile the project.

but i got new error.

i am using mobilenet ssd and set target to CPU

Screenshot from 2022-04-27 09-26-02

do you know how to solve this?

gbr1 commented 2 years ago

Hi @irwanmazlin ! Nice to hear that you manage to install it. I don't know if other ssds works instead of mobilenet (this package was created for demos). I'm quite sure that you cannot run on cpu side but you can probably use gpu if your processor is supported and for sure the myriad x

irwanmazlin commented 2 years ago

owh i see,

can this project run multi camera? which part i need to change if i want to run multicamera realsense?

gbr1 commented 2 years ago

You may have 2 options:

  1. run multiple nodes on multiple myriad and each node subscribes to a different image topic
  2. write a node that create a bigger image by merging images
irwanmazlin commented 2 years ago

owh i see,

good news now i can use your project using CPU

thank you for your help

irwanmazlin commented 2 years ago

i install openvino 2021.4

your code support CPU actually

irwanmazlin commented 2 years ago

You may have 2 options:

  1. run multiple nodes on multiple myriad and each node subscribes to a different image topic
  2. write a node that create a bigger image by merging images

hi @gbr1 , i have the problem run multiple node on multiple target engine,

i have set each node subscribes different image topic but the problem is, when i run the detection, the detection didnt run the simultenous for each camera, they run one by one of each camera in the same topic,

for example, i subscribe camera 1 and publish detection image of camera 1 as "/123/1" and for camera 2 i publish detection image of camera2 as "/123/2".

but i camera see the detection of both camera in one topic, it keeps switch the image after doing the detection

this is my launch file

Screenshot from 2022-05-25 12-03-45

this is my CPP file

Screenshot from 2022-05-25 12-04-25

I would really appreciate if you could help to solve this issue.