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

serial monitor of arduino IDE showing different output

asked 2014-12-19 03:52:30 -0500

Mind_hunter gravatar image

I am accessing ros messages in arduino by serializing it through ros serial. But when i am sending some text from arduino code through serial it is showing different output in serial monitor of arduino ide. Seems all the text have mixed with some other data .What can be possible reason?Thanks

edit retag flag offensive close merge delete

Comments

1

Please copy and paste both outputs. Could it be that you use const char* in Arduino and String in ROS?

Andromeda gravatar image Andromeda  ( 2014-12-19 04:43:17 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-12-19 05:35:23 -0500

dornhege gravatar image

rosserial encodes the messages. It does not just send the raw data as when you use serial directly. That is why you see different things.

edit flag offensive delete link more

Comments

I thought if it send message data then only it encodes it , like in case when we advertise a topic....So does it encode the normal message also before sending it through serial?

Mind_hunter gravatar image Mind_hunter  ( 2014-12-19 06:47:38 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-12-19 03:52:30 -0500

Seen: 148 times

Last updated: Dec 19 '14