Modifications to run microROS on NuttX RTOS
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- c
- 领域
- embedded-iot
调研方向
首先复现 NuttX 应用程序的编译,并结合 NuttX 的 dirent.h 中对 DIR 的定义检查 micro_ros_src/src/rcutils/src/filesystem.c。检查 RCUTILS_NO_FILESYSTEM 周围的条件处理,并验证示例无需重新定义 DIR 即可编译;issue 还提到了 microros/example_app/microros_main.c 中的更改,可能需要进行检查。
由索引模型根据 Issue 内容生成。
描述
Issue template
microROS on NuttX target runs correctly again, but there are some corrections required to correctly compile the example.
- Hardware description: nucelo-144 board
- RTOS: NuttX
- Installation type: microROS for NuttX (this example)
- Version or commit hash: galactic
Steps to reproduce the issue
The file micro_ros_src/src/rcutils/src/filesystem.c contains a redefinition of "DIR" (which is already defined in the dirent.h" file in NuTTX).
A test is required such
#ifdef DIR or #ifndef DIR....
Expected behavior
the nuttx application compile again
Actual behavior
There is the error about redefining DIR. To get the compilaton correctly I've commented the line
#ifdef RCUTILS_NO_FILESYSTEM
//typedef int DIR; <=======
#endif // _RCUTILS_NO_FILESYSTEM
typedef struct rcutils_dir_iter_state_t
{
#ifdef _WIN32
HANDLE handle;
WIN32_FIND_DATA data;
#else
DIR * dir;
#endif
} rcutils_dir_iter_state_t;
but it is not the correct solution.
Additional information
I've modified also the microros_main.c file in the microros/example_app
- 主要语言
- Makefile
- 星标
- 15
- 派生
- 9
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
micro-ROS/micro_ros_nuttx_app 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 18/100
micro-ROS/micro_ros_nuttx_app#17 · 31 条评论 ·
查看 micro-ROS/micro_ros_nuttx_app 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
Koenkk/zigbee-herdsman-converters#13502 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
immortalwrt/immortalwrt#2501 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
zephyrproject-rtos/zephyr#122261 ·
维护者通常 3 天内回复
-
area: core priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 72/100
EPFL-TOP/smart-microscope-control#132 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
FujiNetWIFI/fujinet-config#264 ·
维护者通常 1 天内回复