GithubHelp home page GithubHelp logo

mindthomas / jetsoncar-ros Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 93 KB

WARNING! This repository is deprecated. Please find the latest code in: https://github.com/mindThomas/JetsonCar

License: MIT License

CMake 26.56% Shell 0.85% Python 6.64% C++ 65.14% C 0.82%

jetsoncar-ros's Introduction

JetsonCar-ROS

Install and Setup of nVidia Jetson TX2

  1. Install Ubuntu 18.04 through JetPack 4.4.1.
  2. Configure the PC name to be: jetson-car
  3. Configure the username to be: jetson
  4. Install ROS Melodic.

Clone and Build

Install necessary tools

This project uses ROS Melodic and the following extra dependencies:

sudo apt-get install python-catkin-tools
sudo apt-get install python-rosdep

Cloning

To set up the simulation environment you need to clone the necessary repositories into an existing or new catkin workspace. Follow the steps below to set up a new catkin workspace and clone:

mkdir -p ~/ros_ws/src
cd ~/ros_ws/src
catkin_init_workspace
git clone https://github.com/mindThomas/JetsonCar-Gazebo
git clone https://github.com/mindThomas/JetsonCar-ROS
git clone https://github.com/mindThomas/realsense_gazebo_plugin
cd ..
rosdep install --from-paths src --ignore-src -r -y

Building

Build the project with catkin build

cd ~/ros_ws
catkin build
source devel/setup.bash

Notes

Descriptions and guides how to use this ROS project can be found in the notes below.

USB rules file for automatic device detection

The MCU can automatically be detected and assigned to /dev/jetsoncar when connecting it over USB if the rules file, 99-jetsoncar.rules, is installed.

To install the rules file, copy 99-jetsoncar.rules to /etc/udev/rules.d/.

Install as service on boot

A startup script and corresponding service (for starting at boot) for launching the minimal bringup launch file has been made.

Copy the startup_launch.sh and PrepareHostROS.sh to the home folder. Copy the file jetsoncar.service into /lib/systemd/system and modify the path to the startup_launch.sh script accordingly and rename the user and group to the username on the device if different. Enable the service on boot by running:

sudo systemctl daemon-reload
sudo systemctl enable jetsoncar.service

After the service has been installed the driver can be started, stopped or restarted by using:

sudo service jetsoncar start
sudo service jetsoncar stop
sudo service jetsoncar restart

jetsoncar-ros's People

Contributors

mindthomas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mfkiwl weigaofei

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.