OpenArm motors aren't visible in the lerobot
lerobot Release v0.5.0
OS: Ubuntu 22.04.5 LTS x86_64
Python 3.10.12
Hello!
I'm trying to run OpenArm hardware with lerobot. But the motors aren't visible in the lerobot-setup-can --mode=test tests. Even though all the settings are correct and the can0 interface is accessible. For example, the Python openarm_can module is fine: the motors are visible and work fine through it. The system has been tested.
The only thing that confuses me is the "timeout value". Lerobot doc wrote:
"If motors were configured with timeout=0, they won’t respond to commands. Use Damiao Debugging Tools to set a non-zero timeout value."
I tried setting the "timeout" parameter to 1, 10, 100, and 200. It doesn't help...
$ lsusb
...
Bus 001 Device 007: ID 0c72:0011 PEAK System PCAN-USB Pro FD
...
$ sudo ip link set can0 down
$ sudo ip link set can0 type can bitrate 1000000 dbitrate 5000000 fd on
$ sudo ip link set can0 up
$ ifconfig -a
can0: flags=128<NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
can1: flags=128<NOARP> mtu 16
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
"Timeout" parameter:
$ ./DMTool_v2.1.5.3-x86_64.AppImage
$ lerobot-setup-can --mode=setup --interfaces=can0
==================================================
CAN Interface Setup
==================================================
Mode: CAN FD
Bitrate: 1.0 Mbps
Data bitrate: 5.0 Mbps
Configuring can0...
✓ can0: UP
Setup complete!
Next: Test motors with:
lerobot-setup-can --mode=test --interfaces can0
$ lerobot-setup-can --mode=test --interfaces=can0
==================================================
CAN Motor Test
==================================================
Testing motors 0x01-0x08
Mode: CAN FD
can0: UP
Motor 0x01 (joint_1): ✗ No response
Motor 0x02 (joint_2): ✗ No response
Motor 0x03 (joint_3): ✗ No response
Motor 0x04 (joint_4): ✗ No response
Motor 0x05 (joint_5): ✗ No response
Motor 0x06 (joint_6): ✗ No response
Motor 0x07 (joint_7): ✗ No response
Motor 0x08 (gripper): ✗ No response
Summary: 0/8 motors found
==================================================
Summary
==================================================
Total motors found: 0
⚠ No motors found! Check:
1. Motors are powered (24V)
2. CAN wiring (CANH, CANL, GND)
3. Motor timeout parameter > 0 (use Damiao tools)
4. 120Ω termination at both cable ends
5. Interface configured: lerobot-setup-can --mode=setup --interfaces can0
terminal 2 for test:
$ candump can0
can0 001 [08] FF FF FF FF FF FF FF FC
can0 001 [08] FF FF FF FF FF FF FF FD
can0 002 [08] FF FF FF FF FF FF FF FC
can0 002 [08] FF FF FF FF FF FF FF FD
can0 003 [08] FF FF FF FF FF FF FF FC
can0 003 [08] FF FF FF FF FF FF FF FD
can0 004 [08] FF FF FF FF FF FF FF FC
can0 004 [08] FF FF FF FF FF FF FF FD
can0 005 [08] FF FF FF FF FF FF FF FC
can0 005 [08] FF FF FF FF FF FF FF FD
can0 006 [08] FF FF FF FF FF FF FF FC
can0 006 [08] FF FF FF FF FF FF FF FD
can0 007 [08] FF FF FF FF FF FF FF FC
can0 007 [08] FF FF FF FF FF FF FF FD
can0 008 [08] FF FF FF FF FF FF FF FC
can0 008 [08] FF FF FF FF FF FF FF FD
Can you help with it?
I made the same issue on lerobot github too: https://github.com/huggingface/lerobot/issues/3178
Thank you!
Would the patch proposed in https://github.com/huggingface/lerobot/issues/3178#issuecomment-4357485498 fix this?
Would the patch proposed in huggingface/lerobot#3178 (comment) fix this?
No, it doesn't work.
Please help. Thank you!
What does candump -x can0 show while running the test (after applying the BRS patch)?