jetsonhacks / installRACECAR

Install the MIT RACECAR ROS software and dependencies
MIT License
3 stars 4 forks source link

Manual CatKin for Zed #1

Open wallarug opened 6 years ago

wallarug commented 6 years ago

Hi Jim,

I emailed a couple of days ago (Cian Byrne) about running this script.

We have since solved the problem and got the script to run successfully.

It is my understanding that we did this by having to manually run the catkin_make in the zed directory located in the ~/racecar-ws folder ( ~/racecar-ws/zed_wrapper). After this, we then ran the installRACECAR.sh script successfully.

We think there could be something potentially wrong with your installRACECAR.sh script that is causing this. Do you have any ideas why this solved our problems?

Happy to help out any way we can. Thanks for your hard work.

Cian Byrne

wallarug commented 6 years ago
[ 93%] Built target vesc_driver_nodelet
/home/nvidia/Documents/racecar-ws/src/zed_wrapper/src/zed_wrapper_nodelet.cpp:66                                                           :26: fatal error: zed/Camera.hpp: No such file or directory
compilation terminated.
zed_wrapper/CMakeFiles/ZEDWrapper.dir/build.make:62: recipe for target 'zed_wrap                                                           per/CMakeFiles/ZEDWrapper.dir/src/zed_wrapper_nodelet.cpp.o' failed
make[2]: *** [zed_wrapper/CMakeFiles/ZEDWrapper.dir/src/zed_wrapper_nodelet.cpp.                                                           o] Error 1
CMakeFiles/Makefile2:3965: recipe for target 'zed_wrapper/CMakeFiles/ZEDWrapper.                                                           dir/all' failed
make[1]: *** [zed_wrapper/CMakeFiles/ZEDWrapper.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j6 -l6" failed

I still haven't got a solid solution for fixing this up or a solid cause of the problem either. I think it is to do with the MIT script and the particular version of the zed-wrapper that they check out.

nvidia@tegra-ubuntu:~$ uname -r
4.4.38-cdog-v0.2

nvidia@tegra-ubuntu:~$ python3
Python 3.5.2 (default, Sep 14 2017, 22:51:06)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.3.0'
>>> 

Running L4T 28.1 with full install on Jetson TX2.

jetsonhacks commented 6 years ago

That is correct. If you read the installRACECAR.sh script, you'll see the line: wget -q https://raw.githubusercontent.com/mit-racecar/racecar/master/racecar.rosinstall -O "$DEFAULTDIR"/.rosinstall

The content of the file racecar.rosinstall is:

- setup-file: {local-name: /opt/ros/kinetic/setup.sh}
- git: {local-name: src/racecar,         version: master,        uri: 'https://github.com/mit-racecar/racecar.git'}
- git: {local-name: src/vesc,            version: master,        uri: 'https://github.com/mit-racecar/vesc.git'}
- git: {local-name: src/zed_wrapper,     version: 6c06bb0a3c32aa2dec4a539e296f6ee1d6937518,        uri: 'https://github.com/stereolabs/zed-ros-wrapper.git'}

The MIT RACECAR scripts are for use on a Jetson TX1, version L4T 24.2.2.

You are trying to install on a machine which requires a version 2.X of the ZED wrapper. So you will have to modify the racecar.rosinstall file to get the zed_wrapper with the version that corresponds to the version that you want to use, e.g. v2.1.x

As you know, OpenCV4Tegra is a requirement for the ZED stereo camera, and must be installed prior to compiling the ZED wrapper.

You should remember these types of example scripts tend to get out of date as time passes. You should be able to use them as a guide to build scripts for your particular purpose and system configuration.