PX4 Offboard Control of Fixed Wing ROS/Gazebo SITL

Hi, I need to know how can I send the attitude commands to PX4 through MAVROS? Currently, I have been able to send the position setpoint commands. However, vehicle seems to be denying. I am using MAVROS to publish setpoint commands.

BR

Position setpoints work for offboard mode as I know. I tried to implement it through Mavros in C++ and it worked without an error. There might be a problem in your code, if you can share the related part, I can try to help.