紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
【自定义消息接口控制LED】教程中编译工程失败
-
【动手学ROS2-五-进阶-自定义消息接口控制LED】按照教程中步骤进行到2.2时colcon build报错
按照报错信息在package.xml中添加<member_of_group>rosidl_interface_packages</member_of_group>后可成功编译自定义接口包。
继续教程到进度2.3编译platformio项目时出错
请问该怎么解决嘞? -
@879032479 按照提示加一下,应该是我给漏了
尽量复制粘贴,我这边也好复制粘贴写出来
@小鱼 在 提问前必看!一定要看!必须看一下! 中说:
终端打印一定复制粘贴,方便回答者检索和引用(你可以在linux系统上打开浏览器进社区)
-
@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 ======================================================================================================================================================================= * 终端将被任务重用,按任意键关闭。
-
@小鱼 鱼总,我学习自定义接口控制OLED的时候,把libmircoros文件夹删掉后重新编译一直卡在-Downloaded rcl_logging_spdlog(ignored),我挂了一晚上它还依旧卡在这里,重新编译也依旧卡到这里
-
@2863497705 换个网络参数试试
-
@小鱼 l泪目,确实是网络超时,谢谢你鱼总
-
此回复已被删除!