Data on the scan topic still contains inf data points even when use_inf is false. To remedy this, range_max must be set to something, and use_inf must be false. In other words, the default value of range_max does not seem to affect the infinite range (defined as range_max + 1 if use_inf is false). Instead, range_max must explicitly be given a value in order for the infinite range to be range_max + 1.