Closed JiatengSun closed 11 months ago
Hi Jiateng - thank you for finding this issue!
I confirm I get the same error message when trying to build the micro-ros-agent
Docker image on the current master
branch at commit 809396d. This is because the px4_msgs
ROS 2 package fails to build. Some recent changes to the repo such as https://github.com/PX4/px4_msgs/pull/31 may or may not be related.
In any case I opened #91 to fix the version of px4_msgs
that the micro-ros-agent
image uses. On this branch you should be able to build the image. If you want to try building the image in isolation of the other images that are part of the demo
recipe you can try something like:
cd gisnav/docker
docker compose -p gisnav build micro-ros-agent
I will still test it with the other containers to make sure everything is working as expected before I merge #91.
Closing this issue as #91 has been merged
What's the issue fatal error: px4_msgs/msg/detail/vehicle_command__struct.h: No such file or directory
Describe it in detail sudo make -C docker demo fails
Logs, screenshots, and other supporting information make: Entering directory '/home/dky/Documents/gisnav/docker' [+] Building 19.9s (14/17) docker:default => [micro-ros-agent internal] load build definition from Dockerfile 0.2s => => transferring dockerfile: 483B 0.0s => [micro-ros-agent internal] load .dockerignore 0.3s => => transferring context: 2B 0.0s => [mavros internal] load build definition from Dockerfile 0.6s => => transferring dockerfile: 1.37kB 0.0s => [mavros internal] load .dockerignore 0.8s => => transferring context: 2B 0.0s => [micro-ros-agent internal] load metadata for docker.io/microros/micro-ros-agent:foxy 1.2s => [mavros internal] load metadata for docker.io/library/ros:humble 1.0s => CACHED [micro-ros-agent 1/2] FROM docker.io/microros/micro-ros-agent:foxy@sha256:21ff98ba8 0.0s => ERROR [micro-ros-agent 2/2] RUN cd /uros_ws && mkdir src && cd src && git clo 11.3s => [mavros internal] load build context 0.1s => => transferring context: 98B 0.0s => [mavros 1/8] FROM docker.io/library/ros:humble@sha256:b10a245d08934951639451b72eb384061ca6 0.0s => CACHED [mavros 2/8] COPY * / 0.0s => CACHED [mavros 3/8] RUN chmod 755 entrypoint.sh edit_mavros.sh 0.0s => CACHED [mavros 4/8] RUN apt update --fix-missing && apt -y dist-upgrade && apt -y 0.0s => CACHED [mavros 5/8] WORKDIR /opt/colcon_ws 0.0s => [mavros 6/8] RUN mkdir src && cd src && git clone --branch gimbal-protocol-v2-plu 17.8s => => # Cloning into 'mavros'...