shAhn

  • 3 days ago
  • Joined Nov 6, 2024
  • 0 best answers
  • Hello, I have a question. I am using OAK-D Pro.

    I am using a custom Python example code from Spatial tiny yolo.
    (https://docs.luxonis.com/software/depthai/examples/spatial_tiny_yolo/)
    I have placed the camera at a height of 2.5m tilted about 20 degrees. I am wondering when the camera detects a person in this situation and measures the DEPTH.

    I would like to know if I measure at 10m OR higher than 10m when the camera and person are 10m apart as shown in the figure below.

    If you have an EXAMPLE DOCUMENT related to this, please let me know.

    Thank you.

      Hi, I'm using OAK-D Pro PoE with ROS2 Humble

      $$
      git clone https://github.com/luxonis/depthai-ros.git
      colcon build

      ros2 launch depthai_ros_driver camera.launch.py
      $$

      I ran rviz2, ros2 run rqt_image_view rqt_image_view and the camera screen came out fine.

      but, when i change camera.yaml rgb: i_low_bandwidth: true

      This error doesn't happen in the depthai-ros package, which I git cloned in November, so I'm guessing it's in the latest version, is there a solution?

      Here is my camera.yaml file

      $$
      /**:
      ros__parameters:
      camera:
      i_enable_imu: true
      i_enable_ir: true
      i_nn_type: rgb
      i_pipeline_type: RGB
      nn:
      i_nn_config_path: depthai_ros_driver/yolo
      rgb:
      i_low_bandwidth: true

      $$

        I'm using ros2 humble and oak-d PRO PoE.

        When I turn on the camera with ros2 launch depthai_ros_driver camera.launch.py, I get the /oak/nn/spatial_detections topic, and I want to visualize this topic as a bounding box. Is there any code for this?

      • Luxonis-Adam
        I changed it to stereo.i_subpixel: false, but the VideoEncoder error is still not resolved.
        Can I ignore this error and use the camera?

        1. Yes, I source the workspace after rebuilding

        2. Here is my Debug logs(camera_launch_log.txt)
          SeokHyunAhn/Hello-Worldblob/main/camera_launch_log.txt

        3. Here is my camera.yaml
          /**:

          ros__parameters:

          camera:

          i_enable_imu: true

          i_enable_ir: true

          i_mx_id: "1844301021D1C31200"

          i_nn_type: spatial

          i_pipeline_type: RGBD

          nn:

          i_nn_config_path: depthai_ros_driver/yolo

          rgb:

          i_low_bandwidth: true

          left:

          i_low_bandwidth: true

          right:

          i_low_bandwidth: true

          stereo:

          i_low_bandwidth: true

      • Hi @Luxonis-Adam
        I found a topic on github related to this issue.
        luxonis/depthai-ros624
        So I update my repo but, I think VideoEncoder Error is not yet fixed.

        Is this issue fixed? Or should I wait a little longer?

      • Hi I'm using OAK-D Pro PoE with ROS2 Humble

        When I ran the code “ros2 launch depthai_ros_driver camera.launch.py”, I saw that the hz of the topic was 2-5, so I modified the camera.yaml as below.

        /**: ros__parameters: camera: i_enable_imu: true i_enable_ir: true i_nn_type: spatial i_pipeline_type: RGB nn: i_nn_config_path: depthai_ros_driver/yolo rgb: i_low_bandwidth: true left: i_low_bandwidth: true right: i_low_bandwidth: true stereo: i_low_bandwidth: true

        And it worked

        But, when i change i_pipeline_type to RGBD
        Arrived frame type (14) is not either NV12 or YUV400p (8-bit Gray) error occured.

        So, I tried to fix this error by add stereo: i_subpixel = false.
        (Here is the reference luxonis/depthai-rosissues/529)

        But it didn't work

        Please Help me

        • Hello.

          I have some issues to use OAK-*D Pro PoE When I ran the python example, the fps was very low. These issues were even worse when using ROS2 Humble.

          So, I used PoE test script(poe_test.py) and found that speed is 100

          https://github.com/luxonis/depthai-experiments/tree/master/random-scripts

          I tried to fix this problem but it didn’t work.

          If your PoE link speed is below 1000 Mbps, there may be a bottleneck in your setup:

          PoE Link test

          • You should get speed 1000 (Mbps). If it's 100, it likely means you are using Slow networking equipment (see below)

          $$
          Connecting to 192.168.0.50 ...
          mixd: 194430100111741300
          speed 100 (FAIL)
          full duplex: 1 (OK)
          boot mode: 3 (OK)
          $$

          OAK bandwidth test

          • Should be around 800/200 Mbps

          $$
          Downlink 91.3 mbps
          Uplink 93.1 mbps
          $$

          OAK latency test

          • Should be below 10ms, but it depends on your network. If you get lower bandwidth/latency as expected, you should check debugging steps below.

          $$
          Average latency 3.5 ms, Std: 3.5
          $$

          Hardware setting

          Can you tell me what the problem is that I'm not getting 1000Mbps, and if not, how can I increase my fps when using PoE Pro?