![]() |
Recording with the Camera
Our team was curious on whether or not the 2009 robot's camera could record while it was on to either a TV tape or computer wirlessly, using Wind River. If it is possible, we were wondering on how we would go about doing this. If it is not possible to do it wirelessly is it possible to do it hooked up with ethernet cord, and tether? TY for any help! :]
|
Re: Recording with the Camera
Quote:
-RC |
Re: Recording with the Camera
I know for a fact that one of the martian teams used the camera to record "video" (couple of pictures per second), and reviewed it after each match. As to whether the "video" was stored on the robot (and downloaded after the match), or recorded on a laptop during the match, I don't know.
|
Re: Recording with the Camera
Doesn't the default LabVIEW Dashboard (for the Driver Station "display") show real-time video (regardless of whether you're using LabVIEW or C on the cRIO)? You should be able to modify the LabVIEW Dashboard to store the images and somehow stitch them together later on.
|
Re: Recording with the Camera
The simplest way to record camera video is to stream it to a computer and use a motion screen capture utility to grab it. At competitons, or situations where streaming video back to PC is impractical, you can also use the "image write" function to record each frame as a sperate image to the cRIO's flash, and then FTP into it and use a program to batch-convert the images into a video.
|
Re: Recording with the Camera
Quote:
NOTE: yes I then did try the Dashboard with the robot on LabVIEW code, and it would show on my laptop. However, our team would like to keep it in Wind River, so we can still have all the functions that the robot does, instead of re-imaging to LabVIEW, and only having the default operations. Quote:
|
Re: Recording with the Camera
Quote:
|
Re: Recording with the Camera
Quote:
|
Re: Recording with the Camera
The PCVideoServer class sends images on a C++ cRIO back to the dashboard. The LV framework had the equivalent code in by default, but because of deadlines, it needed to be added to the C++ code.
Once the images are send to the dashboard, you can modify the LV dashboard code to take the jpgs and add them to an AVI using the vision VIs on the PC. I'm not at a PC, but I suspect there is an AVI building example if you search for it. Greg McKaskle |
Re: Recording with the Camera
Well thank you for all the input on the topic, unfortunately we can't test it tomorrow because we are in the midst of looking for our dongle, and we are using it this Thursday (that is the camera recording thing), so I have to program or do whatever to make it work all in my head for our presentation on that day, so I have no trial and error leeway (this is to get a team started in FLL).:yikes:
|
Re: Recording with the Camera
Quote:
"Image write" is one of the more obscure FRC vision functions that lets you store an Image object acquired from the camera to a file on flash(you can read more about it in the vision api docs) FTP stands for File Transfer Protocol. which, as you might expect, is a system for transferring files between computers. the cRIO can act as an FTP server, meaning that it allows a remote computer to accsess it's internal flash memory. This means that if you use the image write function to record frames, you can use FTP to retrieve the images from the cRIO's memory and animate them. |
Re: Recording with the Camera
1318 did some recording, but how/when/with what, you'll have to contact username darkmessenger88 directly (he's the programmer).
http://www.chiefdelphi.com/forums/showpost.php?p=853549 |
Re: Recording with the Camera
BTW, I think I forgot to mention that we wanted to record while in teleop mode, I don't think it would make a difference, but can the recording only work in autonomous, or both autonomous and teleop??
|
Re: Recording with the Camera
The mode has no effect.
Greg McKaskle |
Re: Recording with the Camera
Okay I'm not sure about this code in the PCVideoServer, so if you could give it a glance over tell me any fixes that are apparent to you, it would be great. :]
NOTE: Look for the line: //----------------------INSERTED CAMERA CODE---------------------- Those are the places I put the camera code, I put it in 3 times: Once outside my infinite while loop [used for a momentary switch], and two times in the infinite while loop once when the button state of the trigger = 1 and once when the button state of the trigger = 0. Please look at the insertion points, and tell me of any corrections that need to be made. [Side Note: I just copied the code out of RobotMain() in the CamertoDashboardExample. Code:
#include "WPILib.h" |
| All times are GMT -5. The time now is 22:55. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi