ros2-realtime-demo / pendulum

ROS, ROS2, real-time, control, pendulum
Apache License 2.0
131 stars 38 forks source link

Pendulum_Demo Standard Deviation Wrong #91

Open st166247 opened 2 years ago

st166247 commented 2 years ago

Describe the bug Sometimes the standard deviation printed out by the pendulum_demo is wrong. When the Min(13459 ns), Max(83599 ns) and Mean(24672.386000 ns) values are like in the brackets, how can the standard deviation be 135818791.307981? It just happens sometimes, sometimes the value is as expected around 1000.0.

To Reproduce Run the pendulum demo multiple times with all the necessary priorities: ubuntu@ubuntu-rt-1:~$ pendulum_demo -i 1000

Expected behavior That the standard deviation matches the other values.

Screenshots ubuntu@ubuntu-rt-1:~$ pendulum_demo -i 1000 Initial major pagefaults: 0 Initial minor pagefaults: 2124190 No results filename given, not writing results rttest statistics:

Desktop (please complete the following information):