Open mgeppert opened 1 year ago
Found no problem, cannot replicate: https://asciinema.org/a/AurgtciFlcFTkzAaDn0oomqx5
ROS2 humble Ubuntu 22.04 ESP32
I am trying to add custom ros2 messages from a package called openbase2_msgs that contains 2 messages: EncoderData.msg and MotorVels.msg https://github.com/TheHassanShahzad/OpenBase2/tree/master/openbase2_msgs
When i copy paste the folder into /snap/arduino/85/Arduino/libraries/micro_ros_arduino-humble/extras/library_generation/extra_packages and then go back to /snap/arduino/85/Arduino/libraries/micro_ros_arduino-humble/ then run the docker script witj -p set to esp32, firstly i have a permission denied error. but making the .sh script executable fixes that
Then like you, i get lots of packages having an stderr output. For me around 43. When i look inside /src/openbase2_msgs i do see some folders and inside those my 2 .msg files
However when closing Arduino IDE and opening it up again, i cannot even compile an example Publisher for any board. Is my method wrong?
It will be easier to add custom msgs if you switch to platformio. You can add the custom msgs to extra_packages.
Issue template
Steps to reproduce the issue
Following the procedures:
https://github.com/micro-ROS/micro_ros_arduino/tree/iron#how-to-build-the-precompiled-library
to add a custom message to the system and recompile the library. I get this step:docker run -it --rm -v /home/mgeppert/Arduino/libraries/micro_ros_arduino-2.0.7-iron:/project --env MICROROS_LIBRARY_FOLDER=extras microros/micro_ros_static_library_builder:iron -p teensy4
Expected behavior
The build to be clean and useable in the Arduino IDE
Actual behavior
The image runs to the following point:
Additional information
This is my first experience with Docker and don't know how to find out what it is trying to do. Prior to creating the custom messages things where working well. So the static libraries seem to work well for what I was testing. The Host ROS Agent sees the new message correctly and compiled just fine.
I have tried to run the docker command both as non sudo and sudo. I even sudo su and tried to run it. Same errors.