gisnav icon indicating copy to clipboard operation
gisnav copied to clipboard

fail to build with gnc

Open SunJ1025 opened this issue 1 year ago • 3 comments

Fisrt, very thanks for your great work !

I met some problem when I'm trying to build px4 gisnav by the commond gnc build px4 gisnav --with-dependencies

When the code runs to [qgc 2/6] RUN apt-get update --fix-missing && apt-get install sudo && groupadd --gid 1000 root && useradd --uid 1000 --gid 1000 -m root && echo "root ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/root:

The build process failed and shows : failed to solve: process "/bin/sh -c apt-get update --fix-missing && apt-get install sudo && groupadd --gid $GID $USERNAME && useradd --uid $UID --gid $GID -m $USERNAME && echo \"${USERNAME} ALL=(ALL) NOPASSWD:ALL\" > /etc/sudoers.d/$USERNAME" did not complete successfully: exit code: 9

I can't solve this problem, so, could you offer some advice for me ?

Very thanks for your help.

SunJ1025 avatar Nov 03 '24 07:11 SunJ1025

Hi Jian - thank you for your interest in GISNav!

I have started work on a related project so currently I am not developing nor actively maintaining GISNav. Your issue seems to be related to building the qgc service so you could probably try fixing the related Dockerfile, or even installing QGroundControl locally. Unfortunately I am unable to look into the issue further at this point.

hmakelin avatar Nov 05 '24 21:11 hmakelin

Hi Harri, Thanks for your answer. I have tried v0.67.0, and I built the docker images successfully 👍 😊

But I still met some small problem: the "mathched images" (window of 'Projected FOV') didn't appear when I upload the plan.

I think maybe this is because the code cv2.show(label,matched_image) can't show up when I'm using docker or something?

It will be great if you could give me some advice. I know you're busy, so there's no rush to reply.

Thanks again for your inspiring and fantastic work, wish you all the best with your new project!

SunJ1025 avatar Nov 09 '24 13:11 SunJ1025

Hi @SunJ1025, were you able to resolve this issue? I might face the same problem, I see QGC and Gazebo but there is no "mathched images" (window of 'Projected FOV'), and when I run failure gps off the drone just land Also I notice this in logs of gisnav-gisnav-1 container

[gis_node-16] [INFO] [1734341058.519077377] [gisnav.gis_node]: Connecting to WMS endpoint at http://gisnav-mapserver-1/cgi-bin/mapserv.cgi?map=/etc/mapserver/default.map&mapserver_hostname=gisnav-mapserver-1...
[gis_node-16] [INFO] [1734341058.631869516] [gisnav.gis_node]: WMS client connection established.
[bbox_node-12] [WARN] [1734341122.763886665] [gisnav.bbox_node]: Could not transform map to base_link: Could not find a connection between 'map' and 'base_link' because they are not part of the same tree.Tf has two or more unconnected trees.
[bbox_node-12] [WARN] [1734341122.765461740] [gisnav.bbox_node]: Could not publish gisnav_base_link to gisnav_camera_link due to exception: Could not find a connection between 'base_link' and 'camera' because they are not part of the same tree.Tf has two or more unconnected trees.

And then this in loop

[gis_node-16] [INFO] [1734341130.506810970] [gisnav.gis_node]: Sending GetMap request for bbox: BBox(left=-122.25512396973434, bottom=37.523639226301086, right=-122.25509944820696, top=37.52365875681819), layers: ['imagery'].
[gis_node-16] [ERROR] [1734341130.570302223] [gisnav.gis_node]: GetMap request failed likely because of a connection error: msDrawMap(): Image handling error. Failed to draw layer named 'imagery'.
[gis_node-16] msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/etc/mapserver/imagery.vrt' for layer 'imagery'.
[gis_node-16] [ERROR] [1734341130.571890344] [gisnav.gis_node]: Could not get orthoimage from GIS server
[twist_node-14] [WARN] [1734341130.612626156] [gisnav.twist_node]: Angle off nadir: 77.5348074772285 degrees, max angle 32.70422048691768.  - skipping matching.

GalychMaks avatar Dec 16 '24 14:12 GalychMaks