Hohen said:
I think I get it. The speed of ##P_{bottom}## relative to the ground is 0.
The speed of ##P_{center}## relative to the ##P_{bottom}## is ##R⋅\omega##
##P_{top}##'s speed relative to the ##P_{center}## is ##R⋅\omega##
So ##P_{center}##'s speed relative to the ground is ##2⋅R⋅\omega##
You got it!
Another attempt to generalize the coordinates again:
Hohen said:
##KE_2=KE_T+KE_R=\frac{1}{2}⋅m_2 ⋅\dot x_2^2+\frac{1}{2}⋅I_2⋅\omega_2^2=##
##=\frac{1}{2}⋅m_2⋅\dot x_2^2+\frac{1}{2}⋅(m_2⋅R^2) ⋅(\frac{\dot x_2}{R})^2##
This is correct so far.
Hohen said:
R here is a so called arbitrary constant?
No. ##R## is the radius of the cylinders as shown in your drawing. It is a given constant, just as the masses are given.
Hohen said:
And now it's safe to put ##\dot x_2 = \frac{\dot x}{2}## into the equation?
If this isn't correct…
You need to have a clear mental picture of what distance is what and what affects what. Let's put the origin to where the left end of the plank is when he spring is relaxed. Then certainly ##\frac{1}{2}kx_1^2## is the potential energy term in the Lagrangian. Could ##x_1## denote the position of the plank? Sure, if you specify that it is defined as the distance of the left tip of the plank from the origin. Because the plank is a rigid body, once you know the position of its left tip, you know the position of any other point on it that is always at a constant distance away from it. Now for the cylinder ##m_2##. When the spring is relaxed, (##x_1##=0) its center is at distance ##x_2## from the origin. That distance can be anything and you cannot write down a relation between ##x_1## and ##x_2##,
but you don't have to because ##x_2## appears nowhere in the Lagrangian. All you need is a relation between ##\dot x_1## and ##\dot x_2## which you already have. Similar considerations apply for the other cylinder.
Of course to specify the solution completely you need the initial conditions at ##t=0##, namely
##x_1(0),~\dot x_1(0),~x_2(0)## and ##x_3(0)##. The rest of the initial conditions, ##\dot x_2(0),~\dot \theta_2(0),~\dot x_3(0),~\dot \theta_3(0)## can be obtained from the constraints.