I find the pose information of a drone is different is the mavlink message (ATTITUDE) and mavros/local/pose.
I was flying an ArduCopter in the guided mode. It is required to call the takeoff service before we can send position setpoints to setpoint_position/local. Lets say the target position is 1, 0, takeoff height, then I find the drone rotate 90 degrees in yaw before it performs translation. So, I guess there maybe be something wrong in frame transformation.
In order to verify that, I run ArduCopter in simulation, and I find even when I just begin the simulation, the yaw angle of the drone is 90 degrees in local_position/pose,
while at the same time, the mavlink message ATTITUDE shows 0 in yaw angle
After making it takeoff for 5m, I use mavproxy to make the drone move 10m forwards, which is shown as 10m movement in y direction from mavros/local/pose.
Therefore, I believe the frame translation is wrong.
MAVROS version and platform
Mavros: 1.17
ROS: Noetic
Ubuntu: 20.04
Autopilot type and version
[X] ArduPilot
[ ] PX4
Version: 4.4.0
Node logs
copy output of mavros_node. Usually console where you run roslaunch
I find the pose information of a drone is different is the mavlink message (ATTITUDE) and mavros/local/pose.
I was flying an ArduCopter in the guided mode. It is required to call the takeoff service before we can send position setpoints to
setpoint_position/local
. Lets say the target position is 1, 0, takeoff height, then I find the drone rotate 90 degrees in yaw before it performs translation. So, I guess there maybe be something wrong in frame transformation.In order to verify that, I run ArduCopter in simulation, and I find even when I just begin the simulation, the yaw angle of the drone is 90 degrees in local_position/pose,![Screenshot from 2024-04-15 20-53-15](https://github.com/mavlink/mavros/assets/21055404/afe77d95-5756-4fa5-a2af-dbdec15b45e6)
while at the same time, the mavlink message ATTITUDE shows 0 in yaw angle
After making it takeoff for 5m, I use mavproxy to make the drone move 10m forwards, which is shown as 10m movement in y direction from mavros/local/pose.![Screenshot from 2024-04-15 20-55-54](https://github.com/mavlink/mavros/assets/21055404/fa3f72b3-05cf-47eb-9ecd-0ecc5ddfb370)
Therefore, I believe the frame translation is wrong.
MAVROS version and platform
Mavros: 1.17 ROS: Noetic Ubuntu: 20.04
Autopilot type and version
[X] ArduPilot [ ] PX4
Version: 4.4.0
Node logs
Diagnostics
Check ID