micro-ROS / micro-ROS/micro_ros_espidf_component
Add custom ros message to micro_ros_espidf_component help
还没有人认领这个 Issue。
- 主要语言
- C
- 星标
- 419
- 派生
- 124
- 平均合并
- 21 小时 35 分钟
- 30 天内合并 PR
- 3
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 libmicroros.mk 以及 issue 中提到的 component 和 main CMakeLists.txt 文件开始;跟踪 micro_ros_msgs 的克隆方式,以及消息包如何进入 libmicroros.a。使用自定义的 .msg 目录重现本地 component 配置,然后记录受支持的项目布局,并验证生成的消息已包含在 ESP-IDF 构建中。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c, cmake
- 领域
- build-system, documentation, embedded-iot
- Issue 类型
- 文档
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100