Go to Post They can either incorporate the suggestions in this thread, go totally against them, or even make us all write code on banana peels with our fingernails. - Andy Baker [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 Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-02-2015, 18:31
cameronr2980 cameronr2980 is offline
Registered User
FRC #2980
 
Join Date: Feb 2015
Location: Washington State
Posts: 4
cameronr2980 is an unknown quantity at this point
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Hello,
I have been trying to get this program running on an nvidia Jetson TK1 for the past few hours. I can't seem to get some of the dependencies to install. apt comes back with an error saying that every package except for build-essential cannot be located. "Unable to locate package x." I have looked around on the internet for a solution and tried a few but none of them have worked. This may be more of a linux question but does anyone see an easy solution to this? I'm thinking about reflashing linux and trying again.
  #2   Spotlight this post!  
Unread 07-02-2015, 20:15
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

did you try sudo apt-get install libopencv-dev?
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #3   Spotlight this post!  
Unread 07-02-2015, 21:21
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Quote:
Originally Posted by cameronr2980 View Post
Hello,
I have been trying to get this program running on an nvidia Jetson TK1 for the past few hours. I can't seem to get some of the dependencies to install. apt comes back with an error saying that every package except for build-essential cannot be located. "Unable to locate package x." I have looked around on the internet for a solution and tried a few but none of them have worked. This may be more of a linux question but does anyone see an easy solution to this? I'm thinking about reflashing linux and trying again.
Try:
Code:
sudo apt-get update
Apt-get gives those errors all the time when the repos aren't up-to-date. What is the command you are running?

Also, I suggest that you compile OpenCV manually for the Jetson because it supports a crapload more of optimizations than other boards. I don't have a Jetson, but I'm sure that it uses the same repository as the other boards, like the ODROID.
The Jetson has CUDA support, one thing that should used to it's max for it's glory! It'll make your code run just a lot faster!
  #4   Spotlight this post!  
Unread 08-02-2015, 01:27
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

I would love to see the performance of our code on the Jetson. Please someone deliver. I'm willing to thread it and optimize it if someone wants to bench mark it for me.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #5   Spotlight this post!  
Unread 08-02-2015, 13:39
cameronr2980 cameronr2980 is offline
Registered User
FRC #2980
 
Join Date: Feb 2015
Location: Washington State
Posts: 4
cameronr2980 is an unknown quantity at this point
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Quote:
Originally Posted by yash101 View Post
Try:
Code:
sudo apt-get update
Apt-get gives those errors all the time when the repos aren't up-to-date. What is the command you are running?

Also, I suggest that you compile OpenCV manually for the Jetson because it supports a crapload more of optimizations than other boards. I don't have a Jetson, but I'm sure that it uses the same repository as the other boards, like the ODROID.
The Jetson has CUDA support, one thing that should used to it's max for it's glory! It'll make your code run just a lot faster!
I've tried apt-get update and apt-get upgrade, both completed just fine and I still had the same error. I get the error from running:
sudo apt-get install libavcodec-dev
I get the error for a couple more packages too, that is just an example. I think that all the problems i'm having are with open CV so i think i will reflash ubuntu and try again, this time compiling openCV myself.
  #6   Spotlight this post!  
Unread 08-02-2015, 14:35
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Quote:
Originally Posted by cameronr2980 View Post
I've tried apt-get update and apt-get upgrade, both completed just fine and I still had the same error. I get the error from running:
sudo apt-get install libavcodec-dev
I get the error for a couple more packages too, that is just an example. I think that all the problems i'm having are with open CV so i think i will reflash ubuntu and try again, this time compiling openCV myself.
Please try running apt-cache search libavcodec > out.txt and upload out.txt to this forum. That'll search through the repo and possibly output a ton of text! If the package is found, you're golden.
  #7   Spotlight this post!  
Unread 08-02-2015, 18:57
cameronr2980 cameronr2980 is offline
Registered User
FRC #2980
 
Join Date: Feb 2015
Location: Washington State
Posts: 4
cameronr2980 is an unknown quantity at this point
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Quote:
Originally Posted by yash101 View Post
Please try running apt-cache search libavcodec > out.txt and upload out.txt to this forum. That'll search through the repo and possibly output a ton of text! If the package is found, you're golden.
That returns:
"libavcodec-dev - Development files for libavcodec"
as well as several more lines like it describing other packages. I'm really confused now because this means that it found the package, right? But when I use apt-get to try and install it it says it can't be found.

It might be because I'm on the school network now think of it. I'll keep trying.
  #8   Spotlight this post!  
Unread 08-02-2015, 19:03
cameronr2980 cameronr2980 is offline
Registered User
FRC #2980
 
Join Date: Feb 2015
Location: Washington State
Posts: 4
cameronr2980 is an unknown quantity at this point
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Now it found every one of the dependencies no problem. No idea what was wrong but thank you all for the help.
  #9   Spotlight this post!  
Unread 14-02-2015, 15:00
yara92's Avatar
yara92 yara92 is offline
M.Fawdah Mechanical engineering
AKA: Mohamed
FRC #1946 (Mechka Monster)
Team Role: RoboCoach
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 236
yara92 will become famous soon enoughyara92 will become famous soon enough
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

hey everyone,

i have some qustion about using the knicet in auto ,but we can't figure if it is supported by the new wpi code (c++)
__________________
TEAM 1946-Tamra
  #10   Spotlight this post!  
Unread 14-02-2015, 15:05
Christopher149 Christopher149 is offline
Registered User
FRC #0857 (Superior Roboworks) FTC 10723 (SnowBots)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Houghton, MI
Posts: 1,095
Christopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond reputeChristopher149 has a reputation beyond repute
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Quote:
Originally Posted by yara92 View Post
hey everyone,

i have some qustion about using the knicet in auto ,but we can't figure if it is supported by the new wpi code (c++)
On the robot, or the driver station? Because if driver station, keep in mind rule G21:
Quote:
During AUTO, DRIVE TEAMS must not directly or indirectly interact with ROBOTS or OPERATOR CONSOLES.
VIOLATION: FOUL and YELLOW CARD

FIRST salutes the creative and innovative ways in which Teams have interacted with their ROBOTS during AUTO in previous seasons, making the AUTO period more of a hybrid period due to indirect interaction with the OPERATOR CONSOLE. The RECYCLE RUSH AUTO Period, however, is meant to be truly autonomous and ROBOT or OPERATOR CONSOLE interaction (such as through webcam or Kinect™) are prohibited.
emphasis mine
__________________
2015-present: FTC 10723 mentor
2012-present: 857 mentor
2008-2011: 857 student

2015: Industrial Design, Excellence in Engineering, District Finalist, Archimedes Division (#6 alliance captain)
2014: Judges Award, District Engineering Inspiration, District Finalist, Galileo Division

  #11   Spotlight this post!  
Unread 14-02-2015, 16:31
yara92's Avatar
yara92 yara92 is offline
M.Fawdah Mechanical engineering
AKA: Mohamed
FRC #1946 (Mechka Monster)
Team Role: RoboCoach
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 236
yara92 will become famous soon enoughyara92 will become famous soon enough
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Quote:
Originally Posted by Christopher149 View Post
On the robot, or the driver station? Because if driver station, keep in mind rule G21:

emphasis mine
we mean to use the Kinect as 3D camera
__________________
TEAM 1946-Tamra
  #12   Spotlight this post!  
Unread 14-02-2015, 16:37
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

you have to utilize the libfreenect library in order to interface with the kinect. If you go to our code, cmastudios made grabbing the rgb, ir, and depth map from the kinect into one line of code.

https://github.com/rr1706/vision2015/tree/master/lib the files are free.cpp and free.hpp.

The rgb image is obviously in color (RGB), the ir is in grayscale, and the depth is an interesting type of image, it is grayscale where pixel values are a representation of depth.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #13   Spotlight this post!  
Unread 25-02-2015, 09:42
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 145
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Thanks for sharing this. I did get your solution working on a Nvidia Jetson board yesterday.
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
  #14   Spotlight this post!  
Unread 25-02-2015, 14:15
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

I have been stuck on a time consuming project in the lab so I haven't had time to configure it for the jetson board laying on the table next to me. I just stare at it with desire....

How'd it do? On the odroid, we get manageable fps, but it is rather laggy compared to our vision programs in the past that were hitting 30fps.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #15   Spotlight this post!  
Unread 08-02-2015, 18:35
cmastudios's Avatar
cmastudios cmastudios is offline
Registered User
AKA: Connor Monahan
FRC #1706 (Ratchet Rockers)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Missouri
Posts: 10
cmastudios is an unknown quantity at this point
Re: 1706 Vision Solution: Tracking totes in depth-map, color, and infrared

Quote:
Originally Posted by cameronr2980 View Post
I've tried apt-get update and apt-get upgrade, both completed just fine and I still had the same error. I get the error from running:
sudo apt-get install libavcodec-dev
I get the error for a couple more packages too, that is just an example. I think that all the problems i'm having are with open CV so i think i will reflash ubuntu and try again, this time compiling openCV myself.
It could be a factor of the repositories you have enabled... check /etc/apt/sources.list
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 08: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