Closed hello-binit closed 2 months ago
Hey @hello-vinitha, thanks for your suggestions! I've updated the UI to be based on the Alert dialog, instead of the operator panels. I think the resulting UX is better. Here's the flow:
The added UI looks like this:
Mousing over the Question Mark shows additional information:
Clicking on the button shows a loader:
Once the homing sequence is complete, the UI disappears.
@hello-vinitha friendly ping!
@hello-binit I made the following changes in the latest commit and verified that it works as expected on 3030
:
Sweet, everything works on 3004. Merging!
Description
This PR adds the ability for a user to "home" the robot through the web interface. Since some of Stretch's encoders are relative, there's a homing sequence to find zero for those joints when Stretch wakes up. This PR addresses some of #60; it provides a way to home the robot, but doesn't grey-out un-homed joints, or implement a pre-scan behavior to give the robot confidence that jogging the joints won't cause the robot to topple itself over (this burden is currently placed on the operator).
The added UI looks like this:
Mousing over the Question Mark shows additional information:
Clicking on the button shows a loader:
Once the homing sequence is complete, the UI disappears.
Testing procedure
stretch_robot_dynamixel_reboot.py
.In your Ament workspace, go to Stretch ROS2 and switch to thebugfix/priority_mode_stall
branch. If PR https://github.com/hello-robot/stretch_ros2/pull/162 is merged, you cangit pull
on the default branch.feature/homing
branch.In the same repo, cherry-pick a numpy fix onto the homing branch. The command isgit cherry-pick -n 6dfcf32e50175dff5cfabaa2c581486660f1d143
, followed bygit reset
. If PR https://github.com/hello-robot/stretch_web_teleop/pull/97 is merged, then this step may be unnecessary (depends on whether I've rebased this branch).colcon build
the Ament workspace as usualThe homing button will appear. Click it and it should disappear after homing is complete.
Before opening a pull request
From the top-level of this repository, run:
pre-commit run --all-files
To merge
Squash & Merge
Additional Screenshots
These screenshots are of the first attempt at this UI. It has since been replaced.