Advertisement
Trainlover08

VEX_AI_SIM/robot_controller/robot_controller.cpp

Oct 29th, 2024
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // (VEX_AI_SIM/robot_controller/robot_controller.cpp)
  2.  
  3. #include "include/devices.h"
  4. #include "include/test.cpp"
  5.  
  6. int main() {
  7. cout << "program has started" << endl;
  8. string test = "testing";
  9. // SETUP
  10. Test t;
  11. NeuralNetwork actor;
  12. NeuralNetwork critic;
  13.  
  14. while (true) {
  15. // NN COMPUTE - rewards and reset included in the function
  16. sim.programSetup();
  17.  
  18. bot.trainingNetwork(actor, critic, 5000, 0.99, 0.015, 1.05, 1e-4);
  19. }
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement