rosserial msg load
Hi,
can someone please explain why it makes sense to generate the ros msg e.g. on the arduino ?
From the wiki and the code it looks like a lot of has to be done to generate a large message for the serial connection. Where from my experiences it can be unreliable on arduinos if messages are to big or to much time is needed for the generation.
if anyone has good experiences with rosserial_arduino e.g. on noisy sensors or can explain the approach ?
Thanks
It's not in your question explicitly, but I'm getting the feeling that you have an alternative in mind. Perhaps add that to your question?
And I'm slightly confused as to how this is connected to your "why do everything on the arduino" question.
As described the implementation looks like it is creating a ros message on the arduino and than sends the complete message every time to the host if there is something. So a sensor would create some noise, right ? if that is not a problem did some one really succeed using this reliable ?
Could be that I haven't had enough coffee yet, but I don't understand what the noisy sensor has to do with it. Unless you see the sensor somehow interfering with the sending/receiving of messages?
What you describe is the 'event' pattern. That is one option. Cyclical polling (infinite
while
) is another.ok, this was the try to think about possible problems before encountering. I will use the stuff and come back with a more concrete thing. Thanks for trying to help
I'd like to help if I can, it's just that I want to make sure I understand your question before trying to answer, hoping to avoid adding to the confusion.
And
rosserial
has some problematic parts, for sure. Be sure to check out some of the other answers here on ROS Answers, and the main github repository as well.