hello-robot / stretch_web_teleop

Remote web teleoperation for the Stretch mobile manipulators from Hello Robot Inc.
Other
13 stars 0 forks source link

Add Ability to Toggle Tablet Portrait/Landscape #56

Closed hello-amal closed 2 months ago

hello-amal commented 2 months ago

Description

When the tablet is attached, it can be hard for the remote operator to: (a) know whether the tablet is in portrait or landscape mode; (b) move the tablet to portrait or landscape mode (exactly, without a few-degree offset).

This PR addresses that. Essentially, every time a new joint state is received by the operator interface, it computes the tablet orientation. It always displays a button below the gripper view, "Switch to __ View", where ____ is either Portrait or Landscape, whichever is the opposite of the robot's current tablet orientation.

This PR also creates a tablet-specific stow configuration.

Testing procedure

Future Work

It would be helpful to have similar "roll 90 degrees" actions for the gripper, but in that case there are more options than just portrait and landscape. For that case, we should put "roll clockwise/counter" buttons on the left/right of the gripper camera, similar to the head pan buttons, which rotates the wrist +/i 90 degrees, snapping to the nearest multiple of 90 degrees.

Before opening a pull request

From the top-level of this repository, run:

To merge