Go to Post When I'm hiring an intern "Award Winning VRC Notebook" isn't applicable. But "Award winning technical documentation" sure is. - Andrew Schreiber [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2016, 19:41
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
NetworkTables from GRIP throw an error upon initilization

I have created a GRIP program which identifies reflective tape and have published the network tables. It was when I started to access the tables that I had a problem. I am using the example from the screensteps tutorial, but where I say getTables("GRIP/myContoursReport"), I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: no ntcore in java.library.path. This seems to be unavoidable and I have yet to have any luck fixing it using the VERY few solutions on google. This is the one block to us using GRIP on our robot and it would help greatly. Thanks to anyone who can help, and if anyone needs further information, just ask!
  #2   Spotlight this post!  
Unread 14-01-2016, 21:36
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: NetworkTables from GRIP throw an error upon initilization

Does NetworkTables work at all, not with GRIP? Try making a new robot project and getting some values from NetworkTables.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #3   Spotlight this post!  
Unread 15-01-2016, 08:34
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: NetworkTables from GRIP throw an error upon initilization

I am testing the NetworkTables in an empty robot project, but there is still no success. To see if it is GRIP would that just be the same thing except instead of "GRIP/myContoursReport", I would put the source of another NetworkTable producing thing? If so, what should I use in its place? Lastly, from what I have seen so far, it is a problem with network tables in general because it seems to be a low down error independent of which NetworkTable is being gotten. Thanks for your help!
  #4   Spotlight this post!  
Unread 15-01-2016, 08:50
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by SupremeSteak1 View Post
I am testing the NetworkTables in an empty robot project, but there is still no success. To see if it is GRIP would that just be the same thing except instead of "GRIP/myContoursReport", I would put the source of another NetworkTable producing thing? If so, what should I use in its place? Lastly, from what I have seen so far, it is a problem with network tables in general because it seems to be a low down error independent of which NetworkTable is being gotten. Thanks for your help!
What platform are you attempting to run GRIP on? The unsatisfied link error is happening because the jar you're using does not have a native ntcore binary for your current platform.
  #5   Spotlight this post!  
Unread 15-01-2016, 08:52
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: NetworkTables from GRIP throw an error upon initilization

I am using Windows 10, however come to think of it, this is from the technical preview and I am not sure when the last time I updated was. Could windows 10 be the issue?
  #6   Spotlight this post!  
Unread 15-01-2016, 09:04
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
I doubt it, the same ntcore binary works on 7,8,and 10. That being said, you should definitely update to the final version, there's already been a major update to 10 (back in November). How did you install GRIP?
  #7   Spotlight this post!  
Unread 15-01-2016, 09:50
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: NetworkTables from GRIP throw an error upon initilization

Quote:
Originally Posted by SupremeSteak1 View Post
I am using Windows 10, however come to think of it, this is from the technical preview and I am not sure when the last time I updated was. Could windows 10 be the issue?
Wait, are you running a program on your machine, or on the robot?
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #8   Spotlight this post!  
Unread 15-01-2016, 11:13
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: NetworkTables from GRIP throw an error upon initilization

On my machine.
  #9   Spotlight this post!  
Unread 15-01-2016, 11:14
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: NetworkTables from GRIP throw an error upon initilization

Downloaded the executable or installer, can't remember, from their website and clicked next next next.
  #10   Spotlight this post!  
Unread 15-01-2016, 11:23
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 255
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: NetworkTables from GRIP throw an error upon initilization

In the console window before the UnsatisfiedLinkError you should see a line that starts with "platform:", e.g. "platform: /Linux/amd64/". What does it print on your machine?
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
  #11   Spotlight this post!  
Unread 15-01-2016, 14:35
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: NetworkTables from GRIP throw an error upon initilization

I get /Windows/amd64/
  #12   Spotlight this post!  
Unread 15-01-2016, 15:12
origamitaco origamitaco is offline
Registered User
FRC #4328
 
Join Date: Nov 2015
Location: Richmond, TX
Posts: 35
origamitaco is an unknown quantity at this point
Re: NetworkTables from GRIP throw an error upon initilization

That's funny because when I run GRIP on my Windows 10 machine the Driver Station says linux/amd64. I can't even deploy GRIP to the RIO (errors that I can't solve) so it's running on the laptop for now.
  #13   Spotlight this post!  
Unread 15-01-2016, 16:11
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 255
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: NetworkTables from GRIP throw an error upon initilization

Quote:
Originally Posted by SupremeSteak1 View Post
I get /Windows/amd64/
That should be correct (for a 64-bit JRE). The next debugging step requires looking inside of the .jar file GRIP is loading to make sure the file is actually there. In C:\Users\<name>\AppData\Local\GRIP\app there should be a "core-1.0.0-all.jar" file. If you rename this to end in .zip, you can look inside it with either WinZip or Windows Explorer (if you didn't know, .jar files are just .zip files under the hood). There should be a Windows\amd64\ntcore.dll file inside... if there isn't, that's the issue (with reinstalling GRIP as the probable solution), if there is, I'm not quite sure what the issue is.

Quote:
Originally Posted by origamitaco View Post
That's funny because when I run GRIP on my Windows 10 machine the Driver Station says linux/amd64. I can't even deploy GRIP to the RIO (errors that I can't solve) so it's running on the laptop for now.
Your robot code will print "platform: Linux/arm" to the Driver Station console because it's running on the roboRio (an ARM platform). GRIP, on the other hand, is running on your Windows machine and will print "Windows/amd64" or "Windows/x86" depending on the JRE. You really shouldn't be seeing "Linux/amd64" anywhere with a Windows / roboRio combination.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
  #14   Spotlight this post!  
Unread 15-01-2016, 16:19
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: NetworkTables from GRIP throw an error upon initilization

I actually just found a solution to the problem. I downloaded the 10th file down and linked it as an external jar in eclipse. It completely solved my problem. Thanks for your help as it also solved some other problems I was having!

Here is the download link for the working NetworkTables.jar: http://first.wpi.edu/FRC/roborio/mav....0.0-SNAPSHOT/
Closed Thread


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:00.

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