ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosserial msg load

asked 2016-10-23 09:11:56 -0500

vKuehn gravatar image

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

edit retag flag offensive close merge delete

Comments

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?

gvdhoorn gravatar image gvdhoorn  ( 2016-10-24 02:46:26 -0500 )edit

if anyone has good experiences with rosserial_arduino e.g. on noisy sensors [..]

And I'm slightly confused as to how this is connected to your "why do everything on the arduino" question.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-24 02:47:01 -0500 )edit

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 ?

vKuehn gravatar image vKuehn  ( 2016-10-25 02:40:50 -0500 )edit

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?

gvdhoorn gravatar image gvdhoorn  ( 2016-10-25 04:24:53 -0500 )edit

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.

What you describe is the 'event' pattern. That is one option. Cyclical polling (infinite while) is another.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-25 04:25:32 -0500 )edit

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

vKuehn gravatar image vKuehn  ( 2016-10-25 05:19:59 -0500 )edit

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.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-25 05:36:49 -0500 )edit

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.

gvdhoorn gravatar image gvdhoorn  ( 2016-10-25 05:48:20 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-10-25 08:13:55 -0500

vKuehn gravatar image

updated 2016-10-27 05:25:12 -0500

for me worked so far a single character read/send stable over serial, especially when ftdi or wirless adapters where in between. So I thought something like a ros node would generate the message but the serial connection itself would be reduced to a bare minimum like char or int16 for values from/to the arduino. The ros_arduino_brdige seems to do something like that. Do you know where ros_arduino_msgs.msg comes from in that code ?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-23 08:25:27 -0500

Seen: 312 times

Last updated: Oct 27 '16