Skip to content

Resolve "(filter): add a service to damp matrices over time"

Description

A new service "sight::module::geometry::weighted_mean_matrix" takes a matrix as input and averages it each time the value is updated.

   <service uid="..." type="sight::module::geometry::weighted_mean_matrix" >
        <in key="raw" uid="..." />
        <inout key="damped" uid="..." />
        <config weight="0.25" enabled="true" />
   </service>

I took the opportunity to fix the applications which were broken because of a regression introduced by aef66f1c. All applications using sight::navigation::optics::aruco_tracker were affected. Also, the AR of tuto17 was not well synced. I changed the sync conditions to get a perfect superimposition when damping is off.

How to test it?

The feature can be tested in Tuto17. The cube position is now damped. The right panel allows you to tweak the weight and enable/disable the filter.

Related issue(s)

Closes #1233 (closed)

Edited by Flavien BRIDAULT

Merge request reports