# Drone navigation and odometry by subscription in RVIZ

**URL:** <https://get-help.theconstruct.ai/t/drone-navigation-and-odometry-by-subscription-in-rviz/16420>\
**Category:** External Requests\
**Tags:** rviz, noetic, odometry\
**Created:** [March 28, 2022, 3:31pm UTC](https://get-help.theconstruct.ai/t/drone-navigation-and-odometry-by-subscription-in-rviz/16420 "2022-03-28T15:31:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristian977](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/c/e95f7d/32.png) [@Cristian977](https://get-help.theconstruct.ai/u/Cristian977)\
**Post date:** [March 28, 2022, 3:31pm UTC](https://get-help.theconstruct.ai/t/drone-navigation-and-odometry-by-subscription-in-rviz/16420/1 "2022-03-28T15:31:34Z")

</div>

Hi how is it? I have used a code to test a model in RVIZ, my model is a drone and I want to make it link with the odometry of the same drone. The problem is that it doesn’t give me an odometry topic, it gives me two topics, one called LOCAL\_POSITION and another called ATTITUDE. The first one gives me a POINTSTAMPED message and the second one gives me a QUATERNIONSTAMPED message. I want to use a node to be able to subscribe to the topics and convert them to odometry, or maybe a way to do it. Could you please help me.

I’m using Ubuntu 20.04 LTS, ROS Noetic , dji\_sdk

---

<div class="post-metadata">

**Author:** ![marco.nc.arruda](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/marco.nc.arruda/32/2639_2.png) [@marco.nc.arruda](https://get-help.theconstruct.ai/u/marco.nc.arruda)\
**Post date:** [March 29, 2022, 12:45pm UTC](https://get-help.theconstruct.ai/t/drone-navigation-and-odometry-by-subscription-in-rviz/16420/2 "2022-03-29T12:45:17Z")

</div>

Hi @Cristian977 ,

You can use TFs for that. Subscribe to the topics and generate a Transformation between the map/world/odom and the drone.

Check [how to create a TF](https://www.youtube.com/watch?v=8U-cwv6db3U) and setup the world frame in RViz as the static one (or the reference you want to have) and add the Transformation Frame to be visualized in the menu on the left side.

We have many references for TF in our [youtube channel](https://www.youtube.com/watch?v=PFjIAf_99CI), but you can have a step-by-step following the TF course or even course about programming drones, where you will use MoveIt to do more advanced stuff.

- [TF ROS](https://app.theconstructsim.com/#/Course/10)
- [Programming Drones with ROS](https://app.theconstructsim.com/#/Course/24)

Regards

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [April 8, 2022, 12:45pm UTC](https://get-help.theconstruct.ai/t/drone-navigation-and-odometry-by-subscription-in-rviz/16420/3 "2022-04-08T12:45:43Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
