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

publishing file stream with ros

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

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 -0600

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 -0600

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

Question Tools


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

Seen: 506 times

Last updated: Jun 27 '11