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

Feature/hello discover devices #56

Merged
merged 8 commits into from
Jan 17, 2023
Merged

Conversation

hello-fazil
Copy link
Contributor

@hello-fazil hello-fazil commented Jan 17, 2023

This PR introduces the new tool REx_discover_hello_devices.py.

  • This tool will enable users to find and map all the robot-specific USB devices (i.e. Lift, Arm, Left wheel, Right wheel, Head, Wrist/End-of-arm) and assign them to the robot by updating UDEV rules and stretch configuration files.
  • This tool prompts the users to move the robot manually in a specific manner, and based on the joint movements, the hello-* device assignments are done. This tool supports stretch_gripper and stretch_dex_wrist tool configurations.
  • This tool can be recommended to users every time a PCBA, or motor assembly is replaced or when any /dev/hello-* devices go missing from the USB bus for debugging.

Usage

For use with S T R E T C H (R) RESEARCH EDITION from Hello Robot Inc.
---------------------------------------------------------------------

usage: REx_discover_hello_devices.py [-h] [--discover | --list_tty]

Find and map all the robot-specific USB devices (i.e. Lift, Arm, Left wheel, Right wheel, Head, Wrist/End-of-arm) and assign them to
the robot by updating the UDEV rules and stretch configuration files.This tool can be utilized everytime a PCBA, motor assembly is
replaced or if any /dev/hello-* devices go missing from the USB bus.

optional arguments:
  -h, --help  show this help message and exit
  --discover  Discover the devices by set of user instructions and re-assign them to the robot
  --list_tty  Display the currently available devices info(model,path,serial,vendor) in the paths /dev/ttyACM* and /dev/ttyUSB*

cmd : REx_discover_hello_devices.py --discover Example output

@hello-binit hello-binit self-requested a review January 17, 2023 02:27
Copy link
Contributor

@hello-binit hello-binit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Looks good to merge. I'd add an entry to the CHANGELOG to document that a new tool was added.

@hello-fazil hello-fazil merged commit ccefff4 into master Jan 17, 2023
@hello-fazil hello-fazil deleted the feature/hello_discover_devices branch January 17, 2023 03:45
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.

2 participants