Ask Your Question
0

Running the same node on multiple image messages parallel.

asked 2020-04-03 03:10:03 -0500

bachla gravatar image

Hello ros comunity.

I have six cameras, where i would like to do object classification, with YOLOv3 using darknet_ros, on each of the camera inputs, at the same time. I am using a Jetson AGX Xavier, with ros-melodic, cuda and opencv installed, and i can acces the cameras through ethernet.

My question is: What would be the smartest and ideal way to handle multiple image messages (or messages in general) in parallel, using the same node?

It would be nice if someone could point me in the direction of the theory that i need to solve my problem most efficiently.

Have a nice day.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-04-03 04:36:10 -0500

gvdhoorn gravatar image

As a quick comment: if "the node" hasn't been written with this in mind, then the answer would be: you can't.

Of course, I'm assuming here that "the same node" means: "with a single running process". If instead you meant: with multiple running instances of the same node type, then you should be able to start as many as you need in separate namespaces and have each of them subscribe to the appropriate topics.

Depending on how many resources the node uses / requires (especially: GPU resources here as you mention CUDA), you should be able to start multiple. But that really depends on how "the node" has been written.

edit flag offensive delete link more

Comments

Thank you for the response. I meant running multiple instances of the same node type but on different inputs, and as you said, using different namespaces, was the way to go.

bachla gravatar image bachla  ( 2020-04-14 03:27:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-04-03 03:10:03 -0500

Seen: 76 times

Last updated: Apr 03 '20