Go to Post This game is all about dealing with the unexpected and making changes on the fly. - Greg Hainsworth [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-04-2016, 20:55
ckirschner ckirschner is offline
Registered User
FRC #0869
 
Join Date: Jan 2016
Location: New Jersey
Posts: 9
ckirschner is an unknown quantity at this point
Kinect on RoboRIO not showing up as "camX"

I'm trying to use the kinect on the RoboRIO but it is showing up as "USB0" in the NI Web interface instead of "cam0/1/2/3". I have the libfreenect files on the roborio, not sure if this would affect how the RoboRio will see the USB device when it's connected? I need to have it show up as a cam device instead of USB to use it with the camera server. Unless there is a way to use USB device with the camera server.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-04-2016, 21:41
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 162
nickbrickmaster is an unknown quantity at this point
Re: Kinect on RoboRIO not showing up as "camX"

Might be a stupid question, but when you say you have the files on the RIO, does that mean that you have built and installed them, or just have them?

Edit: Are you sure that OpenKinect allows for using the Kinect as a webcam? A cursory glance through the site yields nothing to that end.

Edit 2: Found it: https://openkinect.org/wiki/FAQ#Is_i...rd _webcam.3F

You may have to check the Linux kernel version on the RIO. I don't know what it is offhand.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-

Last edited by nickbrickmaster : 20-04-2016 at 21:47.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-04-2016, 10:24
ckirschner ckirschner is offline
Registered User
FRC #0869
 
Join Date: Jan 2016
Location: New Jersey
Posts: 9
ckirschner is an unknown quantity at this point
Re: Kinect on RoboRIO not showing up as "camX"

I haven't been able to confirm on my own that it can be used as a webcam but I have seen other teams use the Kinect on the 2016 robot and I've seen the images stremed back to the Smart Dashboard. So I would guess it does. I have their code as well and I haven't been successful in getting the data to the dashboard yet.

The files I put on there are the libfreenect.so files. The kinect libraries look for these libraries on the RoboRIO
Reply With Quote
  #4   Spotlight this post!  
Unread 21-04-2016, 12:48
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is offline
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 162
nickbrickmaster is an unknown quantity at this point
Re: Kinect on RoboRIO not showing up as "camX"

The roborio should have a driver for the rgb camera already. Does the video0 device appear when you have the Kinect plugged in?
To check:
Code:
ls /dev | grep video
If so, you can use mjpg-streamer to get a video feed from it.
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #5   Spotlight this post!  
Unread 21-04-2016, 13:18
ckirschner ckirschner is offline
Registered User
FRC #0869
 
Join Date: Jan 2016
Location: New Jersey
Posts: 9
ckirschner is an unknown quantity at this point
Re: Kinect on RoboRIO not showing up as "camX"

I will check that out when I get back in front of the robot.

I really don't even technically need the Kinect to stream back to the dashboard. We have a have a separate webcam that we enable during teleop that the drivers can use. The Kinect is really just supposed to give us positioning help for shooting at the goal. But getting it to the dashboard (which I've seen done) will help us figure out the use of it a bit better.
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 18:45.

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