Skip to content

validation_pendulum

fred_h edited this page Oct 6, 2019 · 5 revisions

intro

The idea is to validate the angle logging using a pendulum and overlaying the animation from the logger and the real video.

Protocol

The sensor is attach to a pendulum. Then we recontruct the rotation using the "pitch" mesurement of the device. and overlay the reconstruction with the reality.

Sometime the bar disapear and the data are 'Nan', it is due to some drop-out of th SD card.

First attempts 19/09/2019:

Hypothese:

  • Pendulum 1m is simulation.
  • Reconstruct the pendulum from an angle assuming it is a pendulum.

Logger parameters:

  • SDLOG_PROFILE = 19 (default + estimator replay+ high rate )

The data logger at 250hz are reample using Pandas resample: with interpolate(method='linear').

  • resample at 25 Hz
  • interpolate(method='linear')

I use kdenlive for the overlay

Results:

Comments

  • Camera not exactly normal to the pendulum axis.
  • Resampling not working well
  • Missing the pendulum attachement on the video.

Second attempts 25/09/2019:

Based on the data and video than the first one.

code:

  • resample(time_gap).last() , last instead of interpolate

result: Better sync of the two, we can observe jitter around the perfect point. We can also detect some roll movement , especially at the start.

Note by displaying the points, I noticed that some part are missing in the original log ( this why interpolate was not working)

Third attempts 29/09/2019:

With a new pendulum, better quality .

Comments

  • SDLOG_PROFILE= 19
  • log at 250 hz , downsample at 25Hz

Results:

pendulum_validation

** The Pitch Angle mesurement looks good enough to continue**

Ressources:

To-Do:

  • understand the missing point
  • trying with lower log rate, or other log mode.

Clone this wiki locally