鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    【自定义消息接口控制LED】教程中编译工程失败

    已定时 已固定 已锁定 已移动
    移动机器人制作
    platformio编译报错 microros自定义接口
    4
    7
    752
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 8790324798
      llllljc.
      最后由 编辑

      【动手学ROS2-五-进阶-自定义消息接口控制LED】按照教程中步骤进行到2.2时colcon build报错
      f9593022-94d0-4640-8513-888a33fdc6ba-image.png
      按照报错信息在package.xml中添加<member_of_group>rosidl_interface_packages</member_of_group>后可成功编译自定义接口包。
      继续教程到进度2.3编译platformio项目时出错
      3e252a04-7f46-4392-998d-d90ba80b61a0-image.png
      请问该怎么解决嘞?😲

      小鱼小 2 条回复 最后回复 回复 引用 -1
      • 小鱼小
        小鱼 技术大佬 @879032479
        最后由 编辑

        @879032479 按照提示加一下,应该是我给漏了
        1e1cd392-aeb2-42a6-be0b-b8a165a27bce-image.png

        尽量复制粘贴,我这边也好复制粘贴写出来


        @小鱼 在 提问前必看!一定要看!必须看一下! 中说:

        终端打印一定复制粘贴,方便回答者检索和引用(你可以在linux系统上打开浏览器进社区)

        新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

        1 条回复 最后回复 回复 引用 0
        • 小鱼小
          小鱼 技术大佬 @879032479
          最后由 编辑

          @879032479 @847718956 搞定了,更新了代码,已有工程解决方案如下:

          打开工程,删除目录.pio/libdeps/featheresp32/micro_ros_platformio

          接着重新点击编译即可。

          rocessing featheresp32 (platform: espressif32; board: featheresp32; framework: arduino)
          ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
          Verbose mode can be enabled via `-v, --verbose` option
          CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/featheresp32.html
          PLATFORM: Espressif 32 (5.2.0) > Adafruit ESP32 Feather
          HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
          DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
          PACKAGES: 
           - framework-arduinoespressif32 @ 3.20005.220925 (2.0.5) 
           - tool-esptoolpy @ 1.40201.0 (4.2.1) 
           - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
          LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
          LDF Modes: Finder ~ chain, Compatibility ~ soft
          Installing pyyaml with pip at PlatformIO environment
          /home/fishros/.platformio/penv/bin/python -m pip install pyyaml
          Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
          Requirement already satisfied: pyyaml in /home/fishros/.platformio/penv/lib/python3.10/site-packages (6.0)
          
          [notice] A new release of pip available: 22.3.1 -> 23.0
          [notice] To update, run: pip install --upgrade pip
          Installing markupsafe==2.0.1 with pip at PlatformIO environment
          /home/fishros/.platformio/penv/bin/python -m pip install markupsafe==2.0.1
          Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
          Requirement already satisfied: markupsafe==2.0.1 in /home/fishros/.platformio/penv/lib/python3.10/site-packages (2.0.1)
          
          [notice] A new release of pip available: 22.3.1 -> 23.0
          [notice] To update, run: pip install --upgrade pip
          Configuring featheresp32 with transport custom
          Downloading micro-ROS dev dependencies
                   - Downloaded ament_cmake
                   - Downloaded ament_lint
                   - Downloaded ament_package
                   - Downloaded googletest
                   - Downloaded ament_cmake_ros
                   - Downloaded ament_index
          Building micro-ROS dev dependencies
          Downloading micro-ROS library
                   - Downloaded microcdr
                   - Downloaded microxrcedds_client
                   - Downloaded rcl
                   - Downloaded rcl_action
                   - Downloaded rcl_lifecycle
                   - Downloaded rcl_yaml_param_parser (ignored)
                   - Downloaded rclc_parameter
                   - Downloaded rclc_examples (ignored)
                   - Downloaded rclc
                   - Downloaded rclc_lifecycle
                   - Downloaded micro_ros_utilities
                   - Downloaded rcutils
                   - Downloaded micro_ros_msgs
                   - Downloaded rmw_microxrcedds
                   - Downloaded rosidl_typesupport_cpp (ignored)
                   - Downloaded rosidl_typesupport_c
                   - Downloaded rosidl_typesupport_microxrcedds_c
                   - Downloaded rosidl_typesupport_microxrcedds_test_msg
                   - Downloaded rosidl_typesupport_microxrcedds_cpp_tests
                   - Downloaded rosidl_typesupport_microxrcedds_c_tests
                   - Downloaded rosidl_typesupport_microxrcedds_cpp (ignored)
                   - Downloaded rosidl_generator_c
                   - Downloaded rosidl_runtime_cpp (ignored)
                   - Downloaded rosidl_typesupport_introspection_cpp (ignored)
                   - Downloaded rosidl_generator_cpp (ignored)
                   - Downloaded rosidl_typesupport_introspection_tests
                   - Downloaded rosidl_parser
                   - Downloaded rosidl_cmake
                   - Downloaded rosidl_adapter
                   - Downloaded rosidl_typesupport_interface
                   - Downloaded rosidl_typesupport_introspection_c
                   - Downloaded rosidl_cli
                   - Downloaded rosidl_runtime_c
                   - Downloaded rmw_implementation_cmake
                   - Downloaded rmw
                   - Downloaded composition_interfaces
                   - Downloaded test_msgs
                   - Downloaded rosgraph_msgs
                   - Downloaded rcl_interfaces
                   - Downloaded action_msgs
                   - Downloaded lifecycle_msgs
                   - Downloaded builtin_interfaces
                   - Downloaded statistics_msgs
                   - Downloaded rosidl_default_generators
                   - Downloaded rosidl_default_runtime
                   - Downloaded unique_identifier_msgs
                   - Downloaded actionlib_msgs
                   - Downloaded visualization_msgs
                   - Downloaded trajectory_msgs
                   - Downloaded sensor_msgs_py
                   - Downloaded stereo_msgs
                   - Downloaded common_interfaces
                   - Downloaded shape_msgs
                   - Downloaded sensor_msgs
                   - Downloaded geometry_msgs
                   - Downloaded std_srvs
                   - Downloaded diagnostic_msgs
                   - Downloaded std_msgs
                   - Downloaded nav_msgs
                   - Downloaded test_interface_files
                   - Downloaded test_rmw_implementation
                   - Downloaded rmw_implementation
                   - Downloaded rcl_logging_interface
                   - Downloaded rcl_logging_spdlog (ignored)
                   - Downloaded rcl_logging_noop
                   - Downloaded test_tracetools
                   - Downloaded ros2trace
                   - Downloaded tracetools_launch
                   - Downloaded test_tracetools_launch
                   - Downloaded tracetools
                   - Downloaded tracetools_trace
                   - Downloaded tracetools_read
                   - Downloaded tracetools_test
                   - Downloaded example_interfaces
          Checking extra packages
                   - Adding fishbot_interfaces
          Checking extra packages
                   - Adding fishbot_interfaces
          Building micro-ROS library
          Found 46 compatible libraries
          Scanning dependencies...
          Dependency Graph
          |-- micro_ros_platformio @ 0.0.1+sha.a2f9de7
          |-- Esp32McpwmMotor @ 0.1.0+sha.48fcf81
          |-- Esp32PcntEncoder @ 0.1.0+sha.43dbbb7
          |-- Adafruit SSD1306 @ 2.5.7
          |   |-- Adafruit GFX Library @ 1.11.3
          |   |   |-- Adafruit BusIO @ 1.14.1
          |   |   |   |-- Wire @ 2.0.0
          |   |   |   |-- SPI @ 2.0.0
          |   |   |-- Wire @ 2.0.0
          |   |   |-- SPI @ 2.0.0
          |   |-- Adafruit BusIO @ 1.14.1
          |   |   |-- Wire @ 2.0.0
          |   |   |-- SPI @ 2.0.0
          |   |-- Wire @ 2.0.0
          |   |-- SPI @ 2.0.0
          |-- OneButton @ 2.0.3
          |-- Time @ 1.6.1
          |-- Displays
          |   |-- Adafruit GFX Library @ 1.11.3
          |   |   |-- Adafruit BusIO @ 1.14.1
          |   |   |   |-- Wire @ 2.0.0
          |   |   |   |-- SPI @ 2.0.0
          |   |   |-- Wire @ 2.0.0
          |   |   |-- SPI @ 2.0.0
          |   |-- Adafruit SSD1306 @ 2.5.7
          |   |   |-- Adafruit GFX Library @ 1.11.3
          |   |   |   |-- Adafruit BusIO @ 1.14.1
          |   |   |   |   |-- Wire @ 2.0.0
          |   |   |   |   |-- SPI @ 2.0.0
          |   |   |   |-- Wire @ 2.0.0
          |   |   |   |-- SPI @ 2.0.0
          |   |   |-- Adafruit BusIO @ 1.14.1
          |   |   |   |-- Wire @ 2.0.0
          |   |   |   |-- SPI @ 2.0.0
          |   |   |-- Wire @ 2.0.0
          |   |   |-- SPI @ 2.0.0
          |   |-- Time @ 1.6.1
          |   |-- Wire @ 2.0.0
          |-- FishbotUtils
          |-- MicroRosRwm
          |   |-- micro_ros_platformio @ 0.0.1+sha.a2f9de7
          |   |-- WiFi @ 2.0.0
          |-- BluetoothSerial @ 2.0.0
          |-- Kinematics
          |-- PidController
          |-- WiFi @ 2.0.0
          |-- Preferences @ 2.0.0
          Building in release mode
          Compiling .pio/build/featheresp32/src/fishbot.cpp.o
          Compiling .pio/build/featheresp32/src/fishbot_config.cpp.o
          Compiling .pio/build/featheresp32/src/main.cpp.o
          Building .pio/build/featheresp32/bootloader.bin
          Generating partitions .pio/build/featheresp32/partitions.bin
          esptool.py v4.2.1
          Creating esp32 image...
          Merged 1 ELF section
          Successfully created esp32 image.
          Compiling .pio/build/featheresp32/lib233/micro_ros_platformio/platform_code/arduino/clock_gettime.cpp.o
          Compiling .pio/build/featheresp32/lib72b/Esp32McpwmMotor/Esp32McpwmMotor.cpp.o
          Compiling .pio/build/featheresp32/libdd7/Esp32PcntEncoder/Esp32PcntEncoder.cpp.o
          Compiling .pio/build/featheresp32/libc6b/Wire/Wire.cpp.o
          Compiling .pio/build/featheresp32/libe29/SPI/SPI.cpp.o
          Compiling .pio/build/featheresp32/libe08/Adafruit BusIO/Adafruit_BusIO_Register.cpp.o
          Compiling .pio/build/featheresp32/libe08/Adafruit BusIO/Adafruit_I2CDevice.cpp.o
          Compiling .pio/build/featheresp32/libe08/Adafruit BusIO/Adafruit_SPIDevice.cpp.o
          Compiling .pio/build/featheresp32/lib609/Adafruit GFX Library/Adafruit_GFX.cpp.o
          Compiling .pio/build/featheresp32/lib609/Adafruit GFX Library/Adafruit_GrayOLED.cpp.o
          Compiling .pio/build/featheresp32/lib609/Adafruit GFX Library/Adafruit_SPITFT.cpp.o
          Compiling .pio/build/featheresp32/lib609/Adafruit GFX Library/glcdfont.c.o
          Compiling .pio/build/featheresp32/lib1ec/Adafruit SSD1306/Adafruit_SSD1306.cpp.o
          Compiling .pio/build/featheresp32/libe07/OneButton/OneButton.cpp.o
          Compiling .pio/build/featheresp32/lib928/Time/DateStrings.cpp.o
          Archiving .pio/build/featheresp32/libe08/libAdafruit BusIO.a
          Archiving .pio/build/featheresp32/libc6b/libWire.a
          Archiving .pio/build/featheresp32/libe29/libSPI.a
          Archiving .pio/build/featheresp32/libdd7/libEsp32PcntEncoder.a
          Indexing .pio/build/featheresp32/libe08/libAdafruit BusIO.a
          Archiving .pio/build/featheresp32/lib72b/libEsp32McpwmMotor.a
          Archiving .pio/build/featheresp32/lib233/libmicro_ros_platformio.a
          Indexing .pio/build/featheresp32/libc6b/libWire.a
          Indexing .pio/build/featheresp32/libe29/libSPI.a
          Indexing .pio/build/featheresp32/libdd7/libEsp32PcntEncoder.a
          Indexing .pio/build/featheresp32/lib72b/libEsp32McpwmMotor.a
          Indexing .pio/build/featheresp32/lib233/libmicro_ros_platformio.a
          Compiling .pio/build/featheresp32/lib928/Time/Time.cpp.o
          Compiling .pio/build/featheresp32/lib726/Displays/fishbot_display.cpp.o
          Compiling .pio/build/featheresp32/libed7/FishbotUtils/fishbot_utils.cpp.o
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFi.cpp.o
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiAP.cpp.o
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiClient.cpp.o
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiGeneric.cpp.o
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiMulti.cpp.o
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiSTA.cpp.o
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiScan.cpp.o
          Archiving .pio/build/featheresp32/lib928/libTime.a
          Archiving .pio/build/featheresp32/lib609/libAdafruit GFX Library.a
          Indexing .pio/build/featheresp32/lib928/libTime.a
          Archiving .pio/build/featheresp32/lib1ec/libAdafruit SSD1306.a
          Indexing .pio/build/featheresp32/lib609/libAdafruit GFX Library.a
          Archiving .pio/build/featheresp32/libe07/libOneButton.a
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiServer.cpp.o
          Indexing .pio/build/featheresp32/lib1ec/libAdafruit SSD1306.a
          Compiling .pio/build/featheresp32/lib146/WiFi/WiFiUdp.cpp.o
          Indexing .pio/build/featheresp32/libe07/libOneButton.a
          Compiling .pio/build/featheresp32/liba1b/MicroRosRwm/micro_ros_transport_serial.cpp.o
          Compiling .pio/build/featheresp32/liba1b/MicroRosRwm/micro_ros_transport_wifi_udp.cpp.o
          Compiling .pio/build/featheresp32/liba10/BluetoothSerial/BTAddress.cpp.o
          Compiling .pio/build/featheresp32/liba10/BluetoothSerial/BTAdvertisedDeviceSet.cpp.o
          Compiling .pio/build/featheresp32/liba10/BluetoothSerial/BTScanResultsSet.cpp.o
          Archiving .pio/build/featheresp32/libed7/libFishbotUtils.a
          Archiving .pio/build/featheresp32/lib726/libDisplays.a
          Indexing .pio/build/featheresp32/libed7/libFishbotUtils.a
          Indexing .pio/build/featheresp32/lib726/libDisplays.a
          Compiling .pio/build/featheresp32/liba10/BluetoothSerial/BluetoothSerial.cpp.o
          Compiling .pio/build/featheresp32/lib92b/Kinematics/Kinematics.cpp.o
          Compiling .pio/build/featheresp32/lib47c/PidController/PidController.cpp.o
          Compiling .pio/build/featheresp32/lib10d/Preferences/Preferences.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/Esp.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/FirmwareMSC.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/FunctionalInterrupt.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/HWCDC.cpp.o
          Archiving .pio/build/featheresp32/lib92b/libKinematics.a
          Archiving .pio/build/featheresp32/lib47c/libPidController.a
          Archiving .pio/build/featheresp32/lib146/libWiFi.a
          Indexing .pio/build/featheresp32/lib92b/libKinematics.a
          Archiving .pio/build/featheresp32/liba1b/libMicroRosRwm.a
          Indexing .pio/build/featheresp32/lib47c/libPidController.a
          Indexing .pio/build/featheresp32/lib146/libWiFi.a
          Indexing .pio/build/featheresp32/liba1b/libMicroRosRwm.a
          Compiling .pio/build/featheresp32/FrameworkArduino/HardwareSerial.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/IPAddress.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/IPv6Address.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/MD5Builder.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/Print.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/Stream.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/StreamString.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/Tone.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/USB.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/USBCDC.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/USBMSC.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/WMath.cpp.o
          Archiving .pio/build/featheresp32/lib10d/libPreferences.a
          Indexing .pio/build/featheresp32/lib10d/libPreferences.a
          Compiling .pio/build/featheresp32/FrameworkArduino/WString.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/base64.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/cbuf.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-adc.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-bt.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-cpu.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-dac.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-gpio.c.o
          Archiving .pio/build/featheresp32/liba10/libBluetoothSerial.a
          Indexing .pio/build/featheresp32/liba10/libBluetoothSerial.a
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-i2c-slave.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-i2c.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-ledc.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-matrix.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-misc.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-psram.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-rgb-led.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-rmt.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-sigmadelta.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-spi.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-time.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-timer.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-tinyusb.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-touch.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/esp32-hal-uart.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/firmware_msc_fat.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/libb64/cdecode.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/libb64/cencode.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/main.cpp.o
          Compiling .pio/build/featheresp32/FrameworkArduino/stdlib_noniso.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/wiring_pulse.c.o
          Compiling .pio/build/featheresp32/FrameworkArduino/wiring_shift.c.o
          Archiving .pio/build/featheresp32/libFrameworkArduino.a
          Indexing .pio/build/featheresp32/libFrameworkArduino.a
          Linking .pio/build/featheresp32/firmware.elf
          Retrieving maximum program size .pio/build/featheresp32/firmware.elf
          Checking size .pio/build/featheresp32/firmware.elf
          Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
          RAM:   [===       ]  27.7% (used 90760 bytes from 327680 bytes)
          Flash: [=====     ]  50.1% (used 1577545 bytes from 3145728 bytes)
          Building .pio/build/featheresp32/firmware.bin
          esptool.py v4.2.1
          Creating esp32 image...
          Merged 25 ELF sections
          Successfully created esp32 image.
          ======================================================================================================================================================================= [SUCCESS] Took 362.75 seconds =======================================================================================================================================================================
           *  终端将被任务重用,按任意键关闭。 
          
          

          新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

          28634977052 1 条回复 最后回复 回复 引用 0
          • 28634977052
            2863497705 @小鱼
            最后由 编辑

            @小鱼 鱼总,我学习自定义接口控制OLED的时候,把libmircoros文件夹删掉后重新编译一直卡在-Downloaded rcl_logging_spdlog(ignored),我挂了一晚上它还依旧卡在这里,重新编译也依旧卡到这里

            小鱼小 1 条回复 最后回复 回复 引用 0
            • 小鱼小
              小鱼 技术大佬 @2863497705
              最后由 编辑

              @2863497705 换个网络参数试试

              新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

              28634977052 7645426077 2 条回复 最后回复 回复 引用 0
              • 28634977052
                2863497705 @小鱼
                最后由 编辑

                @小鱼 l泪目,确实是网络超时,谢谢你鱼总

                1 条回复 最后回复 回复 引用 0
                • 7645426077
                  花信可期 @小鱼
                  最后由 编辑

                  此回复已被删除!
                  1 条回复 最后回复 回复 引用 0
                  • 第一个帖子
                    最后一个帖子
                  皖ICP备16016415号-7
                  Powered by NodeBB | 鱼香ROS