Giter Site home page Giter Site logo

odrive-ros2-node's Introduction

odrive-ros2-node

ROS2-Node for ODrive

Features

  • polls odrive velocity, motor_position, applied voltage, odrive temperature and applied torque
  • sets desired velocity
  • Uses Checksum when communicating with ODrive

Polling rate

  • node polls one value every 10ms
  • request priority sets priority in poll-list using modulo(0 - 99)

Example

  • priority_bus_voltage = 1, priority_temperature = 2
  • output:
  • counter 0:
    • (@10ms)bus_voltage
  • counter 1:
    • (@20ms)bus_voltage
    • (@30ms)temperature
  • counter 3:
    • (@40ms)bus_voltage
  • counter 4:
    • (@50ms)bus_voltage
    • (@60ms)temperature
  • ...

Topics

  • publishes:

    • <std_msgs/Float32>"/odrive_bus_voltage"
    • <std_msgs/Float32>"/odrive0_velocity"
    • <std_msgs/Float32>"/odrive0_position"
    • <std_msgs/Float32>"/odrive0_temperature"
    • <std_msgs/Float32>"/odrive0_torque"
    • <std_msgs/Float32>"/odrive1_velocity"
    • <std_msgs/Float32>"/odrive1_position"
    • <std_msgs/Float32>"/odrive1_temperature"
    • <std_msgs/Float32>"/odrive1_torque"
  • set priority to 0 to disable topic

listens to:

  • <std_msgs/Float32>"/odrive0_set_velocity"
  • <std_msgs/Float32>"/odrive1_set_velocity"

Usage

  • ros2 run odrive_node odrive_node
  • set motor variable to 0(default), 1, or 2 to set both to active
  • set priority from 0 to 99
  • (set to defaults)
    • ros2 run odrive_node odrive_node --ros-args --remap __ns:=/ -p port:='/dev/ttyS1' -p motor:=0 -p priority_position_velocity:=1 -p priority_bus_voltage:=2 -p priority_temperature:=3 -p priority_torque:=4

Dependencies

  • rclcpp
  • std_msgs

odrive-ros2-node's People

Contributors

sb-fwr avatar phileasl avatar mh-fwr 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.