What are the difficulties in installing an in-floor drain in a laundry room?
You need proper slope on the pipe&mdash;depending on the location of the drain and the location of the stack this may be difficult.  At least with a crawlspace assuming sewer level is lower than the floor (ceiling assembly of the crawlspace) you should be able to make a giant mess of pipes that just hang and not have to touch framing.  A builder will probably have to pull the plumber in to make the change.  Even simple changes are going to be relatively expensive.  Probably not as much as if you hired a licensed plumber to do it later but I wouldn't expect it to be much less.

The floor where the drain is located also needs to be sloped appropriately for the drain to have the best effect.  Unless the floor drain hooks up to a pipe before a trap, it will need its own trap.  This trap will be subject to drying out since it won't be in regular use and you'll have to periodically dump water down to prevent sewer gases from coming up unless you have a self priming water valve that occasionally drips water into it.

There is also a critical arm length for the pipe from the trap exit to the vent to prevent siphoning but presumably you'll be in range since the laundry machine also needs to be within this range for its trap.

I went with a flood safe solenoid and a water sensor that turns off the water to my water heater if the sensor detects water on the floor.  These exist for laundry machines as well.  You can even get a setup that texts that water has been detected and the water to the machine has been shut off.  This might be cheaper than the floor drain route&mdash;though in principle I like passive insurance.  I also go with a washer pan under the washing machine; you could put the sensor in the pan.