Camera model.

3 replies [Last post]
cannonh
Title: NooBot
Joined: 07/09/2012
Posts:
BotPoints: 19
User offline. Last seen 9 years 11 weeks ago.

Does anyone know what model of camera is included in the kit? I'm trying to figure out how much I need to turn in order to align my robot based on camera data.

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

The camera's actual specs aren't too important, since the CBC crazy downsamples the signal from the camera. This is due to a lot of reasons, but the main one is that the camera's video driver is finicky and cannot handle larger resolutions. The blob tracking resolution is 160 pixels wide by 120 pixels high. Therefore, If the blob's x position is 80, the camera is centered on the blob. It's pretty easy to write code that turns the robot until this condition is met (within a small threshold, of course.) I can provide some sample code if that would help.

Did that answer your question?

Thanks.

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.

cannonh
Title: NooBot
Joined: 07/09/2012
Posts:
BotPoints: 19
User offline. Last seen 9 years 11 weeks ago.

Yes, I know the resolution of the camera (also we have the camera oriented so x is height) I was looking for the model so I could find out the field of view. This is so I could determine the angle I would need to turn for each pixel the camera is off so that I can align to the blocks.

Beta
Beta's picture
Title: The Magnificent
Joined: 02/24/2012
Posts:
BotPoints: 266
User offline. Last seen 8 years 32 weeks ago.

I would just recommend experimentally determining the FOV. It is unlikely to be less accurate than the real thing at such a low resolution. I looked around the office today for a datasheet, but didn't find one. There are also no references to the model number in the CBC's source code :( Sorry.

Braden McDorman

Developer of the KIPR Link, KISS IDE, KIPR's 2D Simulator, and CBCJVM.

Reach me at bmcdorman(cat)kipr(dog)org where (cat)=@ and (dog)=. if you need assistance of any kind.