|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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)?
|
|
#2
|
||||
|
||||
|
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. |
|
#3
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
Quote:
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 ![]() |
|
#4
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
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.
|
|
#5
|
|||
|
|||
|
Re: Porting Tower Tracker to CPP
Quote:
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. |
|
#6
|
||||
|
||||
|
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?
|
|
#7
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
Quote:
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) |
|
#8
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
Ok thanks!
|
|
#9
|
|||
|
|||
|
Re: Porting Tower Tracker to CPP
Quote:
-Freshmen ![]() |
|
#10
|
||||
|
||||
|
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 |
|
#11
|
|||
|
|||
|
Re: Porting Tower Tracker to CPP
Quote:
![]() |
|
#12
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
Quote:
|
|
#13
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
Quote:
If so, how do you go about setting ips to static on the roborio, raspberry pi etc? |
|
#14
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
Quote:
It's worked fine for 2 events already. |
|
#15
|
||||
|
||||
|
Re: Porting Tower Tracker to CPP
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|