How to do vtol transition in offboard mode with ros2

Hello I need to use vtol transition in my offboard script but I dont know how to do a vtol transition in offboard script for ros2. I read about a discussion about it but it was old and for mavros. They suggested to write a ros service. Is there an easy way? Thank you…