[ros-diffs] [hpoussin] 26180: Cleanup code for easier porting to other architectures