ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to use Yolo in ROS Noetic ?

asked 2021-02-01 00:24:19 -0500

elpidiovaldez gravatar image

When I used ROS Melodic/Ubuntu 18.04, I could use the darknet_ros package from Legged Robotics. Now I have 'upgraded' to ROS Noetic/Ubuntu 20.04 I cannot find any way to install Darknet and Yolo.

The problem is due to configuration hell. I am using cuda 10.1 and gcc 8.4.0 due to compatibility requirements imposed by other systems. I have tried so many branches of darknet_ros. Many of these do not come with a version of darknet, so I have sought that from other github sources. I can't find anything that works together. Ubuntu 20.04 uses opencv4. There is a darknet branch which supports that, but then compiling darknet_ros complains that darknet is missing a file 'art.c'. If I try other branches of darknet the compiler complains of needing C++11 for opencv even though the cmake files specify c++11.

Can anyone point me to a setup that works under Noetic ?

edit retag flag offensive close merge delete

Comments

crnewton gravatar image crnewton  ( 2021-02-01 02:15:14 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-02-02 15:10:33 -0500

elpidiovaldez gravatar image

I found a usable version. In this link, bigrobinson gives a procedure for using this github repository. You must use the opencv4 branch (the procedure is all explained in the original link. I followed it. It worked !).

That solves getting yolo v3 running in Ubuntu 20.04 with ROS Noetic. If anyone knows how to use YoloV4 or the pytorch version YoloV5 in Noetic please add pointers as comments !

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-02-01 00:24:19 -0500

Seen: 2,723 times

Last updated: Feb 02 '21