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

The size of image bytes array changed after published by ros in Android?

asked 2017-08-24 05:31:43 -0600

Zorcs gravatar image

updated 2017-08-24 05:32:34 -0600

I have the problem in one of my ros-android project. In this project, I need to send the sensor messages type of compressed image which comes from the camera preview data to ros-server, however when I subscribed the topic to decode a bitmap from what I had published, I found the size of the image bytes array changed, it get bigger! And I had test this in other program environment, like C++ and C#, this problem never happened! I don't know why, and so confused about where I made a mistake that to caused this problem.

I had post my question in StackOverflow for help, however, it's helpless. So I have to ask the question again in here. You guys need to check for more details to visit the StackOverflow link. I really need your help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-27 21:02:44 -0600

Zorcs gravatar image

OK! I got the answer by myself, ps, I'm really need to develop the good habit of checking API always before ask question!

edit flag offensive delete link more


It would be nice if you could clarify what the actual answer was, instead of linking to your SO question (which also only links to the API documentation).

gvdhoorn gravatar image gvdhoorn  ( 2017-08-28 02:05:04 -0600 )edit

@gvdhoorn I had re-edit my answer! Thanks for your suggestions!

Zorcs gravatar image Zorcs  ( 2017-08-28 05:46:12 -0600 )edit

I actually meant it would be nice if you could edit your answer here on ROS Answers. Not on StackOverflow.

gvdhoorn gravatar image gvdhoorn  ( 2017-08-28 05:48:25 -0600 )edit

Question Tools

1 follower


Asked: 2017-08-24 05:31:43 -0600

Seen: 204 times

Last updated: Aug 27 '17