Go to Post AndyMark has done something amazing. - Sam390250 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2012, 08:45
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
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();
Then you can call the methods like this:
Code:
sd->PutData();
etc.

Everything else in the video is language agnostic.

I hope this helps.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2012, 09:43
droswell's Avatar
droswell droswell is offline
Registered User
FRC #2370 (iBots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2009
Location: Rutland, VT
Posts: 72
droswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to beholddroswell is a splendid one to behold
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
__________________



Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2012, 09:47
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: SmartDashboard video

Great videos. Thanks Brad!
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2012, 10:16
dkearle's Avatar
dkearle dkearle is offline
Dianne
FRC #1280 (Ragin' C-Biscuits)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: San Ramon, CA
Posts: 14
dkearle is an unknown quantity at this point
Re: SmartDashboard video

Quote:
Originally Posted by BradAMiller View Post
There's a video of it being used for displaying robot data, status, and other things here:

http://www.youtube.com/user/BradAMiller/
The video is a great demo of some of the SmartDashboard features. I would love to see the next in the SmartDashboard demo video series cover PID tuning using the SendablePIDController. We are attempting this but ran into a problem where we typed in a new value for the P constant in the SmartDashboard PID widget and then hit the [ENTER] key, which of course immediately disabled our robot. It looks as if in your video you also inadvertently disabled your robot by hitting [ENTER]. I'm reading through the forums but haven't yet seen any other discussions on this that help me understand how we can enter data (not just a mouse click) on the SmartDashboard without hitting the [ENTER] key on the driver station. Any suggestions?

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.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2012, 12:39
dawonn's Avatar
dawonn dawonn is offline
Mentor
AKA: Dereck
FRC #2586 (Calumet Copperbots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Auburn Hills, Mi
Posts: 53
dawonn is an unknown quantity at this point
Thumbs up Re: SmartDashboard video

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!
Reply With Quote
  #6   Spotlight this post!  
Unread 10-02-2012, 12:49
Brian Selle's Avatar
Brian Selle Brian Selle is online now
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 165
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
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).
Reply With Quote
  #7   Spotlight this post!  
Unread 10-02-2012, 13:07
Brian Selle's Avatar
Brian Selle Brian Selle is online now
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 165
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
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?
Reply With Quote
  #8   Spotlight this post!  
Unread 10-02-2012, 14:12
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: SmartDashboard video

Quote:
Originally Posted by btslaser View Post
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?
We have been saving the processed images on the cRIO as well. But we ran into several problems. If we did processing using the HSL color space, binImage->Write will fault. If we used RGB color space, the images were saved but they are all black. Is there a trick to save these images and are viewable? It would be wonderful if we can stream the processed images to either the Dashboard or the SmartDashboard. But looking at the current SmartDashboard support, I don't see any.
__________________
Reply With Quote
  #9   Spotlight this post!  
Unread 10-02-2012, 15:24
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: SmartDashboard video

Quote:
Originally Posted by mikets View Post
We have been saving the processed images on the cRIO as well. But we ran into several problems. If we did processing using the HSL color space, binImage->Write will fault. If we used RGB color space, the images were saved but they are all black. Is there a trick to save these images and are viewable? It would be wonderful if we can stream the processed images to either the Dashboard or the SmartDashboard. But looking at the current SmartDashboard support, I don't see any.
Try saving as PNG or BMP instead of JPEG.
Reply With Quote
  #10   Spotlight this post!  
Unread 10-02-2012, 15:56
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: SmartDashboard video

Quote:
Originally Posted by RufflesRidge View Post
Try saving as PNG or BMP instead of JPEG.
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.
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 10-02-2012, 16:58
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
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
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #12   Spotlight this post!  
Unread 15-12-2012, 01:54
Hypnotoad's Avatar
Hypnotoad Hypnotoad is offline
Junior Assistant Secretary of Moon
no team
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: California
Posts: 114
Hypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these parts
Re: SmartDashboard video

Quote:
Originally Posted by dawonn View Post
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!
I do very much agree with this. The only reason I really want to use a custom dashboard is because I need to debug my vision tracking code.
__________________
The following sentence is true.
The preceding sentence is false.
This sentence is false.
This signature is false.
My teeth are false.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:15.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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