# How can I do navigation and localization with zed camera

**URL:** <https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046>\
**Category:** ROS1\
**Tags:** localization, navigation\
**Created:** [January 25, 2023, 9:23am UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046 "2023-01-25T09:23:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpgrgn](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alpgrgn](https://community.stereolabs.com/u/alpgrgn)\
**Post date:** [January 25, 2023, 9:23am UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/1 "2023-01-25T09:23:44Z")

</div>

How can I do navigation and localization with zed camera.

---

<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:** [January 25, 2023, 10:26am UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/2 "2023-01-25T10:26:21Z")

</div>

Hi @alpgrgn  
Welcome to the Stereolabs community.

Can you please provide more information? Your request is too generic.

Are you using ROS? ROS2? Other frameworks?  
Are you using the ZED SDK natively?  
Other important information?

---

<div class="post-metadata">

**Author:** ![alpgrgn](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alpgrgn](https://community.stereolabs.com/u/alpgrgn)\
**Post date:** [January 25, 2023, 10:40am UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/3 "2023-01-25T10:40:30Z")

</div>

I am using ros melodic I have installed the ZED SDK packages zed\_ros\_example and zed\_wrapper.

---

<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:** [January 25, 2023, 11:26am UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/4 "2023-01-25T11:26:38Z")

</div>

Do you have any knowledge regarding the ROS navigation stack?  
[http://wiki.ros.org/navigation](http://wiki.ros.org/navigation)

---

<div class="post-metadata">

**Author:** ![alpgrgn](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alpgrgn](https://community.stereolabs.com/u/alpgrgn)\
**Post date:** [January 25, 2023, 2:59pm UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/5 "2023-01-25T14:59:21Z")

</div>

I think I need to do localization first, do you know?

---

<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:** [January 25, 2023, 7:27pm UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/6 "2023-01-25T19:27:03Z")

</div>

Localization is usually performed with the AMCL node, but it requires a 2D Laser scan.  
If you decide to use it you can use this example to generate a virtual 2D laser scan:

> **[zed-ros-examples/examples/zed\_nodelet\_example at master ·...](https://github.com/stereolabs/zed-ros-examples/tree/master/examples/zed_nodelet_example)**
>
> master/examples/zed\_nodelet\_example

---

<div class="post-metadata">

**Author:** ![alpgrgn](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alpgrgn](https://community.stereolabs.com/u/alpgrgn)\
**Post date:** [January 27, 2023, 12:05pm UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/7 "2023-01-27T12:05:02Z")

</div>

I did that and now I’m trying to navigate, but when I give direction in rviz, it doesn’t draw the road. I can get speed information with rostopic echo, but angle values ​​are not coming.

---

<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:** [January 27, 2023, 5:31pm UTC](https://community.stereolabs.com/t/how-can-i-do-navigation-and-localization-with-zed-camera/2046/8 "2023-01-27T17:31:33Z")

</div>

Hi @alpgrgn  
this seems to be a ROS configuration issue, so I suggest you ask on [https://answers.ros.org/](https://answers.ros.org/) where the ROS community can provide you with better and more detailed information.
