ros receive at the same time
4 visualizaciones (últimos 30 días)
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.
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.
Amrtanshu Raj el 2 de Jul. de 2021
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 !!