Code Monkey home page Code Monkey logo

swerve_drive's Introduction

Overview

swerve_drive_ros

A swerve drive is a special type of drivetrain used in FRC (FIRST Robotics Competition). It allows each individual wheel to be powered and turned independent from the other wheels, giving it unparalleled maneuverability on the field. It has following features:

  • Independently steered drive modules
  • Simple conceptually
  • Simple wheels
  • Good traction
  • Complex to build
  • Complex to program and control
  • Maximum pushing force
  • Either steered gearboxes or concentric drive

Video  

Swerve drive ros  

BOM (Build of Materials)

The off-the-shelf components for building and testing swerve-drive system are listed below. You can also download bracket (.stl) file for 3d printing from 'models' folder.

Parts Model Qty
Dynamixel Servo Motor XL430-W250-T 2
Communication Interface U2D2 1
Wheel+Tire Set TB3_WHEEL-ISW-01 1
SMPS SMPS2Dynamixel 1
Converting Cable(Molex-TTL) ROBOT CABLE-X3P 1
Communication Calbe(TTL) ROBOT CABLE-X3P 2

How to use

This work was tested under ROS Kinetic(desktop-full installation) + Ubuntu Xenial(16.04)

Wiring & motor configure

Motor's ID should be set as described picture below. You can set motor ID via dynamixel_workbench(Linux) or R+ Manager 2.0(Windows) wiring

Prerequisites

Following packages should be installed.

$ sudo apt-get install ros-kinetic-dynamixel-sdk
$ sudo apt-get install ros-kinetic-qt-build
$ sudo apt-get install ros-kinetic-dynamixel-workbench
$ sudo apt-get install ros-kinetic-dynamixel-workbench-msgs

Download & compile the source

  1. Clone this repository to your catkin workspace,
$ cd catkin_ws/src
$ git clone https://github.com/james-yoo/swerve_drive.git
  1. Compile the source,
$ cd ~/catkin_ws
$ catkin_make
$ source devel/setup.bash
  1. Launch the swerve_drive_control node,
$ roslaunch swerve_drive swerve_drive_control.launch
  1. Open the new terminal and start teleop_twist_keybord script,
$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py
  1. Control with twist keybord command:
  • 'i' = forward
  • ',' = backward
  • 'j' = left turn
  • 'l' = right turn
  1. (Optional) To visualize swerve_drive in Rviz, open the new terminal,
$ roslaunch swerve_drive swerve_drive_urdf.launch

swerve_drive's People

Contributors

james-yoo 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.