Hi,
Hoping this is not too much of ask. I am really excited and having lots of fun with the simulator.
I was wondering if there is any sort of "call" or calculation that we can do to work out which way the Monsterborg is facing? I would like to add this to my log file so that i can visually see where it is going...
Ie. if it is facing the following directions, I would like the following values
Left = 0
Up = 90
Right = 180
Down = 270
Is this something that I can derive within "RaceCodeFunction.py" file?
Many thanks in advance,
Megawhat
The short answer is that the MonsterBorg cannot tell which direction it is facing, that would require additional sensors :)
Having said that you might be able to generate a "best guess" using calculations. If you look in
ImageProcessor.py
for theIncreaseDistance
function you can see how we attempt to approximate how far the MonsterBorg has travelled around the track.You would probably need to do something similar based on the amount of steering applied to keep a running total of angular change, but bear in mind it will tend to drift over time and it would not compensate very well for collisions.
Aaron,
Thanks for the prompt response.
I won't be able to get it ready for submission this round, but will look into the code for ImageProcessor.py and see if I can decipher and back-calculate the accumulated angle change.
Hope you have a good day!
Cheers,
Megawhat
Add new comment