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

オープン
#83 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
c

調査の方向性

Zephyr tutorial と、参照されている Micro-ROS および Zephyr application から始め、2 スレッドの publisher 構成を rclc multithread_publisher_subscriber demo と比較してください。Olimex STM32-E407 で動作を再現し、独立したスレッドによる publishing と複数のアプリケーションの実行がサポートされているかを確認してください。確認できた動作と、必要な変更または制限事項を文書化してください。

索引モデルが 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時間
マージ済み PR(30日)
3

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

micro-ROS/micro-ROS-demos のほかの issue

micro-ROS/micro-ROS-demos の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。