In Robot::decodeBrain(), line 381 of Robot.cpp (https://github.com/jauerb/robogen/blob/master/src/Robot.cpp#L381), the index of the hidden neuron is added to the hiddenNeuronIds map. However, the counter for output neurons is used rather than the counter for hidden neurons, causing any hidden neuron position to be calculated incorrectly when connection weights are assigned later on.
My apologies for not having the time to create a pull request at this point, but I believe the line should be changed to:
In
Robot::decodeBrain()
, line 381 ofRobot.cpp
(https://github.com/jauerb/robogen/blob/master/src/Robot.cpp#L381), the index of the hidden neuron is added to thehiddenNeuronIds
map. However, the counter for output neurons is used rather than the counter for hidden neurons, causing any hidden neuron position to be calculated incorrectly when connection weights are assigned later on.My apologies for not having the time to create a pull request at this point, but I believe the line should be changed to: