Ask Your Question

publishing file stream with ros

asked 2011-06-27 03:21:44 -0500

cmsoda gravatar image

Hi, I would like to create a service which publish as a topic a byte stream with the content of a file. It is possible to define inside a Ros service a data type variables ifstream? or could it be possible to use a primitive type for this purpose? Best Regards

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2011-06-27 04:39:45 -0500

dornhege gravatar image

You can only use some basic data types. For your application you would use a primitive type (probably an uint8[]).

edit flag offensive delete link more

answered 2011-06-27 06:47:46 -0500

fergs gravatar image

You might be able to send your data as a String, encoded using something like Base64 and decoded on the other end. I'm not sure if you'll run into any issues to due string lengths.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools


Asked: 2011-06-27 03:21:44 -0500

Seen: 352 times

Last updated: Jun 27 '11