Skip to content

A clear template for fast implementation of custom hardware and controllers based on odrive_ros2_control

Notifications You must be signed in to change notification settings

zengxiaolei/odrive_diff_drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

odrive_diff_drive ROS2 Package

The odrive_diff_drive package implements a use case of diff_drive_controller based on ODrive driver for ros2_control. It provides a clear and simple template for faster implementation of custom hardware and controllers.

Requirements

Make sure that the following packages and their depends are installed.

Prerequisites

  • ROS Foxy (Tested)
  • Power Supply
  • ODrive with two pairs of motors and encoders connected

Usage

You can modify the controller parameters if needed or leave them unchanged. Launch all function by the following command.

ros2 launch odrive_diff_drive odrive_diff_drive.launch.py

You can modify and send velocity commands by rqt_publisher UI.

If all goes well, the motors run according to your velocity command, you can also see the coordinate system movement in RVIZ.

Videos

Note, the two videos are not synchronized.

motor.mp4
rviz.mp4

reference

About

A clear template for fast implementation of custom hardware and controllers based on odrive_ros2_control

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published