GithubHelp home page GithubHelp logo

a4aleem / autorover Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noahrjohnson/autorover

0.0 0.0 0.0 25.19 MB

Using ROS to create an autonomous rover.

Python 11.21% Java 40.44% Arduino 39.45% CMake 8.90%

autorover's Introduction

AutoRover

Constructed Rover My New College of Florida undergraduate honors thesis project to try to create an autonomous ground vehicle.

The rover base consists of a Lynxmotion rover, an Arduino, and a Sabertooth motor driver. Sensors available include two quadrature rotary encoders, a mobile phone, and an ultrasonic distance sensor.

The Arduino acts as a low-level robotic controller, publishing wheel encoder and range data, and accepting motor velocity commands. An Android app publishes IMU and GPS data from the mobile phone, and the laptop fuses these readings into a state estimation using the robot_localization package.

See my Thesis for a detailed look into the project.

To use the auto_rover ROS package, simply copy auto_rover into the src folder of your catkin workspace, and then run 'catkin_make' and 'catkin_make install' from your workspace folder. You should then be able to roslaunch the different launch files. You will need to have this differential_drive package installed, as well as the robot_localization package.

To use the Arduino sketch, download the modified rosserial package here. Then use 'rosrun rosserial_arduino make_libraries.py /path/to/sketchbook/libraries/' to construct the ros_lib Arduino library. This modified version of rosserial supports the use of PROG_MEM string constants, which save dynamic memory on the Arduino. Also install the NewPing library into your sketchbook/libraries folder. Now you should be good to go, so open rover_sketch.ino in the Arduino IDE, connect your Arduino board with a USB printer cable, and upload the program.

Right now to build the RosSensors app onto your personal mobile phone, you have to build from source using Android Studio. Your phone will need to have a magnetometer, gyroscope, accelerometer, and GPS receiver. Connect your phone to your machine via a micro USB cable, and open the RosSensors project in Android Studio. You may have to fiddle with udev rules to make your machine recognize your phone, see here for instructions on that. Once your phone is recognized, select Build -> Run, and after a delay the app should open up on your phone. You should now find it under your Apps even after disconnecting the phone from your computer. To actually use the app, make sure a ROS Master instance is running on your machine, that your phone and machine are connected via USB, that your udev rules allow your phone to connect, that USB debugging mode is enabled, and that USB tethering is on. Then use ifconfig to find your phone's IP address, and enter that into the ROS Master chooser window and click Connect. If you're successful the app should say 'Connected', and you can view the data stream with 'rostopic list' 'rostopic echo ...'

autorover's People

Contributors

noahrjohnson 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.