From 43e23d9b7daa6d17f9cb02d6a7db3535a7308474 Mon Sep 17 00:00:00 2001 From: trivediana Date: Tue, 8 Mar 2022 15:02:37 -0500 Subject: [PATCH] fix cap typo --- vz_ros_wrappers/scripts/grab_D435i.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vz_ros_wrappers/scripts/grab_D435i.py b/vz_ros_wrappers/scripts/grab_D435i.py index c26b4cf..9118c4c 100755 --- a/vz_ros_wrappers/scripts/grab_D435i.py +++ b/vz_ros_wrappers/scripts/grab_D435i.py @@ -35,8 +35,8 @@ class D435i: # initialize ros/cv2 bridge # Note: when testing with your own video, replace with local file - # self.D435i_cap = cv2.VideoCapture('/home/ananya/Downloads/2022-02-09-16-20-58(2).mp4') - self.thermal_cap = cv2.VideoCapture('/dev/video6') + self.D435i_cap = cv2.VideoCapture('/dev/video4') + if not self.D435i_cap.isOpened(): raise(Exception,'Unable to open video stream') self.bridge = CvBridge()