If I try to start a stream with an index unrelated to a camera, the whole R session crashes.
Is it possible to have a function that lists all possible available indexes?
E.g.:
idxs <- available_indexes()
streams <- lapply(idxs, Rvision::stream)
Or, how can I check if an index will not crash my session; e.g.
idx <- 1234
stream <- if (will_not_crash(idx)) {
Rvision::stream(idx)
} else {
NULL
}
Thank you!
Corrado.
If I try to start a stream with an index unrelated to a camera, the whole R session crashes.
Is it possible to have a function that lists all possible available indexes?
E.g.:
Or, how can I check if an index will not crash my session; e.g.
Thank you!
Corrado.