I have had occasional issues getting mine to roost at dusk, as well, but as soon as I realized it was about seeing their 'beds' with their horrible vision, it's been fixed. They need far more light to maneuver than we do.
I made sure in the small coop that the side windows were open (plywood hinged over hardware cloth) so the roosts were visible against the light. They quit heading for the trees and milling about on the floor.
In the big coop, which is a converted garden shed yet to have windows installed, I installed an inexpensive fluorescent work light on a timer that comes on two hours before current dawn, and goes out half hour after dusk- this way they have the signal to go to bed from the failing light, and they still go in the coop because it's light.
A couple of times they've had the pop door blocked or the run closed (when free-ranging, they go out through the run door) and one always starts the, "quick, go to bed" cry. It's at a specific point in early dusk, and they all hear her and obey- one at a time, in order, they head in. When the door has been closed, the cry gets more and more frantic, and when I've come out to witness this, they come barreling over, like, "Mom, it's bedtime and I can't get in!!!!"
Funny little sqwee-sqwees!