Code Monkey home page Code Monkey logo

ros2_differential_drive's Introduction

Differential drive

This is the differential_drive ROS2 version of the package written by Jon Stephan. The originally published version of the package was released on Google Code. When Google Code was archived, a copy was pulled into GitHub.

The original package was written for ROS Groovy. In 2015 Mark Rose made minor source changes to update the package for ROS Hydro and above, moving to catkin, removing code warnings, and changing the package layout to match current ROS guidelines.

2020 Andreas Klintberg update all of it to ROS2 and changed the layout to fit the new Python ROS2 guidelines.

ROS package page:: http://wiki.ros.org/differential_drive

Jon Stephan’s repository location:: https://github.com/jfstepha/differential-drive

Original, archived code repository:: https://code.google.com/p/differential-drive/

(Optional) Hardware and firmware

Included in this repository is now also a firmware to be used using a simple arduino and rotary encoders that are easily found for cheap on eBay. The reason for this is because it's a super easy way to get two wheel rotary encoders data connected using only USB.

Hardware and setup

Arduino UNO or similar. Rotary encoder (assumes optical incremental encoder)

  1. Hook up the red power line to +5V and the black wire to ground.

  2. Wire rotary encoder for the right (from the front) wheel the A and B lines (green and white) to Arduino D2 ad D3.

  3. Wire rotary encoder for the left (from the front) wheel the A and B lines (green and white) to Arduino D4 ad D5.

Connect Arduino and upload the sketch found in the firmware-folder.

Open up the serial monitor and either turn each wheel or just rotate both rotary encoder axles, and make sure you get some reasonable output.

Installation

colcon build --symlink-install

Make sure to activate your workspace afterwards.

Usage

ros2 run differential_drive diff_tf

API Docs

Please refer to the ROS Wiki page for this package for API information: http://wiki.ros.org/differential_drive.

License

Unfortunately since the original repo that this was based on is GPL, this one also needs to be GPL. I asked the author to change the license if that ever happens this will immediately follow that and become MIT.

The firmware is taken from an MIT package.

The code is licensed under the terms of the Gnu General Public License, Version 3. See the file LICENSE for details.

ros2_differential_drive's People

Contributors

jfstepha avatar eden-desta avatar merose avatar bsteiner-dandy avatar samcranford avatar klintan 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.