Skip to content
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

[WIP] [Don't Merge] Fix rs launch read me #2958

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions realsense2_camera/test/utils/pytest_live_camera_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,27 @@ def get_camera_capabilities_short(device_type, serial_no=None):
if serial_no in line:
print(device_type + " with serial_no " + serial_no +" found in " + line)
return
print(device_type + " not found")
print(device_type + " #### Deepak not found")

def check_if_camera_connected(device_type, serial_no=None):
long_data = os.popen("rs-enumerate-devices -s").read().splitlines()
print ("long_data")
print (long_data)
print (device_type)
print(type(device_type))
debug_print(serial_no)
index = 0
for index in range(len(long_data)):
print ("name_line")
name_line = long_data[index].split()
print (name_line)
print(type(name_line))
if name_line[0] != "Intel":
continue
if name_line[2] != device_type:
print (''.join(name_line[2]))
if device_type not in ''.join(name_line[2]) :
#if name_line[2] != device_type:
print ("NOT FOUND !!!!!!!!")
continue
if serial_no == None:
return True
Expand Down
Loading