WEBVTT

NOTE
Kamino: GPU-based Simulation of Rigid Multi-Body Physics with Kinematic Loops
Transcript by RoboGeeks: https://robogeeks.org/videos/_eYarcC8D9Y

1
00:00:00.270 --> 00:00:05.070
We present Kamino, a GPU-based solver for rigid multibody systems.

2
00:00:06.030 --> 00:00:10.730
Kamino targets the massively parallel simulation of highly coupled mechanical systems

3
00:00:10.730 --> 00:00:13.430
with a focus on generality and accuracy.

4
00:00:14.050 --> 00:00:17.470
Joints, limits, and contacts are treated as hard constraints

5
00:00:17.470 --> 00:00:23.190
and resolved by a proximal ADMM solver without softening any of the underlying physics.

6
00:00:23.730 --> 00:00:28.050
The resulting simulator robustly handles complex robots with minimal parameter tuning.

7
00:00:28.610 --> 00:00:31.350
Kamino natively supports arbitrary joint topologies,

8
00:00:31.910 --> 00:00:36.450
which allows robot designs to take advantage of closed-loop mechanisms with no special modelling.

9
00:00:37.330 --> 00:00:41.250
The shoulder of this Olaf robot makes use of a parallel mechanism

10
00:00:41.250 --> 00:00:43.590
to build a function with two degrees of freedom.

11
00:00:47.520 --> 00:00:50.060
Kamino is built for many-world parallelisation,

12
00:00:50.800 --> 00:00:54.680
allowing it to run thousands of simulations in parallel on a single GPU.

13
00:00:55.920 --> 00:00:59.960
With this, it can serve as the basis for large-scale reinforcement learning methods

14
00:00:59.960 --> 00:01:03.720
that enable characters to walk and perform through training and simulation.

15
00:01:04.660 --> 00:01:07.560
Policies trained with Kamino transfer well to the real robot,

16
00:01:07.940 --> 00:01:10.580
where they enable robust walking and expressive motions.

17
00:01:12.200 --> 00:01:16.120
Kamino's focus on generality allows it to robustly simulate models

18
00:01:16.120 --> 00:01:18.580
with arbitrary topology with minimal tuning.

19
00:01:19.300 --> 00:01:20.920
For the following simulation examples,

20
00:01:21.300 --> 00:01:25.220
we also compare Kamino to other solvers from the Newton simulation framework.

21
00:01:25.220 --> 00:01:30.420
DR-Legs is a bipedal robot exhibiting six kinematic loops.

22
00:01:31.860 --> 00:01:33.200
In this simulation scenario,

23
00:01:33.680 --> 00:01:37.260
a predefined animation is tracked using a joint-space PD controller.

24
00:01:38.020 --> 00:01:41.080
Kamino simulates this scenario without major parameter tuning,

25
00:01:41.620 --> 00:01:44.800
while other solvers can struggle to find good simulation parameters.

26
00:01:44.800 --> 00:01:48.980
Minimal coordinate solvers, like MJ-WARP,

27
00:01:49.300 --> 00:01:51.820
rely on a tree topology with loop closure constraints.

28
00:01:52.280 --> 00:01:56.600
The specific choice of topology can have a significant influence on the simulation result.

29
00:01:57.880 --> 00:02:02.240
XPBD needs to use a small time step at half the animation speed

30
00:02:02.240 --> 00:02:04.040
to simulate a stable gate.

31
00:02:05.340 --> 00:02:08.680
The Ironman model is a complex audio-animatronics figure

32
00:02:08.680 --> 00:02:12.240
with 15 kinematic loops and large mass ratios.

33
00:02:12.240 --> 00:02:17.890
Kamino succeeds in simulating this figure with minimal tuning.

34
00:02:25.570 --> 00:02:28.370
MJ-WARP needs tuning of its loop closure parameters

35
00:02:28.370 --> 00:02:31.890
and a small time step to avoid excessive constraint violations.

36
00:02:36.590 --> 00:02:40.550
XPBD requires a large number of iterations and a small time step

37
00:02:40.550 --> 00:02:43.050
to avoid an overly soft actuator behavior.

38
00:02:46.790 --> 00:02:50.110
The Herbermann sphere is a model with an extreme number of kinematic loops.

39
00:02:50.950 --> 00:02:53.670
In this simulation, it spins in zero gravity,

40
00:02:54.290 --> 00:02:56.490
expanding and contracting due to its momentum.

41
00:02:56.490 --> 00:03:01.030
All tested solvers handle this simulation well at a moderate angular velocity,

42
00:03:01.670 --> 00:03:04.990
but for higher velocities, MJ-WARP needs parameter tuning

43
00:03:04.990 --> 00:03:08.030
and smaller time steps to successfully simulate this scenario.

44
00:03:09.670 --> 00:03:13.990
In this example, a two-finger arm is stacking three cubes on top of each other.

45
00:03:14.370 --> 00:03:16.330
Kamino simulates this scenario smoothly,

46
00:03:16.850 --> 00:03:19.370
showing that it can provide the necessary contact stability

47
00:03:19.370 --> 00:03:21.990
to enable the simulation of manipulation tasks.

48
00:03:21.990 --> 00:03:27.080
As shown on the OLAF example,

49
00:03:27.580 --> 00:03:29.740
Kamino can be used as the simulation building block

50
00:03:29.740 --> 00:03:31.580
to train reinforcement learning policies.

51
00:03:32.580 --> 00:03:34.560
For BDX, a biped robot,

52
00:03:34.980 --> 00:03:38.280
policies trained in Kamino show stable and expressive walking motions,

53
00:03:38.780 --> 00:03:40.960
both in simulation and on the real robot.

54
00:03:43.520 --> 00:04:02.610
For DR legs, a learned policy can make the complex model walk robustly.

55
00:04:02.610 --> 00:04:14.370
With Kamino's ability to simulate heterogeneous worlds with different robot models,

56
00:04:14.570 --> 00:04:18.570
we can also conveniently train policies that support different variants of a model.

57
00:04:18.790 --> 00:04:23.090
In this example, a single policy learns to track velocity commands

58
00:04:23.090 --> 00:04:26.250
for three-, four-, and five-legged variants of the ANT model.

59
00:04:26.250 --> 00:04:30.790
Finally, we run simulations for four elementary examples

60
00:04:30.790 --> 00:04:33.610
to validate how well Kamino and other simulators

61
00:04:33.610 --> 00:04:35.790
solve the underlying physical principles.

62
00:04:36.870 --> 00:04:38.110
In this friction example,

63
00:04:38.530 --> 00:04:42.930
a horizontal force pushes a box past its stick-slip threshold.

64
00:04:46.330 --> 00:04:48.070
Kamino matches the reference trajectory,

65
00:04:48.590 --> 00:04:50.950
while XPBD starts sliding too early.

66
00:04:53.240 --> 00:04:55.100
The tuning necessary for MJ-Warp

67
00:04:55.100 --> 00:04:57.240
can lead to the box sticking for too long

68
00:04:57.240 --> 00:04:58.780
or sinking into the ground.

69
00:05:01.260 --> 00:05:02.600
This bouncing ball example

70
00:05:02.600 --> 00:05:05.500
shows the restitution behavior of the different simulators.

71
00:05:05.500 --> 00:05:10.180
Kamino and XPBD both match the expected bouncing behavior.

72
00:05:11.140 --> 00:05:13.260
While MJ-Warp has no native restitution,

73
00:05:13.780 --> 00:05:16.320
the behavior can be emulated with a tuned spring damper

74
00:05:16.320 --> 00:05:18.980
at the expense of significant ground penetration.

75
00:05:19.860 --> 00:05:22.380
This example of a box being dropped onto another box

76
00:05:22.380 --> 00:05:26.120
tests how a simulator behaves for different mass ratios of the boxes.

77
00:05:27.620 --> 00:05:30.480
XPBD produces different results for different ratios,

78
00:05:30.760 --> 00:05:34.020
which are also highly dependent on the number of solve reiterations.

79
00:05:34.020 --> 00:05:43.900
MJ-Warp leads to significant penetrations in the simulation,

80
00:05:44.540 --> 00:05:46.180
depending on the specific mass ratio.

81
00:05:48.330 --> 00:05:51.170
Kamino produces the correct result for all mass ratios.

82
00:05:55.140 --> 00:05:57.160
This example of a passive four-bar linkage

83
00:05:57.160 --> 00:06:00.720
tests energy conservation in the presence of a kinematic loop.

84
00:06:02.600 --> 00:06:05.180
XPBD satisfies the constraints most tightly,

85
00:06:05.560 --> 00:06:07.020
but dissipates the most energy.

86
00:06:09.500 --> 00:06:12.680
MJ-Warp may inject energy through its loop closure constraints,

87
00:06:12.680 --> 00:06:14.100
depending on the settings.

88
00:06:30.330 --> 00:06:32.570
Kamino dissipates energy only mildly,

89
00:06:33.090 --> 00:06:34.710
and a single stabilization weight

90
00:06:34.710 --> 00:06:37.310
controls the dissipation rate and constraint accuracy.
