Demo similar to multithread_publisher_subscriber from rclc but in Zephyr. Multithreading not working as espected.

未關閉
#83 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
30/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
c

研究方向

從 Zephyr 教學和所引用的 Micro-ROS 與 Zephyr 應用程式開始,然後將其雙執行緒 publisher 設定與 rclc multithread_publisher_subscriber 示範進行比較。在 Olimex STM32-E407 上重現該行為,並判斷是否支援獨立執行緒發布以及執行多個 app;記錄已確認的行為以及所需的變更或限制。

由索引模型根據 Issue 內容生成。

描述

Issue template

  • Hardware description: Olimex STM32-E407
  • RTOS: Zephyr
  • Installation type: -
  • Version or commit hash: -
Steps to reproduce the issue

Install Micro-Ros like in the Tutorial: Tutorial Micro-ROS and Zephyr

Then add this App from this Repository: Micro-ROS and Zephyr
If that is run It will publish 2 numbers from 2 threads. The main thread and the second created thread.
But if the publisher in the main thread is commented out. Also, the second thread will not publish anymore.
Is that wanted behavior or am I doing something wrong?

Expected behavior

Multithreaded Threads can publish their publishers

Actual behavior

Multithreaded Threads only publish if the main thread is publishing.

Additional information

I also tried it with a timer, then the second thread will publish only if the timer is used and in the same time interval.

I want to use Micro-ROS multithreaded to give some threads a higher priority than others. One more question to that would be if it is possible to start multiple apps in Zephyr? something like:
ros2 run micro_ros_setup configure_firmware.sh ping_pong ping_pong2 --transport serial-usb
This command would not work but is there a way to run 2 apps?

主要語言
C
星號
101
分支
35
平均合併
4 天 16 小時
30 天內合併 PR
3

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

micro-ROS/micro-ROS-demos 的其他 Issue

查看 micro-ROS/micro-ROS-demos 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。