Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update find_available_ports to use serial.tools.list_ports #372

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

meetsitaram
Copy link

What this does

Update dynamizel.py::find_available_ports to detect usb port connected to the dynamixel servos in multiple platforms - windows, mac and linux. The current approach of using Path("/dev").glob("tty*") was unable to detect ports in windows.

How it was tested

I tested the logic by running on a pc, mac as well as a linux virtual machine and was able to detect the port on all three platforms.

  • windows detected COM5
  • mac detected /dev/cu.usbmodel585A00081751
  • linux virtual machine detected /dev/ttyACM0

How to checkout & try? (for the reviewer)

This can be tested only when running the dynamixel script while connecting and disconnected the usb device.

python lerobot/common/robot_devices/motors/dynamixel.py

@Cadene Cadene self-assigned this Sep 12, 2024
@Cadene Cadene self-requested a review September 12, 2024 22:48
@Cadene
Copy link
Collaborator

Cadene commented Sep 12, 2024

@meetsitaram Thanks a lot for your PR, and for testing it on Mac, Linux and Windows.

We will work on merging it as soon as we added Continuous Integration on these 3 environments.

As of now we run CI on Linux only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants