cameras_list


Overview

This example lists all available cameras on the robot by reading ROS topics that match specific naming patterns.

Execution

To execute the example, use the following command:

python3 cameras_list/ --auto-run

This will automatically launch the application and display the list of available cameras.

Behavior

  • The application initializes and retrieves all active ROS topics.

  • It filters topics related to the robot’s cameras based on predefined naming conventions.

  • The filtered camera names are extracted and logged as available cameras.

  • The application terminates after listing the detected cameras.

Inputs

  • No user input is required; execution is automated.

  • The application reads the ROS topics published in the system.

Outputs

  • A log message displaying the available cameras detected on the robot.

Example Output

During execution, the output logs follow this pattern:

[INFO] [timestamp] [pyraya.cameras_list]: Auto running the app
[INFO] [timestamp] [pyraya.cameras_list]: Cameras available:
[INFO] [timestamp] [pyraya.cameras_list]: - back
[INFO] [timestamp] [pyraya.cameras_list]: - back_ip
[INFO] [timestamp] [pyraya.cameras_list]: - front_ip
[INFO] [timestamp] [pyraya.cameras_list]: - nav_bottom
[INFO] [timestamp] [pyraya.cameras_list]: - nav_top

Key Notes

  • The application dynamically scans all ROS topics to determine camera availability.

  • The filtering logic ensures only relevant camera topics are displayed.

  • The extracted camera names follow the expected naming conventions in the robot’s system.