Ask Your Question
0

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

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

Zorcs gravatar image

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

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
0

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

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

Comments

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 -0500 )edit

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

Zorcs gravatar image Zorcs  ( 2017-08-28 05:46:12 -0500 )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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 96 times

Last updated: Aug 27 '17