Comments (12)
In this video I'm on v4.3 but as you can see in our CI we support v4.1, v4.2 and v4.3: https://github.com/micro-ROS/micro_ros_espidf_component/actions/runs/703714929
from micro_ros_espidf_component.
this was helpful. Not sure what I was doing wrong, but I am sure it was a combo of things.
If I follow the example on github and in the video you shared it 'just works'
- adding the components folder
mkdir components
- and cloning the micro_ros_esp_idf
--cd components
-- clone the micro_ros_esp_idf - cd to main folder
cd ..
- source esp-idf (make sure you have added the
pip3 install catkin_pkg lark-parser empy
- idf.py
I find that if you have been changing versions of esp-idf, it is necessary to delete the ~/.espressif
folder.
from micro_ros_espidf_component.
ah..hmmm... The solution is that it wasn't completely downloading the micro_ros_src and other libraries which contain things like rcl.h I deleted the entire micro_ros_espidf_component and tried again with the docker container and success.
from micro_ros_espidf_component.
Have you installed the dependencies listed here: https://github.com/micro-ROS/micro_ros_espidf_component#dependencies ?
from micro_ros_espidf_component.
I have replicated this with a simple project and it works:
https://asciinema.org/a/G39IxQZkzipXSxrnbqepXh6iF
from micro_ros_espidf_component.
What version of esp-idf are you downloading? release4.2, release v4.3?
Do you delete the .espressif folder and run install.sh again when you switch versions of esp-idf?
from micro_ros_espidf_component.
hate to reopen an issue, but planning to use microros and having similar issues:
- idf.py version ESP-IDF v4.2.2-383-g125cf671e7
- microros - foxy c0c003d (HEAD -> foxy, origin/foxy)
- pwd components/micro_ros_espidf_component/examples/int32_publisher
I did ensure all required software and the installation was followed...including the colcon and empy
It is failing at /main/main.c:11:10: fatal error: rcl/rcl.h: No such file or directory
I tried using the docker to build and got the same error:
docker run -it --rm --user espidf --volume="/etc/timezone:/etc/timezone:ro" -v $(pwd):/micro_ros_espidf_component -v /dev:/dev --privileged --workdir /micro_ros_espidf_component microros/esp-idf-microros:latest /bin/bash -c "cd examples/int32_publisher; idf.py menuconfig build flash monitor"
from micro_ros_espidf_component.
I have replicated this with a simple project and it works:
In this video, you already start with a folder named int32_publisher. Could you show the steps you followed before this video started, please? I assumed the previous steps but I must have done something wrong because I am getting errors.
from micro_ros_espidf_component.
The folder is this one: https://github.com/micro-ROS/micro_ros_espidf_component/tree/humble/examples/int32_publisher
from micro_ros_espidf_component.
The folder is this one: https://github.com/micro-ROS/micro_ros_espidf_component/tree/humble/examples/int32_publisher
Thanks Pablo, for your quick reply. So I downloaded the folder int32_publisher
into my esp-idf
folder. Then I followed the instructions exactly as in the video but when I run idf.py
build it throws command not found
. Then I go back to the esp-idf
folder and run ./install.sh
and . ./export.sh
and pip3 install catkin_pkg lark-parser empy colcon-common-extensions
. Then I go to the int32_publisher
folder again and run idf.py set-target esp32
or idf.py menuconfig
or idf.py build
and they all throw errors. I must be doing something wrong but I don't know what.
Also, since I am using Foxy, I downloaded the foxy version of int32_publisher
and when I clone the repo, I do a git switch foxy
.
from micro_ros_espidf_component.
. ./export.sh
I tried repeating the steps a few times, also with other examples but this is the error I get.
What I don't know if I'm doing right is that I copy the example folder, in this case int32_publisher_custom_transport
, from the repository. Then I follow the video, which clones the repository in the components folder which also copies again the examples.
If I copy the whole repository (foxy version) instead of just the example folder and then go to the examples folder and from there I follow Pablo's video, which includes cloning the same repo again in the components folder, then I get the same error as the title of this issue.
../main/main.c:11:10: fatal error: rcl/rcl.h: No such file or directory
#include <rcl/rcl.h>
^~~~~~~~~~~
compilation terminated.
Am I doing something wrong? Can someone help me find the error? I just wanna run a simple example.
from micro_ros_espidf_component.
I am able to build these examples on Ubuntu 22.04, i am getting error while building in Ubuntu 20..
Any suggestion ?
from micro_ros_espidf_component.
Related Issues (20)
- ESP32 create subscriber for sensor_msgs/msg/Joy did not work HOT 2
- Size Limit on Sequence Type Members of Laser Scan Msg HOT 3
- app-colcon.meta vs colcon.meta HOT 3
- Adding a timeout parameter to rclc_support_init() HOT 3
- idf.py build failing in Ubuntu 20.04 HOT 2
- Cannot build int32_publisher_custom_transport with docker container HOT 5
- Communication between Micro-ROS Agent (@RPi 4B) and Client (@esp32-s3) is not established HOT 2
- ESP32 uROS ethernet netif bug
- vscode+espidf5.2 Could not complete HOT 3
- Issues compiling with W5500 enabled HOT 6
- idf.py menuconfig error related to xtensa-esp-elf tool HOT 6
- FreeRTOS tasks are not working HOT 2
- microxrcedds_client fails to build with -DUCLIENT_PROFILE_MULTITHREAD=ON HOT 3
- Small question regarding the microROS agent. HOT 2
- Adding a custom interface or message to esp-idf microROS HOT 2
- Action server does not create
- Problem with the build of the "int32_publisher" example on ESP32-S3 HOT 1
- How can I configure Security QoS? HOT 5
- Is it feasible to select interfaces (UART/UDP) dynamically at runtime during the initialization phase?
- Agent does not communicate with Client HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro_ros_espidf_component.