linorobot / atom_matrix_ros2

1 stars 1 forks source link

Assertion error? #1

Closed samuk closed 2 years ago

samuk commented 2 years ago

I'm trying to install it on a generic ESP32. 22.04/ Humble/ Pi4

platformio.ini

platform = espressif32
board = esp32dev
framework = arduino
upload_port = /dev/ttyUSB0
upload_speed = 1500000
board_microros_transport = serial
board_microros_distro = humble
lib_deps = FastLED
;    M5Atom
     Servo@^1.1.8
    https://github.com/micro-ROS/micro_ros_platformio
;platform_packages = toolchain-gccarmnoneeabi@~1.90301.0

This is the error


pio run --target upload
Processing default (platform: espressif32; board: esp32dev; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Removing unused dependencies...
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.0.0) > Espressif ESP32 Dev Module
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.20003.220626 (2.0.3) 
 - tool-esptoolpy @ 1.30300.0 (3.3.0) 
 - tool-mkfatfs @ 2.0.1 
 - tool-mklittlefs @ 1.203.210628 (2.3) 
 - tool-mkspiffs @ 2.230.0 (2.30) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
Converting firmware.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Installing pyyaml with pip at PlatformIO environment
/home/ubuntu/.platformio/penv/bin/python -m pip install pyyaml
Requirement already satisfied: pyyaml in /home/ubuntu/.platformio/penv/lib/python3.10/site-packages (6.0)
Installing markupsafe==2.0.1 with pip at PlatformIO environment
/home/ubuntu/.platformio/penv/bin/python -m pip install markupsafe==2.0.1
Requirement already satisfied: markupsafe==2.0.1 in /home/ubuntu/.platformio/penv/lib/python3.10/site-packages (2.0.1)
Configuring esp32dev with transport serial
micro-ROS already built
Library Manager: Installing Servo @ ^1.1.8
Library Manager: Warning! More than one package has been found by Servo @ ^1.1.8 requirements:
Library Manager:  - arduino-libraries/Servo@1.1.8
Library Manager:  - mbed-simon/Servo@0.0.0+sha.36b69a7ced07
Library Manager:  - mbed-jdenkers/Servo@0.0.0+sha.352133517ccc
Library Manager:  - mbed-cristian-junca/Servo@0.0.0+sha.ae79368b0793
Library Manager:  - mbed-andrewrussell/Servo@0.0.0+sha.4c315bcd91b4
Library Manager:  - mbed-cr0n0s20/Servo@0.0.0+sha.5490c22f727d
Library Manager:  - mbed-matsu/Servo@0.0.0+sha.80a784fc179c
Library Manager:  - mbed-ecesat/Servo@0.0.0+sha.1f1751d33629
Library Manager:  - mbed-wisnup/Servo@0.0.0+sha.7fd570dc03ee
Library Manager:  - mbed-zabak6559/Servo@0.0.0+sha.c8100856c4a0
Library Manager: Please specify detailed REQUIREMENTS using package owner and version (shown above) to avoid name conflicts

Unpacking  [------------------------------------]    0%
Unpacking  [#-----------------------------------]    3%
Unpacking  [##----------------------------------]    6%
Unpacking  [###---------------------------------]    9%
Unpacking  [####--------------------------------]   12%
Unpacking  [#####-------------------------------]   15%
Unpacking  [######------------------------------]   18%
Unpacking  [#######-----------------------------]   21%
Unpacking  [########----------------------------]   24%
Unpacking  [#########---------------------------]   27%
Unpacking  [##########--------------------------]   30%
Unpacking  [############------------------------]   33%
Unpacking  [#############-----------------------]   36%
Unpacking  [##############----------------------]   39%
Unpacking  [###############---------------------]   42%
Unpacking  [################--------------------]   45%
Unpacking  [#################-------------------]   48%
Unpacking  [##################------------------]   51%
Unpacking  [###################-----------------]   54%
Unpacking  [####################----------------]   57%
Unpacking  [#####################---------------]   60%
Unpacking  [######################--------------]   63%
Unpacking  [########################------------]   66%
Unpacking  [#########################-----------]   69%
Unpacking  [##########################----------]   72%
Unpacking  [###########################---------]   75%
Unpacking  [############################--------]   78%
Unpacking  [#############################-------]   81%
Unpacking  [##############################------]   84%
Unpacking  [###############################-----]   87%
Unpacking  [################################----]   90%
Unpacking  [#################################---]   93%
Unpacking  [##################################--]   96%
Unpacking  [####################################]  100%
Library Manager: Servo@1.1.8 has been installed!
AssertionError: :
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py", line 188:
    env.SConscript("$BUILD_SCRIPT")
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/ubuntu/.platformio/platforms/espressif32/builder/main.py", line 283:
    target_elf = env.BuildProgram()
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/platformio.py", line 63:
    env.ProcessProjectDeps()
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/platformio.py", line 139:
    plb = env.ConfigureProjectLibBuilder()
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piolib.py", line 1174:
    lib_builders = env.GetLibBuilders()
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piolib.py", line 1085:
    lb = LibBuilderFactory.new(env, lib_dir)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piolib.py", line 62:
    obj = globals()[clsname](env, path, verbose=verbose)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piolib.py", line 152:
    self.process_extra_options()
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piolib.py", line 300:
    self.env.SConscript(
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/SConscript.py", line 597:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
  File "/home/ubuntu/linorobot2_hardware/firmware/.pio/libdeps/default/micro_ros_platformio/extra_script.py", line 64:
    global_env.AddCustomTarget("clean_microros", None, clean_microros_callback, title="Clean Micro-ROS", description="Clean Micro-ROS build environment")
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piotarget.py", line 89:
    return env.AddTarget(group="Custom", *args, **kwargs)
  File "/home/ubuntu/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Util.py", line 742:
    return self.method(*nargs, **kwargs)
  File "/home/ubuntu/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piotarget.py", line 74:
    assert name not in env["__PIO_TARGETS"]
======================================================================== [FAILED] Took 13.95 seconds ===========================================
samuk commented 2 years ago

Ah if I specify the Arduino version of Servo I get some more interesting errors

It looks like what I may need is https://registry.platformio.org/libraries/madhephaestus/ESP32Servo/installation

samuk commented 2 years ago

fixed with

ubuntu@ubuntu:~$ wget https://github.com/linorobot/atom_matrix_ros2/archive/refs/heads/main.zip ubuntu@ubuntu:~$ unzip main.zip