hcrlab / stretch_web_interface

Prototype web interface that enables remote teleoperation of the Stretch RE1 mobile manipulator from Hello Robot Inc.
Other
7 stars 3 forks source link

Visual torque feedback #20

Closed mayacakmak closed 3 years ago

mayacakmak commented 3 years ago

Charlie has implemented visual feedback about joint effort (torque) for a few critical joints in the form of transparent color overlays in the screen region corresponding to that joint. The first few are integrated (in the "Hand" tab) and the next few are ready to be merged in the upstream master.

This should be done before some of the other major changes. This functionality will transfer to the manipulation part of the interface upon switching to non-modal layout, will need to figure out what to do with hand torque feedback (make the button red?).

There is a discussion about a nonlinear function (perhaps simply some sort of threshold?) to do something in the interface as a more serious warning.

mayacakmak commented 3 years ago

Upstream changes have been merged, needs to be tested on the robot.

mayacakmak commented 3 years ago

This is currently not working even though it was tested successfully earlier for the Hand mode. Not sure when it stopped working, Vy said it never worked on their end, but will dig in now to debug.

mayacakmak commented 3 years ago

Getting closer... for some reason the getJointEffort() function in ros_connect.js is not implemented anywhere. I wonder if some merge caused this.

mayacakmak commented 3 years ago

Brought back the getJointEffort() function (Commit d168a86) and things are back to working.

Screen Shot 2021-06-28 at 1 22 40 PM

mayacakmak commented 3 years ago

This is broken again :) works for wrist but not arm--looking into it now.

mayacakmak commented 3 years ago

Fixed now, working for all joints. I moved the hand actions (open/close) back onto the overlay, which is a bit less intuitive in terms of where to look for the action but more intuitive for the visual feedback.