clover icon indicating copy to clipboard operation
clover copied to clipboard

only aruco take off error

Open youngjae41 opened this issue 1 year ago • 17 comments

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.

youngjae41 avatar Aug 05 '23 03:08 youngjae41

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.

okalachev avatar Aug 05 '23 05:08 okalachev

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

youngjae41 avatar Aug 10 '23 01:08 youngjae41

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

okalachev avatar Aug 14 '23 06:08 okalachev

@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 avatar Aug 23 '23 04:08 youngjae41

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

youngjae41 avatar Aug 24 '23 04:08 youngjae41

@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.

okalachev avatar Aug 27 '23 07:08 okalachev

@okalachev Sorry, misdirection. in the latest version

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

youngjae41 avatar Aug 28 '23 01:08 youngjae41

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.

okalachev avatar Aug 28 '23 07:08 okalachev

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

lgh5054 avatar Nov 20 '23 12:11 lgh5054

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

okalachev avatar Nov 20 '23 13:11 okalachev

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

lgh5054 avatar Nov 21 '23 04:11 lgh5054

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

okalachev avatar Nov 23 '23 11:11 okalachev

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

lgh5054 avatar Nov 24 '23 07:11 lgh5054

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

okalachev avatar Nov 24 '23 07:11 okalachev

@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

lgh5054 avatar Nov 24 '23 09:11 lgh5054

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

okalachev avatar Nov 24 '23 22:11 okalachev

@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?

lgh5054 avatar Dec 12 '23 06:12 lgh5054