-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Multiple Cameras Python Documentation is Incomplete #2624
Comments
The correct way to install cscore on the roborio is to add it to your pyproject.toml (as mentioned in the docs @ https://docs.wpilib.org/en/stable/docs/software/python/pyproject_toml.html). However, you're right that it probably should be mentioned in the docs somewhere more explicitly. Eventually I want the QuickVision example and other examples to have |
So the documentation says " |
Please review #2625 and see if that addresses your concerns. |
Looks good to me. Thanks for the quick response! |
I was a CSA helping a team at an event this weekend and had a team request for help getting two Microsoft Lifecam HD3000 USB camera streams up on a roboRIO using Python. I managed to get it working after about an hour, but found that this cannot be done with the current steps as written on frc-docs and would be difficult for most people to figure out without prior knowledge of robotpy.
A few things I noted:
CameraServer.startAutomaticCapture(0)
andCameraServer.startAutomaticCapture(1)
to start two cameras). The Python Using Multiple Cameras documentation calls for creating avision.py
file that is then called from the robot code usingwpilib.CameraServer.launch("vision.py:main")
. As a result, you need to download robotpy-cscore and install it on the roboRIO (This isn't currently documented on frc-docs).py -3 -m pip install robotpy
) and must be installed separately withpy -3 -m robotpy installer download robotpy-cscore
and thenpy -3 -m robotpy installer install robotpy-cscore
when connected to the roboRIO. There should be a warning under the Python examples to alert users of this and to direct them to steps on how to install robotpy-cscore on the roboRIO. (The only reference I could find at the time was from a Google search that pointed to the old robotpy-cscore documention, which still needed to be modified).deploy
directory which confused me a bit when reading the Python Using Multiple Cameras documentation, as I was unsure of where to put thevision.py
file. Thevision.py
can just exist on the root directory of the Python project and will get deployed to the robot code automatically when running the default deploy command (py -3 -m robotpy deploy
), which should be noted in the Python vision examples.vision.py
file in the Python Using Multiple Cameras example on the roboRIO v1 will crash with only the error message "exit code 6" in the DriverStation logs (Forgot the exact text). This is a result of memory issues on the roboRIO v1, which is currently only mentioned as an issue here, with the workaround of disabling the NI webserver.The text was updated successfully, but these errors were encountered: