I'll try to make this short ...
Most travel trailers
(caravans for those outside of NA) and motor homes have a "house" battery. Because modern automotive systems have charging logarithms built into the powertrain control module that assume the stock battery capacity taht keep the charging voltage low (13.5V) and there is measurable voltage drop back to the house battery, they never get charged properly.
Most of these RVs now come with a AC-DC power converter and a "smart" charger. Many RVs also now come with built in AC sine wave inverters. Anyone how has done anything with an inverter knows that they drop out somewhere between 10-11V so trying to run it off of the vehicles charging system is likely going to be a problem.
So hear is my idea. Inside the RV, take the 12V line from the vehicle and run it through a DC-DC boost converter
(Cheap on eBay. They nee a housing and cooling !) Set the output to about 14V. Now, insert a DPDT relay between the house battery (input) and the inverter (output) and the output of the DC-DC converter as the second input. The relay control is voltage from the vehicle.
Finally, through another switch/relay
(plug and receptacle ?) wire the output of the inverter and the shore power as either-or inputs to AC-DC converter charger. Lots of details on sizing
(typical RV AC-DC converter/charger puts out about 35A max so an 800-1000W inverter should power it), losses, etc. but ...
AM I CRAZY (In a previous life over 15 years ago, we could never solve the problem. The house battery would never get fully charged by the end of a day of driving.)