Proposal: Add msgs to support points with covariances
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- robotics
Research direction
Start by reviewing the existing geometry_msgs Point, Point32, PoseWithCovariance, and stamped message definitions to compare their naming and covariance representations. Evaluate the proposed PointWithCovariance, Point32WithCovariance, stamped variants, and Point32Stamped against those patterns and the stated 3×3 uncertainty use case. Done means an agreed message design and the complete set of interface definitions.
Written by the indexing model from the issue text.
Description
Description
Currently, the geometry_msgs does only feature the Point and Point32 message to represent a point's position in 3D space. The suggestion would be to add additional messages to include the uncertainty of this position given by the 3D covariance.
Motivation
Many applications require the covariance/uncertainty of geometric information for further processing. E.g. if a detector extracts features/points of some sensor data, it may also give an uncertainty estimation on how good the detection is. This may be used in further processing.
While geometry_msgs already provides PoseWithCovariance for 6-DoF estimates, there is no canonical 3-DoF counterpart. ROS users can work around this by misusing PoseWithCovariance with a dummy orientation and a 6×6 covariance whose rotational block is meaningless — which is wasteful and semantically incorrect. The proposed messages mirror the existing pattern (Pose → PoseWithCovariance → PoseWithCovarianceStamped), making the addition a natural extension.
Design / Implementation Considerations
Add missing msgs:
- PointWithCovariance.msg
- Point32WithCovariance.msg
- PointWithCovarianceStamped.msg
- Point32WithCovarianceStamped.msg
- (Point32Stamped.msg - missing in existing representations, adding for completeness)
Use Cases
Lane boundary detection (own use case).
My research group is developing an algorithm that detects lane boundaries by extracting polylines from camera images and LiDAR scans. Merging multiple detections across sensors and time requires a 3×3 covariance per polyline vertex.
This is standard in modern lane detectors: LaneNet++: Uncertainty-Aware Lane Detection for Autonomous Vehicle (Springer Advances in Visual Computing) provides explicit uncertainty estimation on lane points to reduce false positives. Even classification-based detectors like Ultra-Fast-Lane-Detection-V2 (Qin et al., IEEE TPAMI 2022) produce a per-point softmax distribution whose expectation is already used as the point estimate — the variance is a near-zero-cost byproduct, but no standard ROS 2 message exists to transport it.
Additional Information
No response
- Dominant language
- C++
- Stars
- 403
- Forks
- 165
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ros2/common_interfaces
-
Charging time information in battery statePossibly taken @cmuehlbacher claimed this 69 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ros2/common_interfaces#341 ·
-
Add Polygon64?Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 30/100
ros2/common_interfaces#346 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
ros2/common_interfaces#333 · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
ros2/common_interfaces#327 · 1 comment · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
ros2/common_interfaces#319 · 2 comments · 1 reaction ·
All issues in ros2/common_interfaces
Similar issues
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
EchoTools/nevr-runtime#2912 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug-unconfirmed
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
libc++
Difficulty 1/5 Under an hour Newbie friendliness 88/100
llvm/llvm-project#246508 ·
Maintainers usually reply within 1 day