History | View | Annotate | Download (1.3 KB)
works with 20 robots! but its incredibly slow and destroys computersalso fixed a bug in the robot creation code (it didn't init robots array to -1 after a resize)
Threading issues worked out better... Ready to add motion.
Refactored simulator, set some stuff up to work with multiple robots.
moved stuff from robot_test into libsim.clibsim now contains the timer (pause/resume) stuff
Also commented andrew's code because it broke the build
Function to free memory added, not sure how to test if its working.
Fixed initialization of simulators struct
Added shared memory setup code to the create_robot function. Need to write the cleanup code still. Exec call is failing but wasn't succeeding before code change either.
Added signal handling code to core simulator
added a robot_test directory which contiains code to run the timer and deal with the robot side signaling. To compile it you need to run gcc robot_test/robot.c -o robot_test/robot. This whole file is temporary. It is just proof of concept until it gets added to the simulator library
Ooops, forgot to commit main method.