Giter Club home page Giter Club logo

Comments (5)

tentone avatar tentone commented on June 19, 2024

Hello

What software version are you running on your tello?

Have not tested the project with latest versions of the firmware.

from tello-ros2.

zoldaten avatar zoldaten commented on June 19, 2024

yes. i use the latest soft.

from tello-ros2.

TSoli avatar TSoli commented on June 19, 2024

I got the same error.

from tello-ros2.

SlavenLeskovar avatar SlavenLeskovar commented on June 19, 2024

I am having the same problem. I am using Aruco Ros2 package and it keeps saying there's no camera info recieved. Also when i echo camera_info topic it shows no data.

from tello-ros2.

TSoli avatar TSoli commented on June 19, 2024

Ok so I found the issue. You actually need to specify the camera parameters (that you can get by calibrating the camera for example by doing this) using a yaml file. For example, I got the following parameters.

image_height: 720
image_width: 960

distortion_model: "plumb_bob"
distortion_coefficients:
  [
    -0.0699817593277033,
    -0.030309812668930222,
    -0.007853051329708314,
    -0.0016747628740195724,
  ]
camera_matrix:
  [
    742.1992742855476,
    0.0,
    454.12133045383564,
    0.0,
    742.7592370453168,
    312.0483639069177,
    0.0,
    0.0,
    1.0,
  ]
projection_matrix:
  [
    742.1992742855476,
    0.0,
    454.12133045383564,
    0.0,
    0.0,
    742.7592370453168,
    312.0483639069177,
    0.0,
    0.0,
    0.0,
    1.0,
    0.0,
  ]

Now you need to specify this as the camera_info_file in the launch file here by adding

            parameters=[
                {"connect_timeout": 10.0},
                {"tello_ip": "192.168.10.1"},
                {"tf_base": "map"},
                {"tf_drone": "drone"},
                {"camera_info_file": "./cam_info.yml"}, # This line here change it to wherever you put that config file above
            ],

Finally, there is a bug here that needs to be fixed it should be changed to

                if self.pub_camera_info.get_subscription_count() > 0:
                    msg = CameraInfo()
                    msg.height = self.camera_info.get("image_height") # change to .get() since these are dict values
                    msg.width = self.camera_info.get("image_width")
                    msg.distortion_model = self.camera_info.get("distortion_model")
                    msg.d = self.camera_info.get("distortion_coefficients") # Note these have changed to lower case letters
                    msg.k = self.camera_info.get("camera_matrix")
                    # msg.r = self.camera_info.get("rectification_matrix")
                    # above line is irrelevant since the drone has a monocular camera
                    msg.p = self.camera_info.get("projection_matrix")
                    self.pub_camera_info.publish(msg)

I might see if I can make a pull request later but I don't know if this repo is still maintained. Really only this last section is a bug.

from tello-ros2.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.