Giter Site home page Giter Site logo

robowheel_odrive's Introduction

Robowheel + ODrive + ROS2

WhatsApp Video 2022-10-06 at 07 31 43

This repository will contain configuration files, scripts, and eventually a ROS 2 node pertaining to the control of "RoboWheel" hub motors from Sky's Edge. specifically using the ODrive brushless motor controller (anxiously awaiting the release of Sky's Edge NearZero2 controller!).

Big thanks to Andy (check out his robot donkeys here!) for sharing his ODrive configuration.


To get moving,

This assumes you have ROS2 and the ODrive Python library installed...

If you want to see your wheels move in a lovely sinusoidal fashion like in this demo, - Copy the odrive_driver and two_wheel_demo packages to your ros2_ws/src

  • Edit the serial number in /odrive_driver/odrive_driver/odrive_command.py to match your own (instructions for getting SN are in the comments of the file)
  • Build the packages from within ros2_ws using colcon build
  • Run the demo using
ros2 run odrive_driver odrive_node // In one terminal
ros2 run two_wheel_demo run_demo   // In a separate terminal

Alternatively

  • You can publish vel or pos commands to whichever axis you'd like, for instance to command a velocity of 1 turn/sec on axis0:
ros2 topic pub -r 10 /axis0_vel_sub std_msgs/msg/Float32 "{data: 0.5}"

robowheel_odrive's People

Contributors

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