Changes between Version 5 and Version 6 of ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras
- Timestamp:
- Nov 15, 2019, 10:56:24 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras
v5 v6 2 2 **Camera Feed Display** 3 3 4 Cameras are crucial to competitions due to their ability to 4 Cameras are crucial to competitions since many parts of the field are not directly visible to the driver. 5 You can read about how to use the [https://first.wpi.edu/FRC/roborio/beta/docs/java/edu/wpi/first/wpilibj/CameraServer.html CameraServer] class on [https://wpilib.screenstepslive.com/s/currentCS/m/vision/l/669166-using-the-cameraserver-on-the-roborio ScreenStepsLive]. 5 6 6 7 1. Open FRC VSCode … … 18 19 }}} 19 20 20 5. To display the camera feed, we'll need shuffleboard. Read about it here: 21 https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/814689-tour-of-shuffleboard 21 You can see the complete Robot.java code [wiki:ControlSystems/SoftwareTeam/Training/GettingStarted/Cameras/ExampleCode1 here] 22 23 5. You can view the camera video in the smart dashboard or on the shuffleboard. 24 1. To view the camera feed on the smart dashboard, use the pull-down chooser in the lower left 25 corner to select USB Camera 0. 26 1. To display the camera feed using shuffleboard, read about it here: 27 https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/814689-tour-of-shuffleboard 22 28 23 29 Smartdashboard and shuffleboard can be used interchangeably, however,shuffleboard is far more user friendly and visually appealing. … … 26 32 https://wpilib.screenstepslive.com/s/currentCS/m/shuffleboard/l/831042-displaying-camera-streams 27 33 28 29 34 It's often desirable for a robot to have more than one camera; the camera server supports this and you can select cameras using a game controller button or even automatically when the robot changes direction. You can read about multiple camera selection [https://wpilib.screenstepslive.com/s/currentCS/m/vision/l/708159-using-multiple-cameras here]