I am not sure why your code does not work when the visualization is on or off, it depends on how you use ImGUI. If ImGUI is supposed to attach to the Qt visualization of ARGoS, turning it off will explain the behavior you see. To check whether the visualization is on or off, you can use this code: i...