                                                         Geometric Contact Flows: Contactomorphisms for Dynamics and Control

                          ×10 1 ×10 1                                                                                            learned trajectory and successfully grasps the basket, even
                            1.0 3                                                                 Obstacle Distance 1.0




                                     Lagrangian Action
                                                                                                                                 when disturbances (such as the operator inadvertently dis-
                                                                                 0.05


                     Uncertainty
                                   0.8                                                                                0.5        placing the robot) cause deviations from the data manifold.
                                                         2
                                   0.6                                                                                           This robustness is essential in collaborative settings where
                                                         1                       0.00                                 0.0        humans and robots share the same workspace and may un-
                                   0.4                                                        Data Distance
                                          0                                                  100 200 300 400
                                                                                                                                 intentionally interfere with each other’s actions. Moreover,
                                 0                                                              Time steps                       the safe latent dynamics described in Equation (7c) allow
                         ×10 2 ×10 1
                                                                                                                    1.00         the robot to respond appropriately when the task cannot be
                                6                                                               Obstacle Distance
                                    Lagrangian Action

                           1.6       0.10                                                                           0.75         completed due to environmental contingencies. For instance,
                    Uncertainty




                           1.4  4    0.05                                                                           0.50         if an object is poorly positioned and blocks the basket from
                                                                                                                    0.25         closing, the robot detects that the required energy exceeds
                                   1.2                   2                       0.00                                            levels encountered during training and stops exerting force,
                                        Data Distance                                                               0.00
                                   1.0  200 400 600                                      0                                       thereby avoiding potentially damaging overexertion. Also
                                          Time steps
                                                         0
                                                                                                                                 this experiment is available in the video accompanying this
Figure 18. Obstacle avoidance behavior demonstrated by the                                                                       paper.
L EAF 2 (top) and the E LLE (bottom) characters. Obstacles are
represented as red dots.

                                                                                 0.2
                                                                                 0.0                      Ambient Space
                                                                                                          Latent Space
                                                             Lagrangian Action




                                                                                 0.2
                                                                                 0.4
                                                                                 0.6
     Programmed Path (1, 2, 3, 4)                                                0.8
     Operator Intervention                                                                   Programmed Path (1, 2, 3, 4)
     Demonstrations                                                              1.0         Operator Intervention
                                                                                 1.2 0        500     1000 1500
                                                                                                   Time Steps

Figure 19. Position and Lagrangian action trajectories (left and
right plots) for the unloaded WRAP - AND - PULL task when dis-
turbed by the operator’s physical intervention.

W RAP - AND -P ULL Task under Physical Perturbations
Figure 19 shows the robot trajectories in the position and
Lagrangian action spaces when physically perturbed by an
operator who deviates it from its nominal path. The robot’s
ability to recover the wrapping and pulling behavior even                                                                        Figure 20. Snapshots from the collaborative D ISHWASHER L OAD -
                                                                                                                                 ING task, illustrating key phases: reaching the basket, pulling
under physical perturbations showcases GCF’s robustness.
                                                                                                                                 (opening) the basket, operator placing a dish, pushing (closing) the
The Lagrangian action s, governed by the Maupertius’ prin-
                                                                                                                                 basket, and the robot returning to home position.
ciple (see Appendix D.3), decreases during the pulling task
as a result of the work performed by the robot on the en-
vironment. However, it increases when the environment,
                                                                                                                                 E.5. Scalability Evaluation with Synthetic Dynamics
represented by the operator, performs work on the robot.
Consequently, the robot gains additional energy to continue                                                                      To evaluate how GCF scales with varying target dimension-
progressing through the task.                                                                                                    alities and model sizes, we conduct experiments on synthetic
                                                                                                                                 data generated from contact Hamiltonian systems with dif-
D ISHWASHER L OADING Task Household environments                                                                                 ferent numbers of degrees of freedom. The dynamics are
represent a key frontier for collaborative robotics, where                                                                       governed by a single contact Hamiltonian function parame-
robots can assist with daily tasks, improving convenience,                                                                       terized by the target dimensionality d, ensuring consistent
safety, and quality of life, particularly for the elderly or indi-                                                               comparison across dimensions,
viduals with limited mobility (Shafiullah et al., 2023). Fig-
                                                                                                                                                      d/2               d/2
ure 20 shows snapshots of the main task phases: the robot                                                                                1 ⊤   1      X                 X
                                                                                                                                  H=       p p+ q⊤ q+     q2i q2i+1 +q0     q2i +s. (59)
reaches for and pulls out the dishwasher basket, enabling the                                                                            2     2       i                 i
human operator to place a dish, then pushes the basket back
in and returns to its home position. Thanks to the robustness                                                                    The summation terms couple the behavior of the various
of the GCF framework, the robot reliably converges to the                                                                        degrees of freedom, producing unique dynamics for each di-

                                                                                                                            25
