Skip to content

Rotated SLAM pose #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DanielRoeder1 opened this issue Mar 30, 2022 · 1 comment
Open

Rotated SLAM pose #13

DanielRoeder1 opened this issue Mar 30, 2022 · 1 comment

Comments

@DanielRoeder1
Copy link

In the readme it is outlined that the rotated SLAM pose is created to account for the slightly downward-facing camera angle (i.e 12 degrees).

Looking at the code in the tello_slam_control.py a rotation around the Y-axis is performed to account for this.

self.rotated_pos.x = self.slam_pos.x * math.cos(self.angle_radian) + self.slam_pos.z * math.sin(self.angle_radian)
self.rotated_pos.y = self.slam_pos.y
self.rotated_pos.z = self.slam_pos.x * (-math.sin(self.angle_radian)) + self.slam_pos.z * math.cos(self.angle_radian)

From my understanding, this should be a rotation around the X-axis instead?

@AnaRhisT94
Copy link

In the readme it is outlined that the rotated SLAM pose is created to account for the slightly downward-facing camera angle (i.e 12 degrees).

Looking at the code in the tello_slam_control.py a rotation around the Y-axis is performed to account for this.

self.rotated_pos.x = self.slam_pos.x * math.cos(self.angle_radian) + self.slam_pos.z * math.sin(self.angle_radian)
self.rotated_pos.y = self.slam_pos.y
self.rotated_pos.z = self.slam_pos.x * (-math.sin(self.angle_radian)) + self.slam_pos.z * math.cos(self.angle_radian)

From my understanding, this should be a rotation around the X-axis instead?

Hi,
Any ideas how to solve my current issue? (Tello's camera doesn't show up in the viewer)
[https://github.com//issues/15]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants