Go to Post I think we're doing pretty well . . . but I will never, ever say that "we are ahead of schedule." It's a curse. :D - Éowyn [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 01-13-2013, 07:45 PM
divixsoft's Avatar
divixsoft divixsoft is offline
Registered User
FRC #0835
 
Join Date: Feb 2011
Location: MI
Posts: 29
divixsoft is an unknown quantity at this point
Onboard Computer

Due to the bandwith limit this year, I was curious if it was possible to make a smart dashboard widget that used javacv to proccess and image and use smart dashboard to send the values back to the robot. But the twist is do this on the classmate, attached on the robot as an onboard computer, than have another computer with our normal smart dashboard components to control the robot?

thanks in Advance,
Dimitri
Reply With Quote
  #2   Spotlight this post!  
Unread 01-13-2013, 09:23 PM
Johnbot's Avatar
Johnbot Johnbot is offline
Es Brokein!
AKA: John Westhoff
FRC #4791 (Pandroids)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Horsham, PA
Posts: 92
Johnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really niceJohnbot is just really nice
Re: Onboard Computer

Yes, it is possible, and it is legal as long as your onboard computer does not control any power regulating devices (e.g. Jaguars, Victors, Relays, etc.)

Edit:
If you must do this, and you need the driverstation dashbaord to see the image then you might want to consider the following:
- You only save a few bytes if both your onboard computer sends back data directly and your driverstation reads the image. (This assumes the Socket communication doesn't pass through the field when you send it to the cRIO through your radio, if it does, you save nothing)
- You could grab the image on your onboard computer, process it, send data to the cRIO, compress the image, and then host it as a MJPEG stream for the driverstation dashboard to see. (This would save you some bandwidth, as long as your drivers can deal with a more compressed image. Also, it would allow you to process higher quality images without eating up your bandwidth.)
__________________

2011-2014 - FRC 2607 - Student
2012-2012 - FLL 2249 - Coach
2015- ???? - FRC 4791 - Mentor

Last edited by Johnbot : 01-13-2013 at 09:32 PM. Reason: Added a lot
Reply With Quote
  #3   Spotlight this post!  
Unread 01-13-2013, 10:21 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Onboard Computer

Quote:
Originally Posted by divixsoft View Post
Due to the bandwith limit this year, I was curious if it was possible to make a smart dashboard widget that used javacv to proccess and image and use smart dashboard to send the values back to the robot. But the twist is do this on the classmate, attached on the robot as an onboard computer, than have another computer with our normal smart dashboard components to control the robot?
You can have multiple Network Table clients. SmartDashboard on the robot classmate would be one and SmartDashboard on the driver station computer would be another.

Quote:
Originally Posted by Johnbot View Post
If you must do this, and you need the driverstation dashbaord to see the image then you might want to consider the following:
- You only save a few bytes if both your onboard computer sends back data directly and your driverstation reads the image. (This assumes the Socket communication doesn't pass through the field when you send it to the cRIO through your radio, if it does, you save nothing)
Communication between items on the robot does not go through the field.
Quote:
Originally Posted by Johnbot View Post
- You could grab the image on your onboard computer, process it, send data to the cRIO, compress the image, and then host it as a MJPEG stream for the driverstation dashboard to see. (This would save you some bandwidth, as long as your drivers can deal with a more compressed image. Also, it would allow you to process higher quality images without eating up your bandwidth.)
The axis camera supports multiple simultaneous streams. The robot classmate can request a stream at 640x480, and the dashboard can request a stream at a lower resolution.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-13-2013, 10:36 PM
divixsoft's Avatar
divixsoft divixsoft is offline
Registered User
FRC #0835
 
Join Date: Feb 2011
Location: MI
Posts: 29
divixsoft is an unknown quantity at this point
Re: Onboard Computer

Thanks for such fast replies. So what you are saying is I can have the highest quality image I want sent to the on board computer. Then send smaller images to the driverstation?

If so, how would the network setup work, in detail please I do not know that much about networking.

Thanks a ton,
Dimitri
Reply With Quote
  #5   Spotlight this post!  
Unread 01-14-2013, 12:00 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,547
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Onboard Computer

The networking is pretty simple. The cRIO, Camera, and on-board computer should all connect to the radio. Give the on-board computer a static IP address of 10.xx.yy.12 (or another unused IP address).
Reply With Quote
  #6   Spotlight this post!  
Unread 01-15-2013, 08:16 PM
divixsoft's Avatar
divixsoft divixsoft is offline
Registered User
FRC #0835
 
Join Date: Feb 2011
Location: MI
Posts: 29
divixsoft is an unknown quantity at this point
Re: Onboard Computer

Thanks for the reply, but how would you suggest I set this up:
Robot Camera takes the picture then sends it to the onboard computer, the onboard computer processes it, than sends values back to the robot. I know how to do these parts, but I am not sure how to communicate between driver stations. I want to be able to set which target to search for from the driver station to the onboard computer. Also how could I send coordinates from the onboard computer to the driver station, to draw on the driverstation feed?

thanks
Dimitri
Reply With Quote
  #7   Spotlight this post!  
Unread 01-16-2013, 07:44 AM
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,748
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: Onboard Computer

Use SmartDashboard variables. If each of the devices you mention speaks the SmartDashboard protocol, the values are kept in shared and kept in sync. In what you describe, you have SmartDashboard on the dashboard, robot, and imaging card.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 01-16-2013, 08:19 PM
divixsoft's Avatar
divixsoft divixsoft is offline
Registered User
FRC #0835
 
Join Date: Feb 2011
Location: MI
Posts: 29
divixsoft is an unknown quantity at this point
Re: Onboard Computer

What are smartdashboard variables, and does anyone have any experience with robotrealm?

thanks,
Dimitri
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 07:52 AM.

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