jrl-umi3218 / mc_rtc

mc_rtc is an interface for simulated and real robotic systems suitable for real-time control
BSD 2-Clause "Simplified" License
122 stars 36 forks source link

[bugfix] Fix out-of-bound access when loading canonical robots #379

Closed arntanguy closed 1 year ago

arntanguy commented 1 year ago

Due to an erroneous stopping condition in the loop comparing robot devices between canonical and non-canonical robots, we had an infinite loop that would result in out-of-bound access of the devices arrays.

This PR fixes the bug and adds the corresponding unit test.

Will merge when CI passes.

Thanks @Dwaaap for debugging the issue :+1: