Go to Post I feel like I need to rinse out my brain with drain cleaner - dlavery [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 12-04-2016, 17:00
techbeast34 techbeast34 is offline
Registered User
FRC #4048
 
Join Date: Jan 2014
Location: Westborough, Massachussets
Posts: 6
techbeast34 is an unknown quantity at this point
Using LabVIEW vision with Java code

So our team is trying to use the LabVIEW vision code that our LabVIEW team created, to run alongside our Java code. The problem is, is that when I start the LabVIEW runtime at "/usr/local/natinst/labview/lvrt" on the RoboRIO, this error pops up:


Code:
Can't find library liblvrt.so.15.0
Make sure this library is installed in your LD_LIBRARY_PATH
search path, or in /usr/lib
Now we tried adding the environment variable "LD_LIBRARY_PATH" on the roboRIO to point to liblvrt.so.15.0, but that didn't work. After, we copied liblvrt.so.15.0 to /usr/lib from /usr/local/natinst/labview/, our code did not seem to run upon startup without us manually running frcRunRobot.sh. But after running our code, what's strange is that there was an error for "CPUInformation.cpp" at line 405. Has anyone else here tried this at all? If so, did you come across these errors and how did you get across them?

After some more experimentation, it seems like when you copy liblvrt.so.15.0, the script that continuously runs frcRunRobot.sh gets hung somewhere and stops running until the file is deleted. Also adding the environment variable LD_LIBRARY_PATH to .bashrc (in /home/lvuser) and having it point to liblvrt.so.15.0's directory doesn't work.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-04-2016, 23:18
MikeF1617 MikeF1617 is offline
Registered User
AKA: Michael Fischler
FRC #1124 (UberBots)
Team Role: Programmer
 
Join Date: Sep 2013
Rookie Year: 2013
Location: United States
Posts: 15
MikeF1617 is an unknown quantity at this point
Re: Using LabVIEW vision with Java code

If I understand what you are saying, you are trying to run both LabVIEW and Java code on the robot simultaneously. I am by no means an expert on the roboRIO, but I am pretty sure that is not supported. I assume it is simply not designed to run two programs at once (someone feel free to correct me if I am wrong). However, if you try hard enough, it may be possible, but you would probably have to do some deep digging into what the roboRIO does when handling your vision code and the robot code. I have a feeling that the error isn't because of a reconfiguration, more that it is handling an unexpected situation.

While that does not solve your problem, I'll share what we did this year. I used a LabVIEW dashboard to process vision, connecting directly to an axis IP camera (you would have to stream the USB camera from the roboRIO if you are using the life cam or another USB camera). It runs all the vision code on the driver station laptop, and sends back essential data to the robot about the targets' centers of mass, widths, etc. I haven't had any noticeable issues with latency, since the camera streams straight over the network to the dashboard and then just sends data over NetworkTables to the Java robot code.
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 09:08.

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