Good read for an explanation of the problem of adaptive headlights on a two wheel vehicle. Some assumptions they make concerning roll axes are incorrect and the mechanical solution chosen way too complicated for the task at hand.
Two fundamental measurements to be made: What is the lean angle of the bike relative to the road and what is the track angle of the wheel contact patches relative the road ahead? From there you know the attitude of the bike relative to the road and its direction of travel.
One ball socket and two linear actuators provide 360 degrees of rotational freedom. Several low power laser sensors could be used for attitude measurements.
Nice thing about this is you would get head lights that maintain focused distance under braking and acceleration, and not just during cornering without any more sensors, hardware or additional software.
All this is grossly simplified of course, but very possible.