micro-ROS / micro-ROS/micro_ros_espidf_component

Add custom ros message to micro_ros_espidf_component help

Đang mở
#310 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
C
Star
419
Fork
124
Merge trung bình
21 giờ 35 phút
Pull request đã merge (30 ngày)
3

Mô tả

Hi, my project uses micro_ros_espidf_component which works fine with standard int32 messages, but we would like to use a custom message. To be fair I am not an expert in either cmake build system or esp-idf framework.

Our project looks like this:
```
- ourProject/
- CMakeLists.txt
- sdkconfig
- components/
- micro_ros_espidf_component // copy of repo, revision jazzy
- main/
- CMakeLists.txt
- main.c
- idf_component.yml // micro_ros_espidf_component listed as repo dependency
- build/
```
As far as my troubleshooting goes, my attempts to add a `components/msgs` subdirectory have failed and I have since realised that the custom message(s) need to be part of the `micro_ros_espidf_component` itself so they are compiled into `libmicroros.a`.

* My approach is to copy `micro_ros_espidf_component` into a new `components` directory. Then `main/idf_component.yml` lists this as a local directory dependency rather than previously a repo dependency
* the msgs components are not part of `micro_ros_espidf_component` instead `micro_ros_espidf_component/libmicroros.mk` does `git clone https://github.com/micro-ROS/micro_ros_msgs`.
* THE BIG QUESTION What do I need to do here to add a custom message directory which is then picked up and compiled into `libmicroros.a`?
* Ideally I would like to add a MyCustomMessage in a `myrepo/components/msgs/MyCustomMessage.msg` file along the pattern of [this video](https://www.youtube.com/watch?v=E_xBPI8SQig)

Any help is appreciated.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với libmicroros.mk và các tệp component và main CMakeLists.txt được đề cập trong issue; theo dõi cách micro_ros_msgs được clone và cách các gói message được đưa vào libmicroros.a. Tái hiện cấu hình component cục bộ bằng một thư mục .msg tùy chỉnh, sau đó ghi lại bố cục project được hỗ trợ và xác minh rằng message được tạo đã được đưa vào bản build ESP-IDF.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
c, cmake
Lĩnh vực
build-system, documentation, embedded-iot
Loại issue
Tài liệu
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.