ros receive at the same time

조회 수: 2 (최근 30일)
lee jonghyup
lee jonghyup 2021년 4월 6일
답변: Amrtanshu Raj 2021년 7월 2일
In the process of receiving ros, it takes time each time it is called for one subscriber, and I want to reduce it.
So, I am wondering if there is a way to call multiple subscribers at once.
example)
a=receive(sub1);
b=receive(sub2);
c=receive(sub3);
In this case, it takes 0.01 seconds each and takes a total of 0.03 seconds.
This is [a,b,c]=receive(sub1, sub2, sub3)
I am wondering if there is a way to load it in the same way.

답변 (1개)

Amrtanshu Raj
Amrtanshu Raj 2021년 7월 2일
Hi,
Currently there is no direct way to call multiple subscribers at once. However you can try using the callback methods to recieve ROS messages as mentioned in the documentation. That might speed up the process a bit.
Hope this helps !!

카테고리

Help CenterFile Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by