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

[BUG] Error occurs when running camera.launch.py #599

Open
yemerge opened this issue Sep 26, 2024 · 1 comment
Open

[BUG] Error occurs when running camera.launch.py #599

yemerge opened this issue Sep 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yemerge
Copy link

yemerge commented Sep 26, 2024

Hi!
I am contacting you because an error occurred during execution.

ubuntu : 20.04
ROS : foxy
depthai-ros branch : foxy
opencv : 4.2.0
When running ros2 launch depthai_ros_driver camera.launch.py, the error log below is displayed.

root@user-desktop:~# ros2 launch depthai_ros_driver camera.launch.py
/opt/ros/foxy/bin/ros2:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import load_entry_point
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-09-26-09-27-09-677788-user-desktop-24115
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [robot_state_publisher-1]: process started with pid [24129]
[INFO] [component_container-2]: process started with pid [24131]
[robot_state_publisher-1] Parsing robot urdf xml string.
[robot_state_publisher-1] Link oak had 5 children
[robot_state_publisher-1] Link oak_imu_frame had 0 children
[robot_state_publisher-1] Link oak_left_camera_frame had 1 children
[robot_state_publisher-1] Link oak_left_camera_optical_frame had 0 children
[robot_state_publisher-1] Link oak_model_origin had 0 children
[robot_state_publisher-1] Link oak_rgb_camera_frame had 1 children
[robot_state_publisher-1] Link oak_rgb_camera_optical_frame had 0 children
[robot_state_publisher-1] Link oak_right_camera_frame had 1 children
[robot_state_publisher-1] Link oak_right_camera_optical_frame had 0 children
[robot_state_publisher-1] [INFO] [1727342829.920797137] [oak_state_publisher]: got segment oak
[robot_state_publisher-1] [INFO] [1727342829.920916434] [oak_state_publisher]: got segment oak-d-base-frame
[robot_state_publisher-1] [INFO] [1727342829.920931762] [oak_state_publisher]: got segment oak_imu_frame
[robot_state_publisher-1] [INFO] [1727342829.920939986] [oak_state_publisher]: got segment oak_left_camera_frame
[robot_state_publisher-1] [INFO] [1727342829.920946962] [oak_state_publisher]: got segment oak_left_camera_optical_frame
[robot_state_publisher-1] [INFO] [1727342829.920953458] [oak_state_publisher]: got segment oak_model_origin
[robot_state_publisher-1] [INFO] [1727342829.920959218] [oak_state_publisher]: got segment oak_rgb_camera_frame
[robot_state_publisher-1] [INFO] [1727342829.920964915] [oak_state_publisher]: got segment oak_rgb_camera_optical_frame
[robot_state_publisher-1] [INFO] [1727342829.920970835] [oak_state_publisher]: got segment oak_right_camera_frame
[robot_state_publisher-1] [INFO] [1727342829.920976595] [oak_state_publisher]: got segment oak_right_camera_optical_frame
[component_container-2] [INFO] [1727342830.141695202] [oak_container]: Load Library: /root/dai_ws/install/depthai_ros_driver/lib/libdepthai_ros_driver.so
[component_container-2] [INFO] [1727342830.222270919] [oak_container]: Found class: rclcpp_components::NodeFactoryTemplate<depthai_ros_driver::Camera>
[component_container-2] [INFO] [1727342830.222344072] [oak_container]: Instantiate class: rclcpp_components::NodeFactoryTemplate<depthai_ros_driver::Camera>
[component_container-2] [INFO] [1727342830.229445098] [oak]: No ip/mxid specified, connecting to the next available device.
[component_container-2] [INFO] [1727342832.563486098] [oak]: Camera with MXID: 19443010B16E992E00 and Name: 1.4.2 connected!
[component_container-2] [INFO] [1727342832.565007424] [oak]: USB SPEED: HIGH
[component_container-2] [INFO] [1727342832.615830420] [oak]: Device type: OAK-D-PRO
[component_container-2] [INFO] [1727342832.618918416] [oak]: Pipeline type: RGBD
[component_container-2] [INFO] [1727342832.633488470] [oak]: NN Family: mobilenet
[component_container-2] [INFO] [1727342833.745083756] [oak]: NN input size: 300 x 300. Resizing input image in case of different dimensions.
[component_container-2] [INFO] [1727342834.754160851] [oak]: Finished setting up pipeline.
[component_container-2] [19443010B16E992E00] [1.4.2] [3.638] [ColorCamera(0)] [warning] Unsupported resolution set for detected camera OV9782, needs 800_P or 720_P. Defaulting to 800_P
[component_container-2] [ERROR] [1727342837.653554415] [oak_container]: Component constructor threw an exception: ColorCamera(0) - 'video' width or height (1280, 720) bigger than maximum at current sensor resolution (854, 534)
[ERROR] [launch_ros.actions.load_composable_nodes]: Failed to load node 'oak' of type 'depthai_ros_driver::Camera' in container '/oak_container': Component constructor threw an exception: ColorCamera(0) - 'video' width or height (1280, 720) bigger than maximum at current sensor resolution (854, 534)

@yemerge yemerge added the bug Something isn't working label Sep 26, 2024
@yemerge yemerge changed the title [BUG] {Title of the bug} [BUG] Error occurs when running camera.launch.py Sep 26, 2024
@Serafadam
Copy link
Collaborator

HI, unfortunately Foxy is no longer supported so I would recommend switching to Humble branch. Other than that, setting rgb.i_set_isp_scale: false parameter might help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants