Here's and anecdotal tale from a boat hatch lift I once had. Many boats, especially off-shore/"go fast" boats, have linear actuators installed on the engine hatch covers. A visit to a marine manufacturer website might provide some insight for transfer of technology to a RV bed (Donzi, Wellcraft, Fountain, Eliminator, etc.).
I had an actuator on a Sea Ray Pachanga sport boat. The upholstered fiberglass hatch was around 5' x7' and probably weighed quite a bit more than an queen mattress on plywood. Much like many RV beds, the structure surrounding the engine hatch could be viewed as a box. One end (say the head of your bed) had a piano hinge attaching to the hatch to a vertical bulkhead. The actuator was mounted on centerline. At the "foot end," bulky portion of the actuator (motor/drive, cylinder end) attached high on the bulkhead. The piston end fastened about half way out on the hatch's overall length (center of the bed). My actuator rested nearly parallel with the hatch, when the hatch was closed. Although I never could see inside, I believe the actuator lay perhaps five degrees below parallel, lower on forward bulkhead end. I'm no engineer, but I believe that would be considered a significant moment-arm, and by nature contained significant piston throw distance. It probably opened over 50 degrees. Both ends were secured with clevis pins and the power supply had a cannon plug; quick removal was easily accomplished.
The advantage of such a mounting orientation is minimal encroachment into your storage space, compared to angular or near-vertical resting positions. On centerline, the assembly would occupy just the top portion of your bed base, only the length of it's closed dimension (side mounting might be possible, but I think there would be a lot of torsional flexing of the mattress base plate). The main concern would be sufficient structural integrity at the attachment points. Somebody smarter than me could calculate the loads involved. If I were installing in my 5th wheel, I would build plywood plates at both attachment points, to spread the load. It might be necessary to internally brace the foot end of the bed box. In my case, the batteries are perhaps a 4 foot electrical run. I could direct-wire with a switch (sort of obscured) in the bed foot bulkhead, or employ solenoid switching and place the control just about anywhere. If the piston throw exceeds any clearances or desired opening distance, then some sort of automatic limit switch would be wise.
As a side note, the actuator in my boat was an identical brand and model line as that on an old-school, ground mounted satellite TV array I owned back in the day (remember all those free signals?). I kept the satellite actuator for spare boat parts (motor mainly), but the boat actuator never faltered in 14 years. The boat actuator was longer, but I'd place money on being able to adapt a satellite positioner for an RV bed. Could be cheap or free with a little hunting for an idle satellite system.
Hope that helps. It didn't help me. Now I have another RV mod running through my mind!