-
Notifications
You must be signed in to change notification settings - Fork 345
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
Fake camera stream and use local video file instead #21
Comments
Hello, |
Let me ensure the drone can position hold with px4low first, today I find a wide and open place to test optical flow. Unfortunately, the drone always drifts from right to left, but altitude looks keeping good, I can see the led is green. Before that, I checked px4flow were connected okay, I hand it with 1 meter distance to ground, the led can turn green. Name value |
Making PX4FLOW work can sometimes be a bit tricky indeed. Please make sure that you read and followed our PX4FLOW instructions. That is, check the firmware, lenses and camera video quality. If everything is set up correctly then PX4FLOW should initialize when you lift the drone above the ground about 20-30 cm (as described here). P.S. I'm re-assigning the issue to Nikolai as I'm at the conference now. |
Thanks, I will try. diff --git a/ros/scripts/jetson_ros_install.sh b/ros/scripts/jetson_ros_install.sh echo "Installing dependencies..." # Environment setup. diff --git a/ros/packages/image_pub/CMakeLists.txt b/ros/packages/image_pub/CMakeLists.txt +catkin_package( |
Hi Alexey, Nikolai |
Your setup is another good option to test/develop the components. Basically, since all our components are implemented as ROS nodes, you can mix and match workstations, Jetsons and Dockers in any way you like :) We decided to provide and support just 2 scenarios, one based on real Jetson and another - Docker. Such scenarios are relatively easily reproducible and repeatable (especially with Docker). As for the |
@xuming-shanghai: Hello, for PX4FLOW floating around -- what lens did you use on PX4FLOW unit? The parameters you posted list: LENS_FOCAL_LEN 16 which is 16mm focal length and it is for the lens that comes default with the unit. If you replaced it with 6mm lens like we suggest, then you need to recompile PX4FLOW firmware after changing the focal length in the settings .h file. It is listed in PX4FLOW instructions. |
@xuming-shanghai: just to explain what's going on if the focal length is wrong - PX4FLOW cannot estimate velocity properly (due to wrong camera model) and so this leads to overcontrol in Pixhawk. It will stabilize, but it will "float" around (typically side to side) |
Hi Alexey and guys:
Can you help provide the first view video recorded by your drone when your were testing in forest?
It's hard to simulate forest environment in shanghai city.
so, I assume let my drone read your video file(not my camera), then drone thoughts it is in forest.
now I put my drone in outdoor playground, other steps are same as yours except input video steam are faked.
If observed the drone's flight route is along with the road direction in the video, so I think I copied your demo.
Is it feasible about my thought?
Thanks ahead!
The text was updated successfully, but these errors were encountered: