Fixes #628, crash in joint state controller when given start time less than the publish interval.
Reproduction steps:
Build joint state controller from source (the published package does not have the bug yet)
Set publish rate less than 100 Hz (i.e. 50 Hz should give you 0.02 seconds publish interval)
Start the joint state controller (arbitrary start time will be around 0.01 seconds)
Note that if you set the publish rate to 100Hz that would give you 0.01 seconds publish interval, which is not less than start time, so the bug would not be exposed.
Testing
I haven't updated unit tests for joint state controller yet, but the functionality was tested and appears to work:
The issue was fixed
The problem the bug was trying to solve remains fixed: joint state controller will update immediately on the first update as the author apparently desired, and then wait the publish interval on subsequent updates
Fixes #628, crash in joint state controller when given start time less than the publish interval.
Reproduction steps:
Testing
I haven't updated unit tests for joint state controller yet, but the functionality was tested and appears to work: