Comments (5)
Hello
What software version are you running on your tello?
Have not tested the project with latest versions of the firmware.
from tello-ros2.
yes. i use the latest soft.
from tello-ros2.
I got the same error.
from tello-ros2.
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.
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)
- decoding error HOT 8
- error: ‘MapPub’ was not declared in this scope HOT 2
- Images sent are encoded to bgr8 but are actually rgb8
- Building of ORB-SLAM2 W/O Pangoling fails HOT 1
- Runtime error with cv_bridge_boost HOT 5
- Multi Drones HOT 2
- ModuleNotFoundError: No module named 'ament_package' HOT 2
- fail building ROS2 nodes for ORB_SLAM2 HOT 8
- No timestamps for /camera topic HOT 4
- Cannot build SLAM node HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tello-ros2.