Coder Social home page Coder Social logo

Comments (41)

saching13 avatar saching13 commented on August 16, 2024 1

got it Thanks.
Can you try roslaunch depthai_examples stereo_inertial_node.launch mxId:=<Device ID> and share the error ?

from depthai-ros-examples.

hamzaMahdi avatar hamzaMahdi commented on August 16, 2024 1

I tried setting the environment variable but it resulted in the same output in addition to throwing a warning about the new watchdog delay

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024 1

@saching13 @Luxonis-Brandon I am having the same problem with oak-d-poe. I can run demo script without any issue, but I try to run it from ros side, it first can see the MXID and lists the id under available devices, but then it kills itself and says


what(): Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND```

Sorry for the issue. Will get back in a while.

from depthai-ros-examples.

samialperen avatar samialperen commented on August 16, 2024 1

Sure! I shared a detailed description here too: luxonis/depthai#753 (comment)

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

Sorry about the trouble. Will ask and circle back.

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024

@David9696 which version of depthai-core (C++) is installed ?

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

Hi,

I didn't install the depthai-core explicitly.

I just use the following script:

sudo wget -qO- https://raw.githubusercontent.com/luxonis/depthai-ros/main/install_dependencies.sh | sudo bash

I think should be v2.17.1

from depthai-ros-examples.

hamzaMahdi avatar hamzaMahdi commented on August 16, 2024

Setting the mxId manually yields the same error message.

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

Hi @saching13 ,

I got the same error as follow:

terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

Separately, I have tried this ros package with my oak-d poe. It is working fine. I think this package could not supporting oak-d-pro w poe.

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

Thanks and sorry for the trouble. Checking.

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024

Separately, I have tried this ros package with my oak-d poe. It is working fine. I think this package could not supporting oak-d-pro w poe.

Interesting. Thanks for the info.

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024

Can you also try exporting the following environment variables ?

DEPTHAI_WATCHDOG_INITIAL_DELAY=40000
DEPTHAI_BOOTUP_TIMEOUT=40000

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024

Thanks alot for testing. Really Sorry for the issue. Will get back with more debug.

In the mean time can you change those above environment variables to 60000 and try it ?
And also add DEPTHAI_LEVEL=debug roslaunch depthai_examples stereo_inertial_node.launch and share the logs please ?

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

Also would you mind shooting an email to [email protected]? We'd like to send you equipment that should help to debug what is going wrong here.

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

DEPTHAI_LEVEL=debug

Hi @saching13

I have gotten the same error in the log. I have hidden my device id in the log. The required logs are listed as follows:

[2022-07-23 20:11:22.302] [debug] Library information - version: 2.17.1, commit: c455d09d330bb318211d57690fa9188bfd499640 from 2022-07-19 00:24:11 +0300, build: 2022-07-21 09:51:58 +0000
[2022-07-23 20:11:22.303] [debug] Initialize - finished
[2022-07-23 20:11:22.461] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.19.tar.xz' open: 3ms, archive read: 153ms
Listing available devices...
Device Mx ID:********************
[2022-07-23 20:11:22.736] [debug] Device - OpenVINO version: 2022.1
[2022-07-23 20:11:22.736] [debug] Environment 'DEPTHAI_WATCHDOG_INITIAL_DELAY' set to '60000'
[2022-07-23 20:11:22.736] [warning] Watchdog initial delay set to 60000ms
[2022-07-23 20:11:22.737] [debug] Device - BoardConfig: {"emmc":null,"gpio":[],"logPath":null,"logSizeMax":null,"logVerbosity":null,"network":{"mtu":0,"xlinkTcpNoDelay":true},"pcieInternalClock":null,"sysctl":[],"uart":[],"usb":{"flashBootedPid":63037,"flashBootedVid":999,"maxSpeed":4,"pid":63035,"vid":999},"usb3PhyInternalClock":null,"watchdogInitialDelayMs":60000,"watchdogTimeoutMs":null}
libnop:
0000: b9 0d b9 05 81 e7 03 81 3b f6 81 e7 03 81 3d f6 04 b9 02 00 01 ba 00 be 81 60 ea bb 00 bb 00 be
0020: be be be be be
[2022-07-23 20:11:23.046] [debug] Resources - Archive 'depthai-device-fwp-06e791bb9f6cefc968889a7ae7918ed0ff49e897.tar.xz' open: 4ms, archive read: 738ms
[2022-07-23 20:11:23.105] [debug] Environment 'DEPTHAI_BOOTUP_TIMEOUT' set to '60000'
[2022-07-23 20:11:23.105] [debug] Searching for device: DeviceInfo(name=, mxid= , X_LINK_BOOTLOADER, X_LINK_TCP_IP, X_LINK_MYRIAD_X, X_LINK_SUCCESS)
[2022-07-23 20:11:23.124] [debug] Connected bootloader version 0.0.18+c555ac2fb184b801291c95f7f73d23bf4dd42cf1
[2022-07-23 20:11:23.124] [info] New bootloader version available. Device has: 0.0.18+c555ac2fb184b801291c95f7f73d23bf4dd42cf1, available: 0.0.19
[2022-07-23 20:11:23.995] [debug] Booting FW with Bootloader. Version 0.0.18+c555ac2fb184b801291c95f7f73d23bf4dd42cf1, Time taken: 871ms
[2022-07-23 20:11:23.995] [debug] DeviceBootloader about to be closed...
[2022-07-23 20:11:23.996] [debug] XLinkResetRemote of linkId: (0)
[2022-07-23 20:11:24.702] [debug] DeviceBootloader closed, 706
[2022-07-23 20:11:24.710] [debug] Searching for device: DeviceInfo(name=, mxid=*************** , X_LINK_BOOTED, X_LINK_TCP_IP, X_LINK_MYRIAD_X, X_LINK_SUCCESS)
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

Also would you mind shooting an email to [email protected]? We'd like to send you equipment that should help to debug what is going wrong here.

Hi @Luxonis-Brandon,

I have sent an email to support. Please check.

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

Thanks. Will do.

from depthai-ros-examples.

samialperen avatar samialperen commented on August 16, 2024

@saching13 @Luxonis-Brandon I am having the same problem with oak-d-poe. I can run demo script without any issue, but I try to run it from ros side, it first can see the MXID and lists the id under available devices, but then it kills itself and says

what(): Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND```

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024

Can you install depthaai-core of version 2.17.0.0 and try ? [ I testeed on OAK-D-Pro-Poe and had issues with 2.17.1.0. but worked with 2.17.0.0

Here are the steps.

  1. clone depthai-core
  2. cd depthai-core
  3. git checkout v2.17.0
  4. cmake -H. -Bbuild -DBUILD_SHARED_LIBS=ON
  5. cmake --build build --target install
  6. go to ros workspace
  7. catkin_make --cmake-args -D depthai_DIR=<PATH TO DEPTHAI-CORE>depthai-core/build/install/lib/cmake/depthai

Let me know if this helps.

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024

OAK-D-W-PoE on 2.17.0.0
image

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

Can you install depthaai-core of version 2.17.0.0 and try ? [ I testeed on OAK-D-Pro-Poe and had issues with 2.17.1.0. but worked with 2.17.0.0

Here are the steps.

  1. clone depthai-core
  2. cd depthai-core
  3. git checkout v2.17.0
  4. cmake -H. -Bbuild -DBUILD_SHARED_LIBS=ON
  5. cmake --build build --target install
  6. go to ros workspace
  7. catkin_make --cmake-args -D depthai_DIR=<PATH TO DEPTHAI-CORE>depthai-core/build/install/lib/cmake/depthai

Let me know if this helps.

Hi @saching13 ,

No it didn't work. Anything else that I can try?

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

OAK-D-W-PoE on 2.17.0.0 image

Can you share you launch file for OAK-D-W-PoE?

Also, can you try with OAK-D Pro W POE ?

Thanks.

from depthai-ros-examples.

saching13 avatar saching13 commented on August 16, 2024

No it didn't work. Anything else that I can try?

Was the error same ? Can you share some details ?

Can you share you launch file for OAK-D-W-PoE?

there is no specific different launch file. roslaunch depthai_examples stereo_inertial_node.launch should work.

Also, can you try with OAK-D Pro W POE ?

I don't have one at hand as of now. But will do. @daxoft can you check once you receive yours ?

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

We're checking. Sorry about delay here.

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

Hi @saching13,

Yes, I got the same error as follows:

terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

FYI, initially, my oak-d-pro-w poe was not working with depthai_demo.py. After downgraded the depthai to v3.1.0, it is working now.

luxonis/depthai#751 (comment)

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

We're checking. Sorry about delay here.

hi @Luxonis-Brandon,

I have sent an email to [email protected]. However, up to date, I haven't received any reply from [email protected] .

from depthai-ros-examples.

daxoft avatar daxoft commented on August 16, 2024

Also, can you try with OAK-D Pro W POE ?

I don't have one at hand as of now. But will do. @daxoft can you check once you receive yours ?

@saching13 Sure, I still didn't get mine, I tried with OAK-D-PRO-PoE-FF (NG9097 R2M2E2) and it worked with depthai 2.17.0.0 (not with 2.17.1.0, like in your case); depthai-demo and examples from depthai-python worked with 2.17.1

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

We're checking. Sorry about delay here.

hi @Luxonis-Brandon,

I have sent an email to [email protected]. However, up to date, I haven't received any reply from [email protected] .

Sorry about the trouble. I’m asking what’s going on here.

Could you please shoot me an email at Brandon at Luxonis dot com as well? That way if for some reason your email is being blocked by the support system’s SPAM filter I can get around it?

from depthai-ros-examples.

cafemoloko avatar cafemoloko commented on August 16, 2024

@David9696 - sorry about the delay, I've just replied to your email

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

We're checking. Sorry about delay here.

hi @Luxonis-Brandon,
I have sent an email to [email protected]. However, up to date, I haven't received any reply from [email protected] .

Sorry about the trouble. I’m asking what’s going on here.

Could you please shoot me an email at Brandon at Luxonis dot com as well? That way if for some reason your email is being blocked by the support system’s SPAM filter I can get around it?

Hi @Luxonis-Brandon,

I would keep you in CC loop.

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

@David9696 - sorry about the delay, I've just replied to your email

Hi @cafemoloko ,

Well received.

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

Thanks, both. And sorry again about all the trouble here @David9696 . We're reviewing and changing many processes to make the layers of failure here not happen again.

from depthai-ros-examples.

hamzaMahdi avatar hamzaMahdi commented on August 16, 2024

compiling and using 2.17.0 worked.

I had to download the release since the branch doesnt seem to be up on the repository: https://github.com/luxonis/depthai-core/releases/tag/v2.17.0
I downloaded the depthai-core-v2.17.0.tar.gz file and unziped it.
then:

cmake -H. -Bbuild -DBUILD_SHARED_LIBS=ON
cmake --build build --target **install**

After, i catkin_make with the custom directory to depthai:
catkin_make --cmake-args "-D depthai_DIR=<PATH TO DEPTHAI-CORE>depthai-core/build/install/lib/cmake/depthai"

It's important to note the "" around the cmake argument starting at -D
Thanks!

from depthai-ros-examples.

samialperen avatar samialperen commented on August 16, 2024

@hamzaMahdi , verified! It works with Oak-D-PoE.

from depthai-ros-examples.

hamzaMahdi avatar hamzaMahdi commented on August 16, 2024

However, if i try with USB C, it does not work. I opened the PoE encolsure and set pins 2,4,5 to up and the rest to down, then ocnnected usb c. Still getting the XLink error

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

Hi @hamzaMahdi ,

Sorry about the problem. So to summarize, PoE on the PoE unit works, but when trying to use USB instead, it doesn't work?

If so, one thing to keep in mind is some hosts get confused about USB2 over USB3C cables. And so forcing USB2 mode may be in order.

But on that, are you wanting to use the PoE camera as a USB camera device? Or are you doing USB just for debugging?

Thanks,
Brandon

from depthai-ros-examples.

hamzaMahdi avatar hamzaMahdi commented on August 16, 2024

You are correct. PoE worked once I reverted the depthai-core to 2.17.0
I just wanted to plug in the USB for debugging. I was using a USB3 port

from depthai-ros-examples.

Luxonis-Brandon avatar Luxonis-Brandon commented on August 16, 2024

Thanks. So in this case it may be just the case of needing for force USB2 connection (as the PoE series only has USB2 internally).

https://docs.luxonis.com/en/latest/pages/troubleshooting/#forcing-usb2-communication

from depthai-ros-examples.

David9696 avatar David9696 commented on August 16, 2024

I have updated the depthai-core to 2.17.2. The camera is working in ROS.

However, when displaying pointcloud in rviz, there are some noise(at about 50cm in front of the camera) when the camera is facing a wall(at about 1m away). Is it meant that the calibration is not good?

from depthai-ros-examples.

snwu1996 avatar snwu1996 commented on August 16, 2024

Recently got a OAK-D W POE. I tried using depthai-core 2.17.0 and roslaunch depthai_examples stereo_inertial_node.launch which was able to run but it only published 1 image and then stopped publishing. Sometimes it wouldn't publish any images at all. However, IMU data was still publishing properly. To fix this I upgraded depthai-core to version 2.19.0 and everything seems to work fine.

from depthai-ros-examples.

danilo-pejovic avatar danilo-pejovic commented on August 16, 2024

We will be using this repository to present some use cases for our ROS nodes that we develop over time. Since this issue seems resolved I will be closing it - feel free to let me know if you are still encountering this issue and we can move that conversation to depthai-ros repo.

from depthai-ros-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.