Hi!
I used a model plugin and estimated the position at the event “gazebo::event::Events::ConnectWorldUpdateBegin”. I’ve no idea if this event is still available in the current API, but there would be a similar thing instead.
Important: disable the gravity of the model. And model must not be static!