NVIDIA-AI-IOT / redtail

Perception and AI components for autonomous mobile robotics.
BSD 3-Clause "New" or "Revised" License
1.01k stars 346 forks source link

Couldn't find executable named caffe_ros_node below /root/ws/src/caffe_ros #112

Open savath opened 5 years ago

savath commented 5 years ago

Hello,

I'm on the "Running DNN and controller nodes" within the "Testing in Simulator" section. I was able to run the image publisher node in step 2 but when i tried running the DNN node in step 3, i got an error saying:

[rosrun] Couldn't find executable named caffe_ros_node below /root/ws/src/caffe_ros

I went into the /root/ws/src/caffe_ros and confirmed that there was no executable file name caffe_ros_node but when i went further into /root/ws/src/caffe_ros/src, i see a file name caffe_ros_node.cpp. I was wondering if this is the file that needs to be in /root/ws/src/caffe_ros? If not, how would i fix the error?

Please see attached image for a screen shot on this issue.

screenshot from 2019-02-02 17-25-06

savath commented 5 years ago

@Alexey-Kamenev We were not able to solve the above issue. We tried to run catkin_make from the catkin workspace and ran into the following build errors:

screenshot from 2019-02-05 18-48-31

After doing some research, we think it could be a problem with OpenCV or TensorRT? We currently do not have OpenCV installed on the host and have TensorRT 4.0.1.6 as a .tar file (which was used to build the docker image). Are we missing a step in, which is the cause of our rosrun errors?

earcz commented 5 years ago

Try this: When you start docker, extract tensorrt.tar.gz and go inside tensorrt directory. Afterwards, copy include/* and lib/* into /usr/include and /usr/lib respectively.

As for Opencv, you should install opencv-2.x on host.

Alexey-Kamenev commented 5 years ago

Did you provide the correct version of TensroRT when building a Docker image (as documented here)? You need to use TRT 4.x as redtail is not tested with later versions and may not work. In general, if you build the image using our scripts/instructions then you don't need to install anything else. If you already built an image without proper version of TRT then follow instructions in the previous response.