facebookresearch / theseus

A library for differentiable nonlinear optimization
MIT License
1.74k stars 124 forks source link

Range Measurement #592

Closed codeaddict00 closed 1 year ago

codeaddict00 commented 1 year ago

🚀 Feature

A range measurement model between a Pose and a Point. Similar to what exists in GTSAM: https://github.com/borglab/gtsam/blob/develop/gtsam/sam/RangeFactor.h It would be good to have this along with the between factor.

Motivation

Makes Range-based SLAM and Proximity-based loop closing possible, and many more applications.

Alternatives

If you can't implement it. Could you give as much context and pointers as possible to help with the developpement of a Range factor in Theseus.

Thanks in advance for your time!

luisenp commented 1 year ago

Hi @codeaddict00. Sorry for the delay in getting back to you.

This should be relatively easy to implement in 2D. The following functions should be useful:

For 3D the process is similar, but we don't have an implementation for SE3.xyz(), so we would need to add that first.

codeaddict00 commented 1 year ago

Awesome thanks for your support and pointers! I will try this soon!