Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Device or resource busy Error #177

Open
guni9191 opened this issue Oct 19, 2021 · 0 comments
Open

Device or resource busy Error #177

guni9191 opened this issue Oct 19, 2021 · 0 comments

Comments

@guni9191
Copy link

Environment:
Ros2 dashing
Ubuntu 18.04LTS
Realsense D435i

  1. At first I installed binary package and sometimes get errors like this:
    what(): get_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: Device or resource busy

  2. To access the source code I have built this from source. In realsense_camera_node.cpp, inside onInit() function, I have added sleep_for after setupDevice() and setupPublishers(). It seems like the setup process is somehow too fast for the hardware.

virtual void onInit() { getParameters(); setupDevice(); rclcpp::sleep_for(std::chrono::nanoseconds(2000000000)); setupPublishers(); rclcpp::sleep_for(std::chrono::nanoseconds(2000000000)); setupStreams(); rclcpp::sleep_for(std::chrono::nanoseconds(2000000000)); timer_ = this->create_wall_timer(std::chrono::seconds(1), std::bind(&RealSenseCameraNode::publishStaticTransforms, this)); RCLCPP_INFO(logger_, "RealSense Node Is Up!"); }

And it does not produce error. This is only a temporary fix for me. Hope that this bug is fixed soon :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant