On this page

pose2D QML Value Type

Please use the full 3D pose. More...

Import Statement: import QtRos2.GeometryMsgs
Status: Deprecated since Foxy

This type is deprecated since QtRos2.GeometryMsgs Foxy. We strongly advise against using it in new code.

Properties

  • theta : double
  • x : double
  • y : double

Detailed Description

In general our recommendation is to use a full 3D representation of everything and for 2D specific applications make the appropriate projections into the plane for their calculations but optimally will preserve the 3D information during processing.

If we have parallel copies of 2D datatypes every UI and other pipeline will end up needing to have dual interfaces to plot everything. And you will end up with not being able to use 3D tools for 2D use cases even if they're completely valid, as you'd have to reimplement it with different inputs and outputs. It's not particularly hard to plot the 2D pose or compute the yaw error for the Pose message and there are already tools and libraries that can do this for you.# This expresses a position and orientation on a 2D manifold.

pose2D is a structured value type usable in QML. It maps directly to the geometry_msgs::msg::Pose2D ROS 2 message type.

Construct a pose2D in QML by assigning a JavaScript object whose keys are its component properties, or by setting those properties individually.

See also Pose2DPublisher and Pose2DSubscriber.

Property Documentation

theta : double

x : double

y : double

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.