Giter Site home page Giter Site logo

shineyruan / cad2cav_onboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28.79 MB

On-board part of Project CAD2CAV: Computer Aided Design for Cooperative Autonomous Vehicles

Home Page: https://github.com/mlab-upenn/ISP2021-cad2cav

CMake 0.28% C++ 2.36% Python 0.34% C 96.99% Shell 0.04%
object-detection ros autonomous-vehicles autonomous-racing cad2cav f1tenth

cad2cav_onboard's Introduction

cad2cav_onboard

Welcome to the on-board part of CAD2CAV project. For a detailed project documentation, see the main repo..

System Requirements

  • Nvidia Jetson Xavier NX Development Kit (hardware device)
  • Linux Ubuntu 20.04 LTS/18.04 LTS
  • ROS Noetic/Melodic
  • GCC 7+/Clang 7+

Software Requirements

First run and install the following packages from Ubuntu repository:

sudo apt install libboost-all-dev

Then install OpenCV 4.5.1 on Xavier NX board by running

cd scripts
sudo ./Install_OpenCV-4-5-1.sh

Note. It might take ~2 hrs to fully install OpenCV 4.5.1 on the device.

Then install other dependencies manually, by either building from source or following the official documentation.

Installation

The entire process is ready for installation on an F1/10 Autonomous Racing Car, which uses an Nvidia Jetson Xavier Board. Users must also install the system-level drivers for F1/10 cars from this repository.

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws
catkin_init_workspace
cd src
git clone https://github.com/shineyruan/cad2cav_onboard.git
git clone https://github.com/f1tenth/f1tenth_system.git
git clone --recursive https://github.com/shineyruan/cad2cav_common.git
cd ..

To build the project on the car (ROS Melodic), you have to manually specify Python 3 path for cv_bridge building compliance. Run:

catkin_make_isolated --use-ninja -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.6m.so
source devel_isolated/setup.bash

Optional Dependencies

For object detection with YOLO in darknet architecture, one could also experiment with Shumin326/darknet_ros. The package has been adapted from the upstream repo and is verified to run successfully on the F1Tenth car.

cd ~/catkin_ws/src
git clone --recursive https://github.com/Shumin326/darknet_ros
cd ..

Usage

  1. For object detection, run
rosrun object_detection object_detection_node --model=darknet

You can also specify a pre-recorded video to visualize by adding --video=<PATH_TO_VIDEO> as a command line argument.

Acknowledgements

The object detection part of project uses a pre-trained model of Tiny-YOLO v4 directly from the author's website.

cad2cav_onboard's People

Contributors

shineyruan avatar shumin326 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.