Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   zomB Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=92339)

Tommithy 19-02-2011 15:47

zomB Dashboard
 
hey, about the ZomB Dashboard. We have been doin it, and this is our first year doing it. So far we have put driver station messages, DriverStationDisplay, to see if the code is working, and it displays the messages we wrote on the drive station, when we debug the robot. When we run the ZomB dashboard itself, it does absolutely nothing, with the widgets in there. We tried the bindings help, and the dbpacket workaround. We think all the widgets should be automatically functioning when running it, and that isn't happening. Are there any suggestions?

byteit101 19-02-2011 19:47

Re: zomB Dashboard
 
Are you using the Default Dashboard? or Visual ZomB?

and make sure you have the latest cRIO and programming language updates, as well as ZomB 0.8 (http://firstforge.wpi.edu/sf/frs/do/...rs.stable.v0_8)

tutkows1 26-02-2011 16:37

Re: zomB Dashboard
 
Does ZomB support camera feed not being run though Crio, but though the DLink?

Also what Language was ZomB written in?

byteit101 26-02-2011 17:46

Re: zomB Dashboard
 
yes, any MJPEG camera will do, set the source to MJPEG and the camera's ip in the box below

Visual ZomB, ZomB.dll & ZomB Eye: .Net (C# and WPF)
main bindings & C interface: C++
java interface: Java
Labview Interface: Labview

EDIT: to use the MJPEG camera, make sure you have an "frc" account on the camera with password "FRC" (w/o quotes)

tutkows1 27-02-2011 13:31

Re: zomB Dashboard
 
Thanks, i'm going to try and use this dashboard next time i have access to our practice bot.

MikeNimmo 28-02-2011 20:25

Re: zomB Dashboard
 
Quote:

Originally Posted by byteit101 (Post 1031852)
yes, any MJPEG camera will do, set the source to MJPEG and the camera's ip in the box below

Visual ZomB, ZomB.dll & ZomB Eye: .Net (C# and WPF)
main bindings & C interface: C++
java interface: Java
Labview Interface: Labview

EDIT: to use the MJPEG camera, make sure you have an "frc" account on the camera with password "FRC" (w/o quotes)

We are thinking about bypassing the cRio with the camera because we aren't planning on doing any image processing. This means that we do not need any camera code and just need to set parameters in the zomb designer for the camera, right?

We have a PC with the camera plugged in a network hub, we set "Source" to be "MJPEGStream" and "Source args" field to be 10.31.26.20 in the visual zomb and pressed F5. The camera image is not showing on the ZomB dashboard pop up. Did we do something wrong? We have the frc/FRC account and also enabled anonymous connection for the camera. The image shows up fine on IE at http://10.31.26.20/ which means there is nothing wrong with our camera connection.

byteit101 28-02-2011 20:44

Re: zomB Dashboard
 
Quote:

Originally Posted by MikeNimmo (Post 1032870)
We are thinking about bypassing the cRio with the camera because we aren't planning on doing any image processing. This means that we do not need any camera code and just need to set parameters in the zomb designer for the camera, right?

Correct, you don't need any code. In fact, you can just hook it up to your router and it will work.
Quote:

Originally Posted by MikeNimmo (Post 1032870)
We have a PC with the camera plugged in a network hub, we set "Source" to be "MJPEGStream" and "Source args" field to be 10.31.26.20 in the visual zomb and pressed F5. The camera image is not showing on the ZomB dashboard pop up. Did we do something wrong? We have the frc/FRC account and also enabled anonymous connection for the camera. The image shows up fine on IE at http://10.31.26.20/ which means there is nothing wrong with our camera connection.

hmm, that should work fine. Using your web browser, does going to http://10.31.26.20/axis-cgi/mjpg/video.cgi using frc/FRC work? The username thing seems to be our top error. I also fixed a few bugs in the MJPEGStream class the other day that may help, i'll build it and post it as soon as I can.

Also, did you try deploying it to an exe, exiting Visual ZomB, and running that exe? Doing this sometimes helps

MikeNimmo 28-02-2011 21:14

Re: zomB Dashboard
 
Quote:

Originally Posted by byteit101 (Post 1032885)
does going to http://10.31.26.20/axis-cgi/mjpg/video.cgi using frc/FRC work? The username thing seems to be our top error. I also fixed a few bugs in the MJPEGStream class the other day that may help, i'll build it and post it as soon as I can.

The address automatically changed to http://10.31.26.20/view/index.shtml once http://10.31.26.20/ was inputted. We typed the address you suggested but a window appeared asking us to save the cgi file. Looking forward the update! Thank you very much.

Quote:

Originally Posted by byteit101 (Post 1032885)
Also, did you try deploying it to an exe, exiting Visual ZomB, and running that exe?

Tried but did not help.

byteit101 02-03-2011 16:16

Re: zomB Dashboard
 
Quote:

Originally Posted by MikeNimmo (Post 1032903)
We typed the address you suggested but a window appeared asking us to save the cgi file.

Use Firefox (Chrome should also work), IE sucks.

Download v0.8.1.386

MikeNimmo 02-03-2011 20:26

Re: zomB Dashboard
 
Quote:

Originally Posted by byteit101 (Post 1033747)
Use Firefox (Chrome should also work), IE sucks.

Okay, it worked on Firefox with the frc/FRC account, but we still couldn't get an image on the ZomB dashboard using your latest package.

Did the camera + PC + network switch/hub setup work for you? If so, do you mind uploading a simple .zaml file that only has the video field? It could be that there are some obvious things missing from our design.

byteit101 02-03-2011 21:09

Re: zomB Dashboard
 
Yes, I have been able to get it working using that setup.
pop this in testing.zaml and double click it:
Code:

<ZomB:DashboardDataCanvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ZomB="clr-namespace:System451.Communication.Dashboard.WPF.Controls;assembly=ZomB" xmlns:ZomBDS="clr-namespace:System451.Communication.Dashboard.Net.DriverStation;assembly=ZomB.DriverStation" Height="400" Width="1024" InvalidPacketAction="Ignore" DefaultSources="zomb://10.31.26.2/DBPkt;" Team="3126"><ZomB:CameraView Name="Zdb49ae27cb754a1d" Canvas.Top="150" Canvas.Left="10" ShowReset="True" VideoSource="MJPEGStream" VideoSourceArgs="10.31.26.20" Height="240" Width="320" RenderTransformOrigin="0,0" /></ZomB:DashboardDataCanvas>
if you are really paranoid, change your router to team 451, camera to .90, and use this:
Code:

<ZomB:DashboardDataCanvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ZomB="clr-namespace:System451.Communication.Dashboard.WPF.Controls;assembly=ZomB" xmlns:ZomBDS="clr-namespace:System451.Communication.Dashboard.Net.DriverStation;assembly=ZomB.DriverStation" Height="400" Width="1024" InvalidPacketAction="Ignore" DefaultSources="zomb://10.4.51.2/TCP;zomb://10.4.51.2/TCP2;" Team="451"><ZomB:CameraView Name="Zdb49ae27cb754a1d" Canvas.Top="150" Canvas.Left="10" ShowReset="True" VideoSource="MJPEGStream" VideoSourceArgs="10.4.51.90" Height="240" Width="320" RenderTransformOrigin="0,0" /></ZomB:DashboardDataCanvas>
(and the little squarish button in the bottom left, try clicking it. it is the refresh button)

If this does not work for you, open C:\windows\assembly and find ZomB. If there is more than 1, uninstall all but 0.8.1.0.
If you are still having troubles, make sure IE does not have a proxy set, connect the camera to the router, and the computer to the router, and try again.
You can also try installing SlimDX, and reinstalling ZomB.
final idea: download Visual Studio C# express edition, and I can use LogMeIn or VNC to see what your problem is (PM me if so)

Tommithy 11-03-2011 13:57

Re: zomB Dashboard
 
after working on another computer, and as we calibrate all our stuff on another computer, whenver installing your Visual ZomB eight, also having tried downloading every version 0.7 and up chronologically, it gives an error message, meaning we can't it at all any suggestions?

byteit101 11-03-2011 14:47

Re: zomB Dashboard
 
Quote:

Originally Posted by Tommithy (Post 1037907)
after working on another computer, and as we calibrate all our stuff on another computer, whenver installing your Visual ZomB eight, also having tried downloading every version 0.7 and up chronologically, it gives an error message, meaning we can't it at all any suggestions?

what do you mean by 'we can't it at all any suggestions'?
what's the error message? or is it the standard windows error box? if the standard box, view details and either copy it all out to a PM, or find the first part of the stack trace (should contain System451.Communication.dashboard in it)

Also note, to downgrade, uninstall your version, delete any extra files in C:\Program Files\ZomB\, open C:\Windows\Assembly, and delete all ZomB versions, then install the version you want.

Tommithy 12-03-2011 00:40

Re: zomB Dashboard
 
The error message: an error occured while searching for controls . This may be caused by a failure to properly load modules. If getting the error message for the first time u need to restart. Do you want to restart?

Click yes, says Visual ZomB Stopped working, otherwise it just closes

byteit101 12-03-2011 07:54

Re: zomB Dashboard
 
And it does this every time it opens?
What files are in C:\Program Files\ZomB and C:\Program Files\ZomB\plugins?
Do you have the .Net framework 3.5?

Robby Unruh 15-03-2011 16:04

Re: zomB Dashboard
 
Quote:

Originally Posted by byteit101 (Post 1038143)
And it does this every time it opens?
What files are in C:\Program Files\ZomB and C:\Program Files\ZomB\plugins?
Do you have the .Net framework 3.5?

3.5? Dang, I just finished installing 4.0! :rolleyes:

Tommithy 19-03-2011 01:54

Re: zomB Dashboard
 
ya it still does on any other computer we download it on. I had it working on one laptop though, only works on that laptop, could I just download it to the DS from there. Anyways, in program files/ZomB/plugins there is ZomB.Driverstation.dll.

and for program files/ZomB there is the all the extracted files.

I do not have .Net framework 3.5


All times are GMT -5. The time now is 23:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi