The default coordinate frame in the SDK is COORDINATE_SYSTEM_IMAGE, which corresponds to a right-handed-y-down coordinate frame. As ZED_Sensor_Viewer displays the coordinates in IMAGE, this corresponds with the difference in signs that you are experiencing.