Log in

View Full Version : Roborealm Image in Dashboard


Programmer_Sean
18-02-2013, 10:40
I have been working on getting a processed image from roborealm to appear on are FRC dashboard, i have succeed.

This the line that is in are Dashboard_main.vi
http://i48.tinypic.com/qovfph.png

As you can see there are two subvi's, roborealm image string.vi asks roborealm for the image in a string, it then goes to the decodejpg.vi which is just a copy of some code i found in the "WPI_CameraRead MJPG.vi" which turns it into a image which is then displayed on the dashboard.

Roborealm Image String
http://i47.tinypic.com/11gj609.png

Decode Jpg
http://i48.tinypic.com/9qwbgg.png

I have also attached the vi that i just talked about just unzip the .zip file to retrieve them.

I hope this helps people, i posted this because i could not find anything on the internet that shows how to get the Image on the dashboard in labview all i could find was for java and C++.

Greg McKaskle
18-02-2013, 21:38
The only thing that I'll comment on that might be improved is to use the actual WPILib JPEG decoder without dropping down that low level.

vi.lib\Rock Robotics\WPI\Camera\WPI_CameraDecodeJPEGString.vi

Greg McKaskle

Programmer_Sean
18-02-2013, 22:04
Thank you for the reply my only question is what is the difference between the two because they both have the same inputs and outputs. The decoder i show is a exact copy of what is done in the dashboard project.

Greg McKaskle
19-02-2013, 04:17
The unique stuff you wrote for RR is a nice thing to give away, and the copy of the jpeg stuff is something everyone already has. It is part of WPILib.

The difference is that there are now two subVIs that are functionally the same with almost the same name. It wasn't clear to me why the copy was constructed. If it was for practice, and understanding, that is fine, but I suspect it will cause confusion over time, and it would be somewhat better to use the original.

Greg McKaskle

JoesephWhite
06-03-2013, 11:55
I see that your code says the camera is the Kinect, how are you getting the data from the Kinect to the driver station?