Skip to content

Lists camera indexes #61

@CorradoLanera

Description

@CorradoLanera

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions