Sensors are usually enabled with wb_XXX_enable(tag, sampling_period)
,
and the sensor values can be retrieved with wb_XXX_get_values(tag)
.
How do we know if the values retrieved with wb_XXX_get_values(tag)
are new values?
A naive approach would be saving the values and comparing it for every loop, but it won't work if the sensor values didn't change.