Hi,
I had an accident in London on Thursday and have only just had an opportunity to upload my code... if it is at all possible to update my code, please could you do so. I'm heading back to the hospital now, so I won't have chance to check back before tonight; I see I've been drawn to go in the first race!
Thank you in hope with fingers crossed and a frightful pain in the head.
Geoff — Car 16...
We have a really busy day today, but given the circumstances I will try and get the SD card re-written for you (no promises).
All the best and we hope you get better soon :)
Well, what a day: what a few days. I was very rushed when I typed this morning, if you have managed to rewrite the SD, then thank you so very much, if not: well no harm done... but my car will probably stop early as it was set to just do 5 laps in the trial. :)
I had gone down to London after winning a couple of tickets to the Spirit of Christmas exhibition at Olympia: Granddaughter number one had sorted out a nice hotel for us and we were going out for a meal in the evening... we were crossing the road just outside the hotel when I passed out, for reasons unknown, and the pavement smashed into me (with great amount of malice aforethought!)... well we had safety officers and ambulances and all sorts of things going on around me, and I left two nice puddles of blood in Knightsbridge. I got parcelled up and sent to bed for rest. The next day I was woosy and had to go to the Earls Court walk-in centre to get bandaged and bloods tested again... thankfully blood pressure was back to normal. Eventually made it to the exhibition looking like a cricketer with the white sun protection on nose... except mine was a bandage. Bought a new teddy bear from Merrythought (from whom I had won the tickets in the first place). Wandered around for a while. Started to feel ill again... and returned in the pouring rain to the hotel. It seemed that everyone from the bell boy to the manager knew about my little accident and they were all concerned... very much the opposite of the image that is often presented of London folk. Finally came home via the granddaughters, who booked 'Uber's to ferry us from place to place—that was a new experience, "Just look for registration..." and there it was! Then on the way up made appointments at the doctors and the hospital.
Good news is... the worst physical thing that I'm suffering from seems to be whiplash.
Bad news is... it's triggering my migraines like there's no tomorrow!!
Now I'll stop bothering you and keep my fingers crossed that I have a good race.... and not spend the whole time upside down on the first corner like on the practice run. :D
Geoff
Good news, we did manage to squeeze the update and it seemed to run well :)
Logs will be uploaded soon.
Indeed, I could tell that the update had been applied: some of those algorithms clearly worked better than others. The Simulator is wonderful but doesn't give any indication as to what might happen if you hit the wall. Starting in lane 1 is a somewhat different twist for one particular algorithm, so that was a lot of fun. :)
Thank you so very much for your assistance... I would rather have been able to upload on Friday as originally planned: I had everything with me to demonstrate to granddaughter number one... but the computer never got chance to be unpacked.
Looking forward to seeing tomorrows heats.
I nearly didn't get to send my update... I think Thursdays have got it in for me.
I'm now typing very slowly with my left hand alone! Today... or rather, yesterday I had another little accident. I was going to the dentist, and my wife, Carole, dropped me off at the end of the road before going to look for a place to park. Sadly I didn't notice that my coat was caught in the door!
I had, what I am calling, a Woodbine moment: Carole set off... and I had a drag. Well, ambwlens and hospital followed and after four hours or so I got an x-ray. Broken right humorous. They can do nothing more than give me a sling for it though... and it's murder.
Still... it could have been a lot worse: and my wonderful Tilley hat protected my head remarkably well!
I'm sure glad that the Yetiborgs are driving themselves... I think I'm be dead by now. LOL
All the best, good luck for the second round everyone.
Geoff #16
PS: has my lid arrived with you yet, it only dawned on me when I rewatched the last heats that you had given me a blue arrow... as nice as it was, it wasn't the one I did. ;)
Ouch, broken bones are not much fun. We are all hoping you get better soon!
It does illustrate the best part of robot racing though, injuries are much easier to fix.
We certainly had more than a few lost wheels when we were developing the code :)
We have not received your YetiLid back yet, so far only six have returned back to us.
It would be nice to know how many are stuck in the mail somewhere...
I sent my lid back on 26th October as I recall... posted at WHSmiths in Altrincham, as that's where the Alty Post Office ended up after the closed down the beautiful old building that it had been in since Adam was a lad. ;)
It went ordinary letter post, so there shouldn't have been any complications with it in parcel offices.
In the inimitable words of Pooh: bother.
Geoff.
I actually managed to break a car??
I'll have to see what the logs say, but I have a nasty feeling that it's a little something that I couldn't test in the simulator... self righting code. I didn't think it would actually do very much, but the idea was, if the car detects being upside down: run at the wall and try to flip back. Grr... less than effective it would appear.
Back to the old drawing board.
Geoff.
...my broken arm...
It obviously distracted me; and all this left hand typing is wearing out my brain.
Big sorry.
Geoff
"Curiouser and curiouser," said Alice.
It does not appear that I was under programatic control when my car began it's headbanging routine. Would it be possible to just do a test run with my code unaltered to see how it behaves at that first corner please?
The log shows correctly that it set off, but abruptly cuts after only one second of race time, this is a combination of both system and user log... and is all there is:
Had the car been under programatic control, the would have at least been a load of "LapCount(); GetDistance()" calls from the main drive code.
Additionally only a single debug image was stored, and that was of the starting line. (Attached)
All things considered I think this adds up to a hardware fault—the standard programmers excuse. :)
...and if that is the case doing a quick test should quickly show whether or not it is so... then I throw myself at the mercy of the judges to be included in a later heat.
Note, I do not wish to change any code.
Kind regards,
Geoff
It looks like something in your code is trying to create a graphical output...
We tried running your code on the bench.
After flashing the camera with the start lights the code starts fine, but gets stuck with an error:
(Processed:591): Gtk-WARNING **: cannot open display:
Running the same code via SSH:
Enabling the X11 forwarding and re-running the script it looks like the processing display is running.
Basically it appears to be behaving as though
ImageProcessor.showProcessing
is set toTrue
.This will fail as X11 is not running on the Raspberry Pi.
Looking further into your code the culprit appears to be:
script sees and tries to display, causing the error.
ImageProcessor.writeImages = True
Put simply this starts building the output display, which the
I think we must have only tried that line when already looking at the display :P
This can be fixed in
Formula.py
by swapping this line:for this one:
Thank you so very much... for trying that out, you went far further than I ever hoped that you might.
Yes indeedy I was trying to get the final processing images as it went along: mostly in an effort to detect when false laps were being counted and to see if I could do anything about it, as well as to try to get a handle on the triggering of the overtake override when the wall is approached too obliquely.
I'm not quite sure how that error caused it to start running constantly into the wall, but there you go. :)
I had not realised the ramifications: I use an ssh tunnel with X-forwarding anyway to allow me to simply open multiple terminals, that means that in my tests it didn't occur to me that the windows appearing were from the PiZero and not the Simulator... Doh!
I think a little judicial editing of
Formula.py
is in order before the next round, to make sure that nothing else like that is going to bite.Thanks again... I wonder: how many in the office muttered something along the lines of 'typical programmer blaming the hardware'? :)
Kind regards,
Geoff
Add new comment