# How to run zed\_obj\_det\_sub\_tutorial?

**URL:** <https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618>\
**Category:** ROS1\
**Tags:** ros, sdk, jetson\
**Created:** [October 2, 2023, 12:14pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618 "2023-10-02T12:14:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominik](https://community.stereolabs.com/user_avatar/community.stereolabs.com/dominik/32/1686_2.png) [@dominik](https://community.stereolabs.com/u/dominik)\
**Post date:** [October 2, 2023, 12:14pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618/1 "2023-10-02T12:14:09Z")

</div>

Hi, my setup is Jetson AGX Orin (ROS Noetic and JetPack 5.1.1) with ZED 2i camera.

I installed zed-ros-wrapper and zed-ros-examples and I am following the tutorial [object detection](https://www.stereolabs.com/docs/ros/object-detection/), when I run:

```auto
rosrun zed_obj_det_sub_tutorial zed_obj_det_sub objes:=/zed2i/zed_node/obj_det/objects

```

My terminal do nothing, have I missed something?

(I set object\_detection to True in params/common.yaml)

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [October 2, 2023, 1:04pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618/2 "2023-10-02T13:04:23Z")

</div>

Hi @dominik  
did you enable Object Detection by modifying the `common.yaml` file or by calling the `enable_object_detection` service?  
Read [here](https://www.stereolabs.com/docs/ros2/object-detection/#enable-object-detection).

---

<div class="post-metadata">

**Author:** ![dominik](https://community.stereolabs.com/user_avatar/community.stereolabs.com/dominik/32/1686_2.png) [@dominik](https://community.stereolabs.com/u/dominik)\
**Post date:** [October 2, 2023, 1:16pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618/3 "2023-10-02T13:16:24Z")

</div>

Yes, I enabled it 🙂 , also I’ve built all the packages without any errors.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [October 2, 2023, 1:24pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618/4 "2023-10-02T13:24:40Z")

</div>

I just noticed that your launch line is wrong:  
`rosrun zed_obj_det_sub_tutorial zed_obj_det_sub objes:=/zed2i/zed_node/obj_det/objects`  
it should be  
`rosrun zed_obj_det_sub_tutorial zed_obj_det_sub objects:=/zed2i/zed_node/obj_det/objects`

There’s a typo in the documentation, I’m going to fix it immediately

---

<div class="post-metadata">

**Author:** ![dominik](https://community.stereolabs.com/user_avatar/community.stereolabs.com/dominik/32/1686_2.png) [@dominik](https://community.stereolabs.com/u/dominik)\
**Post date:** [October 2, 2023, 1:36pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618/5 "2023-10-02T13:36:55Z")

</div>

Works! Thank you. By the way, do you know why it detects only one person at a time? Is just wrapper limitation or can I enabled multi-person detection in some configs?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [October 2, 2023, 1:51pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618/6 "2023-10-02T13:51:40Z")

</div>

It’s a bug. There is a PR that fixed it. I’m checking it just now and merge it if it works as expected

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [October 2, 2023, 1:54pm UTC](https://community.stereolabs.com/t/how-to-run-zed-obj-det-sub-tutorial/3618/7 "2023-10-02T13:54:02Z")

</div>

The fix has been merged:

> <https://github.com/stereolabs/zed-ros-examples/pull/53>
>
> The 'id' used is the 'label\_id', instead of 'instance\_id'. For this reason, rviz… is not showing more than one instance of each category. This PR corrects this problem.

Please `git pull` to update.
