Software
OpenArm CAN library
By Enactic, Inc., Japan (checked on github.com/enactic (opens in a new tab)), from github.com/enactic/openarm_can (opens in a new tab)
- Robot arms and industry
- Driver or SDK
- Runs on hardware you can build
- Apache-2.0
A C++ library and command-line tool for CAN bus communication with OpenArm robot hardware, driving Damiao motors over CAN or CAN-FD interfaces on Linux.
Facts
- GitHub stars
- 70read on 28 Nov 2026
- Last update
- 19 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
- Hardware it needs, as the project states it
- Linux with SocketCAN support and a CAN interface; supported Ubuntu releases are 22.04, 24.04 and 26.04.
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE.txt (opens in a new tab) (Apache-2.0) at commit 20d66f0 (opens in a new tab), on 21 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides a C++ API to initialize arm motors, enable them, and control them over SocketCAN.
- Includes a CLI tool for configuring the CAN interface, discovering motors on the bus, and monitoring their status.
- Offers an experimental Python binding that is a low-level port and whose interface is expected to change.
- Ships packages for Ubuntu and for AlmaLinux, CentOS, Fedora, RHEL and Rocky Linux, with example programs in C++ and Python.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 19 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/enactic/openarm_can (opens in a new tab)
- The version Robotheca read20d66f0 (opens in a new tab)
- Latest releaseOpenArm CAN 1.4.1 (20 Oct 2026)
Robotheca read the repository at two versions: the summary at f340d4b and the facts and the README at 20d66f0 (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Enactic, Inc., at commit 20d66f0, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
OpenArm CAN Library
A C++ library for CAN communication with OpenArm robotic hardware, supporting Damiao motors over CAN/CAN-FD interfaces. This library is a part of OpenArm (opens in a new tab). See detailed setup guide and docs here (opens in a new tab).
Quick Start
Prerequisites
- Linux with SocketCAN support
- CAN interface hardware
1. Install
Ubuntu
- 22.04 Jammy Jellyfish
- 24.04 Noble Numbat
- 26.04 Resolute Raccoon
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:openarm/main
sudo apt update
sudo apt install -y \
libopenarm-can-dev \
openarm-can-utils
AlmaLinux, CentOS, Fedora, RHEL, and Rocky Linux
- Enable EPEL (opens in a new tab). (Not required for Fedora (opens in a new tab))
- AlmaLinux 8 / Rocky Linux 8
sudo dnf install -y epel-release sudo dnf config-manager --set-enabled powertools - AlmaLinux 9 & 10 / Rocky Linux 9 & 10
sudo dnf install -y epel-release sudo crb enable - CentOS Stream 9
sudo dnf config-manager --set-enabled crb sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel{,-next}-release-latest-9.noarch.rpm - CentOS Stream 10
sudo dnf config-manager --set-enabled crb sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm - RHEL 8 & 9 & 10
releasever="$(. /etc/os-release && echo $VERSION_ID | grep -oE '^[0-9]+')" sudo subscription-manager repos --enable codeready-builder-for-rhel-$releasever-$(arch)-rpms sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$releasever.noarch.rpm
- AlmaLinux 8 / Rocky Linux 8
- Install the package.
sudo dnf update sudo dnf install -y \ openarm-can-devel \ openarm-can-utils
2. Setup CAN Interface
Configure your CAN interface using the provided script:
# CAN 2.0 (default)
openarm-can-configure-socketcan can0
# CAN-FD with 5Mbps data rate
openarm-can-configure-socketcan can0 -fd
3. CLI Tool
openarm-can-cli provides a command-line interface for motor configuration and diagnostics.
# Configure CAN interface (default: 1Mbps nominal, 5Mbps data, CAN-FD)
openarm-can-cli -i can0 can_configure
# Configure with 1Mbps data rate (Classic CAN)
openarm-can-cli -i can0 can_configure -d 1000000 --no-fd
# By default the interface stays down after a bus-off so the fault is visible
# (restart-ms 0). Pass --rm to let the kernel restart it automatically instead
openarm-can-cli -i can0 can_configure --rm 100
# Discover motors on the bus
openarm-can-cli -i can0 discover
# Monitor motor status (arm motors 1-8 by default)
openarm-can-cli -i can0 monitor
# Monitor specific motors
openarm-can-cli -i can0 monitor --id 1,2,3
Run openarm-can-cli -h for full usage.
4. C++ Library
#include <openarm/can/socket/openarm.hpp>
#include <openarm/damiao_motor/dm_motor_constants.hpp>
openarm::can::socket::OpenArm arm("can0", true); // CAN-FD enabled
std::vector<openarm::damiao_motor::MotorType> motor_types = {
openarm::damiao_motor::MotorType::DM4310, openarm::damiao_motor::MotorType::DM4310};
std::vector<uint32_t> send_can_ids = {0x01, 0x02};
std::vector<uint32_t> recv_can_ids = {0x11, 0x12};
openarm.init_arm_motors(motor_types, send_can_ids, recv_can_ids);
openarm.enable_all();
See dev/README.md (opens in a new tab) for how to build.
4. Python (馃毀 EXPERIMENTAL - TEMPORARY 馃毀)
[!WARNING]
鈿狅笍 WARNING: UNSTABLE API 鈿狅笍 Python bindings are currently a direct low level temporary port, and will change DRASTICALLY. The interface may break between versions. Use at your own risk! Discussions on the interface are welcome.
Build & Install:
Please ensure that you install the C++ library first, as 1. Install or dev/README.md (opens in a new tab).
cd python
# Create and activate virtual environment (recommended)
python -m venv venv
source venv/bin/activate
pip install .
Usage:
# WARNING: This API is unstable and will change!
import openarm_can as oa
arm = oa.OpenArm("can0", True) # CAN-FD enabled
arm.init_arm_motors([oa.MotorType.DM4310], [0x01], [0x11])
arm.enable_all()
Examples
- C++:
examples/demo.cpp- Complete arm control demo - Python:
python/examples/example.py- Basic Python usage
For developers
See dev/README.md (opens in a new tab).
Related links
- 馃摎 Read the documentation (opens in a new tab)
- 馃挰 Join the community on Discord (opens in a new tab)
- 馃摤 Contact us through openarm@enactic.ai (opens in a new tab)
License
Licensed under the Apache License 2.0. See LICENSE.txt for details.
Copyright 2025-2026 Enactic, Inc.
Code of Conduct
All participation in the OpenArm project is governed by our Code of Conduct (opens in a new tab).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.