RobotInterface.cpp attempt
RobotInterface is here
The idea is to create an instance of the RobotInterface class. When initialised it will open a dialog window showing live feed from the webcam – unfortunately the user has to select the right device (the webcam) from a combo box and click ‘initialise’ – tried all morning but couldnt find a way around this as the code given isnt abstracted away from the combo boxes etc…. My C++ skills arent up to seperating them i’m afraid!!!
Then we should be able to call RobotInterface.SaveImage(), which grabs an image and saves it to “camimage.bmp” in the app directory, which can then be loaded by the CImg stuff. Again, can’t find a way around this but as we are talking about pretty low level API calls hopefully it will be quick enough to do one or two grabs a second.
Not sure if the main file should really should be RobotInterface.h instead of .cpp – anyone help???
ps Tom – I have modified DXCapture.cpp and DXCapture.h so these files aren’t the same as the ones you will have been working on – just so you know!
You think you can get this workin on Tuesday when we see the bot?
A header file is basically copied into the top of the cpp file that has the #include by the compiler. The only cpp file we will have is the file that contains the main() function.
19 Nov 2006, 15:50
Matt
thanks.
Hopefully we will have a while with the bot…. so hope to get it working (however messy the solution might be!)
See you tmmrw
19 Nov 2006, 23:45
Add a comment
You are not allowed to comment on this entry as it has restricted commenting permissions.