micro-ROS / micro-ROS/micro-ROS-demos
Demo similar to multithread_publisher_subscriber from rclc but in Zephyr. Multithreading not working as espected.
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C
- Star
- 101
- Fork
- 35
- Merge trung bình
- 4 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 3
Mô tả
## 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](https://micro.ros.org/docs/tutorials/core/first_application_rtos/zephyr/)
Then add this App from this Repository: [Micro-ROS and Zephyr](https://github.com/Johannes-42/microROS_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?
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với hướng dẫn Zephyr và ứng dụng Micro-ROS và Zephyr được tham chiếu, sau đó so sánh thiết lập publisher hai luồng của ứng dụng này với bản demo rclc multithread_publisher_subscriber. Tái hiện hành vi trên Olimex STM32-E407 và xác định liệu việc các luồng xuất bản độc lập và chạy nhiều app có được hỗ trợ hay không; ghi lại hành vi đã được xác nhận cùng các thay đổi hoặc giới hạn cần thiết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- c
- Lĩnh vực
- embedded-iot, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100