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

message size limit

asked 2015-04-24 07:34:38 -0500

Wolf gravatar image

In one of my nodes I get in a service call

a message of over a gigabyte was predicted in tcpros. that seems highly unlikely, so I'll assume protocol synchronization is lost.

In this case the msg is really 1+ Gig. Is is possible to increase the messages size limit temporary for this service call?

edit retag flag offensive close merge delete

Comments

WTF? 1 Gigabyte? What are you transmitting there?

cyborg-x1 gravatar image cyborg-x1  ( 2015-04-24 08:08:51 -0500 )edit

is kind of a map stitched from many images, sent once from the node that creates is to the node that uses it

Wolf gravatar image Wolf  ( 2015-04-26 06:44:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-04-25 02:31:58 -0500

ahendrix gravatar image

The message size limit in ROS is hardcoded. It should be possible to change it, but you'll need to modify roscpp and recompile it to do so.

A quick search on github turns up four locations that might be producing your error message: https://github.com/ros/ros_comm/searc...

edit flag offensive delete link more

Comments

Thank you for the hint! I managed to compress the data before transferring it, which works around the issue as well....

Wolf gravatar image Wolf  ( 2015-04-26 06:44:49 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2015-04-24 07:34:38 -0500

Seen: 2,958 times

Last updated: Apr 25 '15