IMUSensor Data with specified frequency #4163
Replies: 2 comments 3 replies
-
Hello @DanielAtt2000, |
Beta Was this translation helpful? Give feedback.
-
I tried with 500Hz IMU in sim_time with 9.15. It works but wonder why my RTX4090 is still under used and the simulation speed is around 3/27 (will be back if I remember incorrectly) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to obtain IMU sensor data at a constant frequency of 50Hz i.e 50 data points for per second. After reading the docs and doing my best to understand them, I have reached to the conclusion that I should be using a fixed time-step for repeatability (still using the default Asynchronous mode) while varying the sensor_tick for the IMU sensor itself to achieve the 50Hz I require.
So I have set the sensor_tick to 1/50 = 0.02 and the fixed_delta_seconds to a constant 0.5.
I have created the IMU Sensor as was done in the manual_control.py example but unfortunately my understanding isn't sound since the sensor_tick does not effect the frequency of the data collection. Only when changing the fixed_delta_seconds to 0.02 does the IMU sensor be called 50 times a second. This results in a unrealistically slow simulation and high IMU sensor values (don't know the reason for this either). I have also tried enabling -no-rendering with no luck. Below I have included the IMU Class code.
Would anyone know where my understanding is flawed? I have a low-end machine but I'm not quite sure if this should have any effect.
Thank you for any help.
Daniel
Beta Was this translation helpful? Give feedback.
All reactions