This repository contains ROS2 packages for the ODrive motor controller:
odrive_node
: Standalone ROS2 node for communication with ODrives via CAN bus. → More infoodrive_ros2_control
: [work in progress] ros2_control integration for communication with ODrives via CAN bus.
→ More infoodrive_botwheel_explorer
: Example for using the odrive_ros2_control
package in the context of the ODrive BotWheel Explorer. → More infoodrive_node
and odrive_ros2_control
are two alternative approaches and cannot be used at the same time.
For information about installation, prerequisites and getting started, check out the ODrive ROS CAN Package Guide.
(not compatible with ODrive 3.x)
(For user instructions, see this guide instead.)
You can build this node on a non-ROS developer PC by using the DevContainer configurations in this repository. For example with VSCode:
Clone repository
Open the repository folder in VSCode. It should automatically present an option "Reopen in Dev Container". Click on that and select the desired ROS version.
Once it's re-opened, in the VSCode terminal, run:
colcon build --packages-select odrive_can
source ./install/setup.bash
Running the node requires hardware access and only works if the container host is Linux.