Powered (automatic) rocker

The frequency should be the natural frequency of the baby pendulum. Forcing any other frequency would be not only energy inefficient but, I would assume, also not comfortable.

+1 on the spring / tension cord coupling. Rigid connection would most likely result in damage to the motor and/or coupling. You would want to provide some breathing room for the moments when you put the baby in and out or when you want to take over and switch to "manual control".