Skip to content
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

only aruco take off error #492

Open
youngjae41 opened this issue Aug 5, 2023 · 17 comments
Open

only aruco take off error #492

youngjae41 opened this issue Aug 5, 2023 · 17 comments

Comments

@youngjae41
Copy link

youngjae41 commented Aug 5, 2023

Hello Long time no see @okalachev

I am using px4 1.12.3 version firmware. Optical flow is set to false and I am testing using ipython

set it like this

navigate(x=0, y=0, z=1.0, speed=0.5, frame_id='body', auto_arm=True)

Give the take off command. The gas initially rises and then loses position.

aruco.launch file

<arg name="aruco_detect" default="true"/>
<arg name="aruco_map" default="false"/>
<arg name="aruco_vpe" default="false"/>
<arg name="placement" default="floor"/> <!-- markers placement: floor, ceiling, unknown -->
<arg name="length" default="0.22"/> <!-- not-in-map markers length, m -->
<arg name="map" default="map.txt"/> <!-- markers map file name -->

Doesn't it work if I don't use aruco_map?

And another bug is that if you don't set aruco_map to True, rviz doesn't output image subjects to aruco_dectect.
@okalachev
Copy link
Member

okalachev commented Aug 5, 2023

Hi! You can't fly in offboard position mode with optical flow turned off and aruco vpe turned off, since the drone doesn't have the position source.

@youngjae41
Copy link
Author

@okalachev thanks ~! I'm using ipython3 control but land position is strange
The command is using Land() and using aruco.

@okalachev
Copy link
Member

What do you mean land position is strange? Please, provide more details on that and, if possible, the flight logs.

@youngjae41
Copy link
Author

@okalachev It seems to be a camera problem. Existing clover rpi camera outputs 40 fps, but jetson camera outputs 30 fps max. Could this be why the optical flow isn't working properly?

@youngjae41
Copy link
Author

@okalachev aruco.launch aruco_detect If not set to false, aruco detection will not work.

@okalachev
Copy link
Member

@youngjae41

It seems to be a camera problem. Existing clover rpi camera outputs 40 fps, but jetson camera outputs 30 fps max. Could this be why the optical flow isn't working properly?

No, there is no hard requirement to optical flow camera fps to work, 30 FPS is OK.

aruco.launch aruco_detect If not set to false, aruco detection will not work.

You can use an automated tool that checks your Clover's configuration and prints a full report: rosrun clover selfcheck.py.

@youngjae41
Copy link
Author

youngjae41 commented Aug 28, 2023

@okalachev Sorry, misdirection. in the latest version

param name="use_map_markers" value="true" <- set to true aruco detection will not work.

@okalachev
Copy link
Member

okalachev commented Aug 28, 2023

You can use the above checking tool to diagnose some problems. Also there is a log in /var/log/clover.log file, if aruco detection falls, there would be errors.

@lgh5054
Copy link

lgh5054 commented Nov 20, 2023

@okalachev Hello, is there a way to land on the Aruco Maker I want?

@okalachev
Copy link
Member

You can use aruco_X frame for that, like, navigate(x=0,y=0,z=0,frame_id='aruco_35').

@lgh5054
Copy link

lgh5054 commented Nov 21, 2023

@okalachev Entering Land() to the place where the aircraft first take off. Has this ever happened?

@okalachev
Copy link
Member

@lgh5054, can you please reformulate your question? I don't get it.

@lgh5054
Copy link

lgh5054 commented Nov 24, 2023

@okalachev When entering land(), it does not land at the current location, but RTLs to the home point from which it first took off.

@okalachev
Copy link
Member

No, it should not work this way. Maybe it just drifted away for some reason when it was landing?

@lgh5054
Copy link

lgh5054 commented Nov 24, 2023

@okalachev i'm using v 1.14.0 relrease firmware and did you have to line tracking code?

I see clover youtube but not found code

@okalachev
Copy link
Member

Sorry, this code was not written by us, you can try to contact its author https://t.me/tenessinum to get it.

@lgh5054
Copy link

lgh5054 commented Dec 12, 2023

@okalachev Hello Okalachev Found the problem.

When operating optical flow, even if you hold the drone with your hand and move its position, rviz will initialize it to 0,0,0 coordinates.

optical flow problem or px4 1.14.0 firmware problem?

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

3 participants