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

Rosserial UInt8MultiArray sends wrong data in transfer on Rosserial Jade

asked 2016-12-20 17:42:50 -0500

dupli gravatar image

When sending an array of unsigned chars over rosserial the data that gets sent over looks the same as when you try to reference arrays right after their memory has been allocated but no data has been initialized. What fixed the problem in the end was using any other multiarray type and making no changes anywhere else. I was wondering if this was a bug with the message type or there is something special you need to do to get the UInt8Multiarray to work?

edit retag flag offensive close merge delete

Comments

@dupli: it would be nice if you could include a snippet showing how you are initialising and populating your MultiArray. As @ahendrix mentions, rosserial does things slightly different in some cases, so perhaps we can clear that up.

gvdhoorn gravatar image gvdhoorn  ( 2016-12-21 03:00:45 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-12-20 18:30:40 -0500

ahendrix gravatar image

rosserial stores the array length separately from the data (unlike roscpp), so you may want to make sure that you're initialing the length correctly.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-12-20 17:42:50 -0500

Seen: 149 times

Last updated: Dec 20 '16