Skip to content

Build process fails for "int32_publisher_custom_transport" example #116

@githubuser182736

Description

@githubuser182736

Issue template

  • Hardware description: ESP32
  • RTOS: freertos
  • Installation type: .
  • Version or commit hash: galactic

Steps to reproduce the issue

Put following two files (Dockerfile and bash_script.sh) into one folder and run docker build -t testcontainer . inside this folder.

Dockerfile:

FROM espressif/idf:release-v4.3

ENV DEBIAN_FRONTEND noninteractive
RUN echo "Set disable_coredump false" >> /etc/sudo.conf
RUN apt update -q && \
    apt install -yq sudo lsb-release gosu nano && \
    rm -rf /var/lib/apt/lists/*

ARG TZ_ARG=UTC
ENV TZ=$TZ_ARG
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY ./bash_script.sh /bash_script.sh

RUN mkdir -p /tmp/bash_script && mv /bash_script.sh /tmp/bash_script/ && \
    /tmp/bash_script/bash_script.sh

bash_script.sh (don't forget to make this file executable with sudo chmod +x bash_script.sh):

#!/bin/bash

set -eu

sudo apt update -q
sudo apt install -yq python3-pip
source $IDF_PATH/export.sh
pip3 install catkin_pkg lark-parser empy colcon-common-extensions importlib-resources
git clone https://github.com/micro-ROS/micro_ros_espidf_component.git
cd micro_ros_espidf_component
sed -i 's/DRMW_UXRCE_TRANSPORT=udp/DRMW_UXRCE_TRANSPORT=custom/' colcon.meta
cd examples/int32_publisher_custom_transport
idf.py set-target esp32
idf.py build

set +u

Expected behavior

Build process finishes without errors.

Actual behavior

Build process fails. See attachment "output-int32_publisher_custom_transport.log".
output-int32_publisher_custom_transport.log

Additional information

As a check the "int32_publisher" example could be built without any error with this bash_script.sh:

#!/bin/bash

set -eu

sudo apt update -q
sudo apt install -yq python3-pip
source $IDF_PATH/export.sh
pip3 install catkin_pkg lark-parser empy colcon-common-extensions importlib-resources
git clone https://github.com/micro-ROS/micro_ros_espidf_component.git
cd micro_ros_espidf_component/examples/int32_publisher
idf.py set-target esp32
idf.py build

set +u

The output of this build process can be found in the attachment "output-int32_publisher.log"
output-int32_publisher.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions