Robot Monitor

// Copyright (C) 2026 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
pragma Singleton

import QtQuick
import QtQuick3D
import QtRos2.GeometryMsgs as Geom

QtObject {
    function toVector3d(v: Geom.vector3): vector3d {
        return Qt.vector3d(v.x, v.y, v.z)
    }

    // Orientation: project onto XY (ignore roll/pitch, keep yaw)
    function toQuaternion(r: Geom.quaternion): quaternion {
        return Qt.quaternion(r.w, r.x, r.y, r.z)
    }
}