Feat/ add scan motors tool for troubleshooting during assembly and calibration #657
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this does
This PR introduces a command line tool that helps troubleshoot arm assembly issues.
Specifically it scans the motor bus and shows status for each discovered motor on a given USB port.
The PR also adds 2 Troubleshooting sub-sections: one the assembly section and another to the calibrate section of the so100 assembly doc.
This originated in problems I had during calibration.
The calibrate tool was throwing error messages that was not documented in the assembly steps:
First issue:
The error message did not make it obvious what the root cause of the problem was. Here is the discord discussion.
Second issue:
Solution provided by @Gordoa40 in discord help channel.
How it was tested
I tested the tool locally on Ubuntu with my 2 so100 robot arms.
How to checkout & try? (for the reviewer)
Checkout the code and run the script as shown in the example below on a Linux computer that is connected to a so100 robot arm.
Example: