|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SmartDashboard video
The SmartDashboard is intended to be a really cool tool for debugging and monitoring your programs output. There's a video of it being used for displaying robot data, status, and other things here:
http://www.youtube.com/user/BradAMiller/ Although it's being used from a Java program, the same methods work in C++. To use them, get an instance of the SmartDashboard class using: Code:
SmartDashboard *sd = SmartDashboard::GetInstance(); Code:
sd->PutData(); Everything else in the video is language agnostic. I hope this helps. Brad |
|
#2
|
||||
|
||||
|
Re: SmartDashboard video
Brad,
This is such a great improvement to the control system.. Being able to view our encoder speeds and status of switches makes debugging a million times easier. We've got a speedometer and some booleans loaded up and once we figured out we had to put the team number in the dash, they all worked like a champ. Thank you!!! -Dan Roswell FRC Team 2370 Mentor |
|
#3
|
|||||
|
|||||
|
Re: SmartDashboard video
Great videos. Thanks Brad!
|
|
#4
|
||||
|
||||
|
Re: SmartDashboard video
Quote:
Another really, really useful SmartDashboard demo video would be a demonstration of an image targeting extension where the results are communicated back to the robot. |
|
#5
|
||||
|
||||
|
Brad, I'd love to see a demonstration of how to display processed images on the smart dashboard if it's possible.
Or how about a sample video on how to proceess vision on the ds and send the data back to the robot? Also, I think I saw OpenCV being installed with the smart dashboard, why and are there vision capibiliteis that we should know about? Just some ideas, the smart dashboard video was awesome! ![]() |
|
#6
|
||||
|
||||
|
Re: SmartDashboard video
Would it be possible to display an image on the SmartDashboard that was processed on the cRio? Would be nice to have a method like SmartDashboard.putImage("MyProcessedImage", myImage).
|
|
#7
|
||||
|
||||
|
Re: SmartDashboard video
Right now we are processing the image on the cRio, saving it to the cRio and then using ftp to get the image and look at it. I've been toying with just automating this... push a button on the SmartDashboard, get the image using ftp and displaying it using a custom widget. Anyone done anything like this?
|
|
#8
|
||||
|
||||
|
Re: SmartDashboard video
Quote:
|
|
#9
|
|||
|
|||
|
Re: SmartDashboard video
Quote:
|
|
#10
|
||||
|
||||
|
Re: SmartDashboard video
Do you mean binImage->Write("/convexImage.bmp")? I saw the other thread suggesting that. So I was assuming that the Write function is writing the file in BMP or PNG file format. So at one point, I renamed the convexImage.jpg to convexImage.bmp and tried to open it that way. It was still black. However, I did not try doing binImage->Write("/convexImage.bmp") in the code. May be I should try that in case the ImaqWriteFile function actually looks at the file extension and decided to do something different.
|
|
#11
|
||||
|
||||
|
Re: SmartDashboard video
Yes indeed - the extension you put in the filename for the Write() function actually implies to that function what format it should write the image in. We found this out by experimentation and had luck getting from black JPEGs to useful BMPs.
bob |
|
#12
|
||||
|
||||
|
Re: SmartDashboard video
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|