micro-ROS / micro-ROS/micro_ros_nuttx_app

Modifications to run microROS on NuttX RTOS

未关闭
#31 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Makefile
星标
15
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先复现 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 内容生成。

评估

技术栈
c
领域
embedded-iot
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。