Code Monkey home page Code Monkey logo

tjuagvcar's Introduction

Tju Automated Guided Vehicle

This is the 'src' directory of the catkin workspace for the Tju Automated Guided Vehicle(TjuAgvCar).

Joystick controlling explanation

Environment

Hardware

Software

Building the vehicle

FLASHING Jetson TX1 with Jetpack 3.2 or 3.2.1

In this part, what we're supposed to do is just flashing the Jetson TX1 with Jetpack 3.2 or 3.2.1 under Ubuntu 16.04. Instructions can be found here.

BUILDING kernel and modules for Jetson TX1

In this part, we are going to build a custom kernel and some essential modules for our Jetson TX1, in case we're going to use the Intel Realsense R200 and RpLidar A1. In order to do so, we follow instructions provided by JetsonHacks.com, and the github repository is here. Great thanks to JetsonHacks.com!

With this step finished, our kernel shall be ready for the Intel Realsense R200 and RpLidar A1.

INSTALLING ROS for Jetson TX1

In this part, we're going to install ROS on our Jetson TX1. With original instructions provided by JetsonHacks.com we are able to install ROS outside of China. Due to some well-known reason, the above instructions is not usable in China. So I change the source mirror of ROS to 'mirror.umd.edu', instructions can be found here.

INSTALLING driver for sensors(R200, RpLidar A1 and USB camera)

INSTALLING essential libraries and frameworks

  • Numpy
        
  • TensorFlow python3 spec for Jetson TX1
        
  • OpenCV 3.4, both C++ and python3 binding
        We'd like to use OpenCV3.4 in our codes, so we have to install it first for both C++ and python3. Instructions can be found here.
        Actually there may be an error that we still can not import cv2 in python3 codes under ROS, because ROS, in default, will import cv2 for python2.7(all because ROS does not support python3). So we have to remove cv2.so in python2.7's dist-packages using the following command:
	sudo mv /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so /opt/ros/kinetic/lib/python2.7/dist-packages/cv2.so.bk

    And after that, we should tell ROS to use the 'cv2.so' version of our installed opecv3.4, which is /usr/local/lib/python3.5/dist-packages/cv2.cpython-35m-aarch64-linux-gnu.so. Using the following to make a symbolic link:

	cd /usr/local/lib/python3.5
	sudo mkdir site-packages # if site-packages not exists
	sudo ln -sf /usr/local/lib/python3.5/dist-packages/cv2.cpython-35m-aarch64-linux-gnu.so /usr/local/lib/python3.5/site-packages/cv2.so

    Last step, add the following line to your .bashrc or .zshrc file.

	export PYTHONPATH = "/usr/local/lib/python3.5/site-packages:$PYTHONPATH"

    With all the above steps we can now import cv2 in our python3 codes.

BUILDING a node with python3

tjuagvcar's People

Contributors

tevenfeng avatar

Watchers

James Cloos 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.