micromouse algorithm.
jonduncan
Posts: 40
I have a boe bot with BS2, I have thinking about upgrading. I think I will to a javelin, and I assume I can use the BOE board???? But untill I get the javelin I might try and see if i can do it with BS2, but BS2 has a memory shortage I might use external memory or something. I posted another topic saying I needed more memory. But I thought about it and maybe I don't. In a micromouse maze there are 256 locations, and we know there are walls all around the outside, but we don't know where the walls are on the inside. and the robot is trying to get to the center. For more information google micromouse
I would need 256bits for vertical walls and 256 bits for horizontal walls. I thought i might need 256 bytes·for a map weight.But I was thinking and the robot only needs to know the weights of·the locations of his nieghbors. and that is only·4 bytes. but now the problem is how·do I calculate the weights of it's neighbors? sorry I probably should give more information about the map but I see some people here already know some about micromouse. I have disigned a flood fill simulation·of a micromouse robot in c. Any ideas?
maybe I will just get javelin, converting c to java would be a whole lot easier and I would have plenty of memory.·
I would need 256bits for vertical walls and 256 bits for horizontal walls. I thought i might need 256 bytes·for a map weight.But I was thinking and the robot only needs to know the weights of·the locations of his nieghbors. and that is only·4 bytes. but now the problem is how·do I calculate the weights of it's neighbors? sorry I probably should give more information about the map but I see some people here already know some about micromouse. I have disigned a flood fill simulation·of a micromouse robot in c. Any ideas?
maybe I will just get javelin, converting c to java would be a whole lot easier and I would have plenty of memory.·
Comments
One issue you may run into is that the Javelin supports debugging on-chip, so you can't use the programming serial port as a 'real' serial port -- there's lots of debug information that shows up on that port. This may not be a problem for you, but this is the reason the Javelin board has a second serial port.
The Javelin also takes more power (current) than a BS2, so it would be good to use a 7.5 volt DC adapter with the BOE.
First bit: Left wall
Second bit: South wall
Third bit: North wall
Fourth bit: Right wall
Then a 0 or 1 would represetn wall or no-wall respectively.
Additionally, you might need an extra 2 bits to keep track of orientation:
00 North
01 South
10 East
11 West
Just a thought, hope it helps.
-Cisco