|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
Glad to hear it helped!
Can I ask, which model of camera are you using: the 206 or M1011? |
|
#17
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
Quote:
Please let me know if you encounter any problems. |
|
#18
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
2 Questions.
1) My team just wants video feed from the camera back to the driver station. Can I do this without the default RobotPy or do I have to apply all of the fixes discussed in this thread and build from source? 2) I'm not sure which camera we have. I recognize it from the picture in the KoP list, but the description says: "Camera, Axis M1011 206 color camera..." So, is it the M1011 or the 206? |
|
#19
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
Quote:
1) If you just want video back to the driver station, there is a new option this year of plugging the camera directly into the network bridge on the robot (bypassing the cRIO). I understand this requires Dashboard changes, and the camera config is a little different. There are threads here on CD about that, though I can't help more than that, since we are not pursuing that solution. If you follow the 'traditional' solution, plugging the camera in the cRIO, and doing the vision.AxisCamera.GetInstance() to start the video feed to the Dashboard, I will tell you that we had problems doing even that much with the M1011 in either C++ or any version of RobotPy. Quite a few times the feed would work, many times it would not, and we could never change the camera parameters through the software. But the patch fixed all that. You can apply the proposed patch mentioned in this thread to either RobotPy 2011.2 or the latest RobotPy from the git repository, and though you will have to 'build it yourself', I believe the result will be a more reliable and configurable video feed. |
|
#20
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
Quote:
Can maybe anybody briefly explain the steps that we have to do to get our camera running? Its an Axis 206 camera. |
|
#21
|
||||
|
||||
|
Re: Anyone successful with camera in RobotPy?
two methods:
one: Code:
import vision camera_obj = vision.PCVideoServer() Code:
import vision camera_obj = vision.AxisCamera.GetInstance() |
|
#22
|
||||
|
||||
|
Re: Anyone successful with camera in RobotPy?
When ever I plug the Camera into the c-rio An error and enable the robot, we would get a live feed from the camera for like 4 seconds and then for some reason the robot would disconnect from the Driverstation and an error would show up on Windriver saying:
Code:
Target Exception: VxWorks6x_10.3.69.2: Exception in Kernal Task FRC_paramTask:0x231b5b0 at pc=0x198F84 Vector 0x300 : Data Access addr=0x6D5FE50E status=0x3E8 The System has been stopped. Do you want to attach the debugger now? |
|
#23
|
||||
|
||||
|
Re: Anyone successful with camera in RobotPy?
Quote:
|
|
#24
|
||||
|
||||
|
Re: Anyone successful with camera in RobotPy?
Quote:
this is the code that I have for it right now: Code:
Class
AxisCamera *camera;
Operator control(void)
HSLImage image; //Creates an image
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCamera::kResolution_640x480);
camera.WriteCompression(20);
camera.WriteBrightness(0);
Last edited by krudeboy51 : 02-03-2011 at 18:42. |
|
#25
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
Have you attached the WindRiver Workbench debugger when running your code so that you can trap the exception and potentially get a call stack to give us a better idea where to look?
|
|
#26
|
||||
|
||||
|
Re: Anyone successful with camera in RobotPy?
Yes I have over three times now but it wont connect back to the driverstation at all only when I restart and when I restart the same error pop up and I attach the debugger over and over but still the same problem
|
|
#27
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
Quote:
Please post the call stack here. |
|
#28
|
||||
|
||||
|
Re: Anyone successful with camera in RobotPy?
wats that? when I click the attach debbugger it shows a loading page then closes out when complete
Last edited by krudeboy51 : 02-03-2011 at 18:54. |
|
#29
|
|||
|
|||
|
Re: Anyone successful with camera in RobotPy?
So you don't ever get the debugger to stop when the exception occurs? It sounds like you are attaching the debugger in response to a crash. Try attaching the debugger to the running python interpreter before you do whatever instigates the crash or start the python interpreter using the debugger. When the exception occurs, you should be able to open the stack view. That would be the first helpful piece of information in tracking down the issue.
|
|
#30
|
||||
|
||||
|
Re: Anyone successful with camera in RobotPy?
Quote:
Quote:
Code:
Error reading context-sensitive help file /"com.windriver.ide.doc.wr_vx_simulator_6.3/wr_workbench_diagnostics_programmers_guide_1.1/html/contexts.xml" (skipping file) Last edited by krudeboy51 : 02-03-2011 at 19:42. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|