Go to Post Your robot is trying to talk to you, all you have to do is listen. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 18-03-2016, 17:03
Bernstern Bernstern is offline
Registered User
FRC #2141 (Spartonics)
Team Role: Programmer
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Clayton
Posts: 30
Bernstern is an unknown quantity at this point
Porting Tower Tracker to CPP

Does anyone have a good way to translate (or if it already works its ok) the TowerTracker.java program into CPP to run on a Coprocessor (Tk1)?
__________________
Programmers, a species indigenous to robotics that can convert caffeine into code.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-03-2016, 17:20
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 195
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Porting Tower Tracker to CPP

I ported it to c++ here: https://github.com/team2053tigertron...bot/src/vision

It's a little rough, but worked for us in Pittsburgh very well.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2016, 17:35
lethc's Avatar
lethc lethc is offline
#gkccurse
AKA: Becker Lethcoe
FRC #1806 (S.W.A.T.)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Smithville, MO
Posts: 119
lethc will become famous soon enough
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by Bernstern View Post
Does anyone have a good way to translate (or if it already works its ok) the TowerTracker.java program into CPP to run on a Coprocessor (Tk1)?
Just a heads up, we tried running TowerTracker on a TK1 at Greater Kansas City and spent literally all of Thursday trying to get it to communicate over ethernet. We got the calibration images we needed from the field about 30 seconds before we had to leave. The competition router image disables DHCP, and we hadn't planned for this. To fix it we had to set all of our devices' (Driver station, TK1, RoboRIO) IPs to static which took awhile because we hadn't planned for it.

Basically if you're planning on communication with the Jetson over ethernet make sure you account for the fact that the router competition image is different from the 'home use' image. I really don't want anybody to go through what we went through on Thursday
__________________
2016: Greater Kansas City Regional Finalists, Oklahoma Regional Winners, Tesla Semifinalists, IRI Quarterfinalists
2015: Greater Kansas City Regional Finalists, Oklahoma Regional Winners, Tesla Quarterfinalists, IRI Winners
2014: Central Illinois Regional Quarterfinalists, Greater Kansas City Regional Finalists, Newton Semifinalists
2013: Greater Kansas City Regional Winners, Oklahoma Regional Winners, Galileo Quarterfinalists
Reply With Quote
  #4   Spotlight this post!  
Unread 19-03-2016, 07:17
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by lethc View Post
. The competition router image disables DHCP, and we hadn't planned for this.
No it doesn't? The field uses pure DHCP communications except for the router. You get assigned a dhcp IP address in the range of 10.xx.yy.zzz in contrast to the 169.254.xx.xx address in the pits.
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #5   Spotlight this post!  
Unread 19-03-2016, 12:54
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by lethc View Post
Just a heads up, we tried running TowerTracker on a TK1 at Greater Kansas City and spent literally all of Thursday trying to get it to communicate over ethernet. We got the calibration images we needed from the field about 30 seconds before we had to leave. The competition router image disables DHCP, and we hadn't planned for this. To fix it we had to set all of our devices' (Driver station, TK1, RoboRIO) IPs to static which took awhile because we hadn't planned for it.

Basically if you're planning on communication with the Jetson over ethernet make sure you account for the fact that the router competition image is different from the 'home use' image. I really don't want anybody to go through what we went through on Thursday
We ran into the same problem at our event. The competition bridge configuration doesn't disable DHCP, it just doesn't have a DHCP server (because it expects to use the one on the field). This causes the driver station and robot to get an autoconfigured IPv4 address (169.254.x.x), but the Jetson does not.

We fixed this at the competition by using static IPs, but it could likely also be fixed using avahi-autoipd (see: https://wiki.ubuntu.com/ZeroConfNetworking) to assign an IP without DHCP, but I have not tried this yet.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #6   Spotlight this post!  
Unread 19-03-2016, 15:39
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 195
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Porting Tower Tracker to CPP

So when giving devices that run network tables an ip you can give it roboRIO-XXXX-frc.local? Or a static ip that you set?
Reply With Quote
  #7   Spotlight this post!  
Unread 19-03-2016, 16:31
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by jreneew2 View Post
So when giving devices that run network tables an ip you can give it roboRIO-XXXX-frc.local? Or a static ip that you set?

The former if you are using DHCP, the latter if your team is moved to static ip for some reason (the former still works in the second case but it is more reliable to go straight to the IP address if it is known)
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #8   Spotlight this post!  
Unread 19-03-2016, 17:08
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 195
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Porting Tower Tracker to CPP

Ok thanks!
Reply With Quote
  #9   Spotlight this post!  
Unread 20-03-2016, 14:30
Bernstern Bernstern is offline
Registered User
FRC #2141 (Spartonics)
Team Role: Programmer
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Clayton
Posts: 30
Bernstern is an unknown quantity at this point
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by jreneew2 View Post
I ported it to c++ here: https://github.com/team2053tigertron...bot/src/vision

It's a little rough, but worked for us in Pittsburgh very well.
You're a lifesaver but how do i send the distance to center (all we need) over networktables and into our java code?

-Freshmen
__________________
Programmers, a species indigenous to robotics that can convert caffeine into code.
Reply With Quote
  #10   Spotlight this post!  
Unread 20-03-2016, 14:43
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 195
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Porting Tower Tracker to CPP

Our team is actually working on that now! Except we are using a raspberry pi. For us, we compiled the network tables code onto to pi and included in our code. Then you just send the data as with any other code. Here is a wpi screensteps page I found that was helpful.

https://wpilib.screenstepslive.com/s...client-pc-side
Reply With Quote
  #11   Spotlight this post!  
Unread 20-03-2016, 15:39
Bernstern Bernstern is offline
Registered User
FRC #2141 (Spartonics)
Team Role: Programmer
 
Join Date: Nov 2015
Rookie Year: 2015
Location: Clayton
Posts: 30
Bernstern is an unknown quantity at this point
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by jreneew2 View Post
Our team is actually working on that now! Except we are using a raspberry pi. For us, we compiled the network tables code onto to pi and included in our code. Then you just send the data as with any other code. Here is a wpi screensteps page I found that was helpful.

https://wpilib.screenstepslive.com/s...client-pc-side
Thanks a ton, we spent the last week trying to flash our tk1 then trying grip but this may be our answer
__________________
Programmers, a species indigenous to robotics that can convert caffeine into code.
Reply With Quote
  #12   Spotlight this post!  
Unread 20-03-2016, 15:53
waialua359's Avatar
waialua359 waialua359 is offline
Mentor
AKA: Glenn
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Apr 2003
Rookie Year: 2000
Location: Waialua, HI
Posts: 3,297
waialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond repute
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by lethc View Post
Just a heads up, we tried running TowerTracker on a TK1 at Greater Kansas City and spent literally all of Thursday trying to get it to communicate over ethernet. We got the calibration images we needed from the field about 30 seconds before we had to leave. The competition router image disables DHCP, and we hadn't planned for this. To fix it we had to set all of our devices' (Driver station, TK1, RoboRIO) IPs to static which took awhile because we hadn't planned for it.

Basically if you're planning on communication with the Jetson over ethernet make sure you account for the fact that the router competition image is different from the 'home use' image. I really don't want anybody to go through what we went through on Thursday
We went through the same thing as you folks on that Thursday!😬 Spent 3 hours on it!
__________________

2016 Hawaii Regional #1 seed, IDesign, Safety Award
2016 NY Tech Valley Regional Champions, #1 seed, Innovation in Controls Award
2016 Lake Superior Regional Champions, #1 seed, Quality Award, Dean's List
2015 FRC Worlds-Carver Division Champions
2015 Hawaii Regional Champions, #1 seed.
2015 Australia Regional Champions, #2 seed, Engineering Excellence Award
2015 Inland Empire Regional Champions, #1 seed, Industrial Design Award
2014 OZARK Mountain Brawl Champions, #1 seed.
2014 Hawaii Regional Champions, #1 seed, UL Safety Award
2014 Dallas Regional Champions, #1 seed, Engineering Excellence Award
2014 Northern Lights Regional Champions, #1 seed, Entrepreneurship Award
2013 Championship Dean's List Winner
2013 Utah Regional Champion, #1 seed, KP&B Award, Deans List
2013 Boilermaker Regional Champion, #1 seed, Motorola Quality Award
2012 Lone Star Regional Champion, #1 seed, Motorola Quality Award
2012 Hawaii Regional Champions #1 seed, Motorola Quality Award
Reply With Quote
  #13   Spotlight this post!  
Unread 20-03-2016, 16:01
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 195
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by waialua359 View Post
We went through the same thing as you folks on that Thursday!😬 Spent 3 hours on it!
So would you say it is better to set static ips for everything for competition? I have seen conflicting information about static and dynamic ips.

If so, how do you go about setting ips to static on the roborio, raspberry pi etc?
Reply With Quote
  #14   Spotlight this post!  
Unread 20-03-2016, 16:05
waialua359's Avatar
waialua359 waialua359 is offline
Mentor
AKA: Glenn
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Apr 2003
Rookie Year: 2000
Location: Waialua, HI
Posts: 3,297
waialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond reputewaialua359 has a reputation beyond repute
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by jreneew2 View Post
So would you say it is better to set static ips for everything for competition? I have seen conflicting information about static and dynamic ips.

If so, how do you go about setting ips to static on the roborio, raspberry pi etc?
According to the manual, it is not recommended. However, FTA finally said to go ahead and setup using a static IP and gave us a range to work with. I'm not the Control Systems person, but I can tell you that he tried troubleshooting everything to get it to work. It was our only option.
It's worked fine for 2 events already.
__________________

2016 Hawaii Regional #1 seed, IDesign, Safety Award
2016 NY Tech Valley Regional Champions, #1 seed, Innovation in Controls Award
2016 Lake Superior Regional Champions, #1 seed, Quality Award, Dean's List
2015 FRC Worlds-Carver Division Champions
2015 Hawaii Regional Champions, #1 seed.
2015 Australia Regional Champions, #2 seed, Engineering Excellence Award
2015 Inland Empire Regional Champions, #1 seed, Industrial Design Award
2014 OZARK Mountain Brawl Champions, #1 seed.
2014 Hawaii Regional Champions, #1 seed, UL Safety Award
2014 Dallas Regional Champions, #1 seed, Engineering Excellence Award
2014 Northern Lights Regional Champions, #1 seed, Entrepreneurship Award
2013 Championship Dean's List Winner
2013 Utah Regional Champion, #1 seed, KP&B Award, Deans List
2013 Boilermaker Regional Champion, #1 seed, Motorola Quality Award
2012 Lone Star Regional Champion, #1 seed, Motorola Quality Award
2012 Hawaii Regional Champions #1 seed, Motorola Quality Award
Reply With Quote
  #15   Spotlight this post!  
Unread 20-03-2016, 16:53
jkelleyrtp's Avatar
jkelleyrtp jkelleyrtp is offline
Let's just build a robot
AKA: Jon Kelley
FRC #5511 (Cortechs Robotics)
Team Role: Mechanical
 
Join Date: Jul 2015
Rookie Year: 2014
Location: Apex, NC
Posts: 120
jkelleyrtp is a glorious beacon of lightjkelleyrtp is a glorious beacon of lightjkelleyrtp is a glorious beacon of lightjkelleyrtp is a glorious beacon of lightjkelleyrtp is a glorious beacon of lightjkelleyrtp is a glorious beacon of light
Re: Porting Tower Tracker to CPP

Quote:
Originally Posted by waialua359 View Post
According to the manual, it is not recommended. However, FTA finally said to go ahead and setup using a static IP and gave us a range to work with. I'm not the Control Systems person, but I can tell you that he tried troubleshooting everything to get it to work. It was our only option.
It's worked fine for 2 events already.
What range did he give you? I want to make sure ours is good-to-go beforehand so we won't have to debug comms during practice matches.
__________________
Cortechs Robotics 2014-Present
Mechanical, CAD
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 02:05.

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