I am learning C++ by making a small robot simulation and I\'m having trouble with static member functions inside classes.
I have my Environment class defined like this:<
A static method cannot access instance variables. If you want to access instance variable remove static from the method. If those values can be the same through all robot instances then make them static variables and the method can remain static.