Go to Post Removing too much of the challenge removes too much of the accomplishment when you solve the problem. Removing too much of the challenge removes too much of the innovation in the solutions... removing too much of the challenge removes too much of the fun. - dlavery [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 21-01-2012, 13:46
scottbot95 scottbot95 is offline
Registered User
FRC #1388 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Arroyo Grande, CA
Posts: 46
scottbot95 is an unknown quantity at this point
Send image to Dashboard

I have come into some issues with my vision code and it would be INCREDIBLY helpful if I could send an Image object to be displayed on the Dashboard. I've looked around and I have been unable to find any way to send a custom image to the dashboard other than recompiling the Dashboard to some custom thing which I would rather not have to do. If anyone knows a simpler way to send an image to the dashboard, that information would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2012, 14:30
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Send image to Dashboard

The standard dashboard gets it images directly from the camera. It is not necessarily meant to be a debug window for development, so it has no API for dumping arbitrary images to it. As you mention, it can be changed to display images from another source but will need to be modified and rebuilt.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2012, 10:43
scottbot95 scottbot95 is offline
Registered User
FRC #1388 (Eagle Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Arroyo Grande, CA
Posts: 46
scottbot95 is an unknown quantity at this point
Re: Send image to Dashboard

I was afraid of that.... Ok. Thanks.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2012, 22:36
malachias malachias is offline
Registered User
FRC #1311
 
Join Date: Jan 2012
Location: Kell High School, Marietta, GA
Posts: 9
malachias is on a distinguished road
Re: Send image to Dashboard

You can write the images to the cRIO using imaqWrite* methods or write methods on the image classes. Once written you can FTP the files back to your desktop or laptop and display them, e.g.:

AxisCamera& camera = AxisCamera::GetInstance("10.13.11.11");
HSLImage* hslImage = camera.GetImage();

hslImage->write("snapshot.jpg");

Alternatively,

imaqWriteJPEGFile(hslImage->GetImaqImage(), "snapshot.jpg", 100, NULL);



I then use FTP to retrieve the file using a DOS command window:

$ftp
ftp>open 10.13.11.2
no user or password require -- just hit return
ftp> ls -- to get a file listing
ftp>get snapshot.jpeg -- get your file, ends up in home directory
ftp>delete snapshot.jpeg

ftp>help -- get help on other commands

you can write an batch script if needed.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2012, 20:03
DM High Voltage DM High Voltage is offline
Registered User
FRC #2852
 
Join Date: Jan 2012
Location: St. Catharines, ON
Posts: 2
DM High Voltage is an unknown quantity at this point
Re: Send image to Dashboard

I am not sure that I am using this form correctly but this was the only post I saw about dashboards. I would like to understand how to get data (a number) from the Java SmartDashboard to the robot. We are running c++ on the robot and I have configured a SmartDashboard which recognises my PutString and PutDouble calls but I can't figure out how to get a value to the GetDouble function from the dashboard.
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 03:02.

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