TXT controller colour recognition ?

Alles rund um TX(T) und RoboPro, mit ft-Hard- und Software
Computing using original ft hard- and software
Forumsregeln
Bitte beachte die Forumsregeln!
Antworten
hvn
Beiträge: 199
Registriert: 20 Feb 2011, 11:15

TXT controller colour recognition ?

Beitrag von hvn » 27 Jul 2015, 17:06

Hi,

I've been trying to get colour recognition working in online mode without any luck. Not sure if it is my software (in ROBOPro 4.1.8) or hardware, I uploaded my software to the TXT and it seems to work. Unfortunately I can't really verify it because all checks with displays are not showing after upload and I can't get the checks to be shown on the TXT display. So my question is: am I correct to assume that camera functions only work in offline/download-mode ?

Thanks,

hvn

hvn
Beiträge: 199
Registriert: 20 Feb 2011, 11:15

Re: TXT controller colour recognition ?

Beitrag von hvn » 27 Jul 2015, 18:36

Hi elektrolutz,

I guess my problem description was too complicated. In short: using WLAN, in online-mode the colours are not detected/recognized while it appears that in download-mode the colours are detected.
What you describe (the life-picture of the Cam on the computer) I've never seen so far while I do get a great life Cam picture using my tablet with the app. So I wonder what may be wrong ? Would it matter that I run ROBOPro on Linux/wine ?

Thanks,

hvn

Benutzeravatar
schnaggels
Beiträge: 386
Registriert: 31 Okt 2010, 23:14
Wohnort: Kelkheim
Kontaktdaten:

Re: TXT controller colour recognition ?

Beitrag von schnaggels » 28 Jul 2015, 08:23

Hi hvn,

I guess the virtual machine with Windows is the issue. Do you see any camera listed in the dropdown box on the camera tab please?
If you connect the ft cam direct to your linux, is it then shown in the RoboPro Camera tab from the interface test?

Thomas

hvn
Beiträge: 199
Registriert: 20 Feb 2011, 11:15

Re: TXT controller colour recognition ?

Beitrag von hvn » 28 Jul 2015, 12:15

Hi Thomas,

I don't use any Windows. I only use Ubuntu Linux 14.04 for this.

When I connect the ft USB camera to my computer it detects the ft USB Camera fine, as shown in the output of the dmesg command:
[ 2805.305037] usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 2805.305047] usb 1-1: Product: USB 2.0 Camera
[ 2805.305057] usb 1-1: Manufacturer: Sonix Technology Co., Ltd.
[ 2805.464253] media: Linux media interface: v0.10
[ 2805.542772] Linux video capture interface: v2.00
[ 2805.620039] usb 1-1: 3:1: cannot get freq at ep 0x84
[ 2805.659266] usbcore: registered new interface driver snd-usb-audio
[ 2805.702761] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (1b71:0056)
[ 2805.715666] input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/input/input14
[ 2805.719290] usbcore: registered new interface driver uvcvideo
[ 2805.719299] USB Video Class driver (1.1.1)

- ROBOPro 4.1.8 is run via the wine emulator (not via Windows and virtual machine). With the camera connected to the computer, there is no Camera tab in the Interface test. The only tabs are Inputs/Outputs and Info.
- When I load my progam in ROBOPro and select Camera preview, Camera connection: PC, and Select PC Camera, there is no camera detected.
- When the camera is connected to the TXT, I get a great live view via my tablet. So I know the camera is not broken.

hvn

Benutzeravatar
schnaggels
Beiträge: 386
Registriert: 31 Okt 2010, 23:14
Wohnort: Kelkheim
Kontaktdaten:

Re: TXT controller colour recognition ?

Beitrag von schnaggels » 28 Jul 2015, 14:15

I would suggest you contact the ROBOpro developer direct to get how the decission is made showing the RoboPro camera tab or not ;)

Thomas

hvn
Beiträge: 199
Registriert: 20 Feb 2011, 11:15

Re: TXT controller colour recognition ?

Beitrag von hvn » 28 Jul 2015, 15:45

How do I contact him ? Via fischertechnik ?
hvn

Benutzeravatar
schnaggels
Beiträge: 386
Registriert: 31 Okt 2010, 23:14
Wohnort: Kelkheim
Kontaktdaten:

Re: TXT controller colour recognition ?

Beitrag von schnaggels » 29 Jul 2015, 10:48

Found the email in this thread:
http://forum.ftcommunity.de/viewtopic.p ... hoo#p10652
=> ROBOProEntwickler bei yahoo Deutschland

or via the forum if you look for user ROBOProEntwickler ;)

Thomas

hvn
Beiträge: 199
Registriert: 20 Feb 2011, 11:15

Re: TXT controller colour recognition ?

Beitrag von hvn » 29 Jul 2015, 14:53

Thank you. I was looking for that username but apparently I spelled it wrong.

hvn

ROBOProEntwickler
fischertechnik Mitarbeiter
Beiträge: 11
Registriert: 28 Dez 2012, 14:56

Re: TXT controller colour recognition ?

Beitrag von ROBOProEntwickler » 01 Aug 2015, 18:31

Dear hvn,

there are two options to connect the camera in online mode: to the PC or
to the TXT. You can choose in the camera window. The connection to the
PC likely does not work with Wine. Wine has no USB support and there is
nothing one can do about it (except implementing a USB stack for wine,
likely a few man years of work). But online mode with camera connected
to the TXT should work, because then the data is transfered via TCP/IP
and Linux handles the USB.

With Windows in a VirtualBox VM it works als with PC connected camera,
but you need to declare it as a web cam, not as a usual USB device. Also
it tends to lag quite a bit (the lag builds up each camera start stop).

Best regards,

ROBOProEntwickler

ROBOProEntwickler
fischertechnik Mitarbeiter
Beiträge: 11
Registriert: 28 Dez 2012, 14:56

Re: TXT controller colour recognition ?

Beitrag von ROBOProEntwickler » 01 Aug 2015, 18:35

P.S.:

what woudl also work for a local connected camera is to redirect the TXT camera port to some small server app running on Linux, which implements the TXT camera server protocol. This is documented in the C Programming Kit (can be downloaded from the ft site). All in all this might be 100..200 lines of C code.

Best regards,

Michael

Antworten