In Webots: I want my little robot drive to a fully charged charger (green pointlight and cylinder) and drain its energy. While the battery loses energy it should change its color.
It works as long as I stay in the Webots Tour setup of the battery device. I can make changes of the bot and the arena. Everything works. But as soon as I introduce a second robot or just close Webots and open it again the light and shape stays green when my robot comes into contact. This happened every time over multiple different worlds. Every time I introduce the battery to a new robot Webots crashes and afterwards the charger is not working anymore. Or I close the program in the battery setup and after reopening it does not change the colors. So I don't know what my mistake is.
I use R2023a because I use Python. My Robot has 50/100/30 and the Charger nodes have 100/100/3. When I introduce a new robot or battery and change the second number it crashes. I even deinstalled and reinstalled Webots. All the same.
I safe in the red initial state and when I run than It changes to the green initial state. And not because it charged fully. Because the initial values in the nodes changes that when I reset the simulation the initial values are green again.
The Charger loses its energy but does not change the color.