Go to Post "THAT'S NOT SAFE!" "But I'm wearing safety goggles!" - Samheartsrobots [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 02-02-2017, 07:47
arushshah1 arushshah1 is offline
Registered User
FRC #6203
 
Join Date: Mar 2016
Location: Hackensack, NJ
Posts: 14
arushshah1 is an unknown quantity at this point
Robot Communication and External CPUs during Competitions

Our team is doing vision processing for the first time, using an Nvidia Jetson TX1 to do our vision processing. Currently, we are connecting the camera and the Jetson to the network that we're setting up using the radio in our lab. To run the Python OpenCV script on the Jetson, I simply SSH into the Jetson terminal from the driver station and run it before starting the robot program.

I'm a little unsure of how the network is set up at the field during competitions, and I know that radios cannot setup their home network on the field. I was wondering if I will still be able to SSH into the Jetson using its static IP and if I can use the same IP of the camera as I did when it was connected to the radio's network. Also, is it legal to run a separate process such as SSH on the driver station or does the robot code need to start the Python script on the Jetson automatically?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-02-2017, 09:07
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 350
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
Re: Robot Communication and External CPUs during Competitions

Why wouldn't you want to either start the program on startup (whenever power is on) or to start when a command is sent over network tables?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2017, 13:34
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Robot Communication and External CPUs during Competitions

Quote:
Originally Posted by arushshah1 View Post
I was wondering if I will still be able to SSH into the Jetson using its static IP and
You should be able to.

Quote:
if I can use the same IP of the camera as I did when it was connected to the radio's network.
Assuming the IP Address is 10.XX.YY.xx, where XX.YY is your team number, then yes.

Quote:
Also, is it legal to run a separate process such as SSH on the driver station
You can run whatever you want on the Driver Station. However ...

If you have problems with your DS on the field, they may give you the Stock driver station to use. That will not have your other programs loaded onto it.

If you are planning for all contingencies, don't assume you can run SSH from the Driver Station. Have the Jetson automatically start running the program upon bootup.
__________________

Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2017, 13:47
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,748
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Robot Communication and External CPUs during Competitions

Quote:
Originally Posted by R65
Communication between the ROBOT and the OPERATOR CONSOLE is restricted as follows:
A. Network Ports:
UDP/TCP 1180-1190: Camera data from the roboRIO to the Driver Station (DS) when the camera is connected the roboRIO via USB, bi-directional.
TCP 1735: SmartDashboard, bi-directional
UDP 1130: Dashboard-to-ROBOT control data, uni-directional
UDP 1140: ROBOT-to-Dashboard status data, uni-directional
HTTP 80: Camera connected via switch on the ROBOT, bi-directional
HTTP 443: Camera connected via switch on the ROBOT, bi-directional
UDP/TCP 554: Real-Time Streaming Protocol for h.264 camera streaming, bi-directional
UDP/TCP 5800-5810: Team Use, bi-directional
Teams may use these ports as they wish if they do not employ them as outlined above (i.e. TCP 1180 can be used to pass data back and forth between the ROBOT and the DS if the Team chooses not to use the camera on USB).
B. Bandwidth: no more than 7 Mbits/second.
SSH isn't listed as one of the allowed ports, so you'd have to move your SSH port to one of the above listed, at the least. Granted, the restriction is listed as to the robot, but I'm assuming it's a filter on the access point to robot bridge connection.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2017, 14:03
arushshah1 arushshah1 is offline
Registered User
FRC #6203
 
Join Date: Mar 2016
Location: Hackensack, NJ
Posts: 14
arushshah1 is an unknown quantity at this point
Re: Robot Communication and External CPUs during Competitions

How can I run a program on startup?
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2017, 21:18
Justin Buist Justin Buist is offline
Registered User
FRC #4003 (TriSonics)
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Allendale, MI
Posts: 27
Justin Buist is an unknown quantity at this point
Re: Robot Communication and External CPUs during Competitions

Quote:
Originally Posted by arushshah1 View Post
How can I run a program on startup?
Well, the Jetson eLinux (which I've never used) is basically Ubuntu 14.04 (which I do use) so I'd guess add it to the /etc/rc.local script before it reaches the "exit 0" line.

/path/to/program.py &

The ampersand disconnects it from the terminal and lets it run the background.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2017, 14:10
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 331
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Robot Communication and External CPUs during Competitions

Quote:
Originally Posted by Kevin Sevcik View Post
SSH isn't listed as one of the allowed ports, so you'd have to move your SSH port to one of the above listed, at the least. Granted, the restriction is listed as to the robot, but I'm assuming it's a filter on the access point to robot bridge connection.
Unless he's using SSH while connected to the FMS, he should be fine since you have to plug in with Ethernet to connect to the robot at events anyway.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2017, 14:32
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,275
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Robot Communication and External CPUs during Competitions

Quote:
Originally Posted by bobbysq View Post
Unless he's using SSH while connected to the FMS, he should be fine since you have to plug in with Ethernet to connect to the robot at events anyway.
Most teams place their robot on the field in a powered off state. Needing to tether while powering on is not advisable.
__________________

Reply With Quote
  #9   Spotlight this post!  
Unread 02-02-2017, 14:41
bobbysq bobbysq is offline
Registered User
FRC #4646 (Team ASAP)
Team Role: Leadership
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Des Moines, IA
Posts: 331
bobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud ofbobbysq has much to be proud of
Re: Robot Communication and External CPUs during Competitions

Quote:
Originally Posted by rich2202 View Post
Most teams place their robot on the field in a powered off state. Needing to tether while powering on is not advisable.
I didn't even notice this was on the field. I thought this was just for general maintenance. In that case, I would go with everyone else and recommend an autorun script and a static IP.
Reply With Quote
  #10   Spotlight this post!  
Unread 02-02-2017, 19:42
scca229 scca229 is offline
FTA acquiring knowledge
AKA: Nate
FRC #0060
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2011
Location: South of Phoenix, Arizona
Posts: 223
scca229 has a spectacular aura aboutscca229 has a spectacular aura about
Re: Robot Communication and External CPUs during Competitions

Quote:
Originally Posted by Kevin Sevcik View Post
SSH isn't listed as one of the allowed ports, so you'd have to move your SSH port to one of the above listed, at the least. Granted, the restriction is listed as to the robot, but I'm assuming it's a filter on the access point to robot bridge connection.
That filter is on any traffic that is going from the radio's wifi to the driver station ethernet port and is policed by the FMS. The radio's ethernet ports do not have this restriction, so communication internally to the robot is not affected, nor anything internally to the driver station.

Quote:
Originally Posted by rich2202 View Post
Most teams place their robot on the field in a powered off state. Needing to tether while powering on is not advisable.
Definitely not advisable as it won't be allowed once the robot is on the field excepting an official Field Timeout if the robot is in back-to-back matches (immediate replay or in Playoffs).
__________________
Nate
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 15:29.

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