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

jsergeant's profile - activity

2017-09-08 13:29:02 -0500 received badge  Necromancer (source)
2017-09-08 13:29:02 -0500 received badge  Teacher (source)
2016-08-18 22:06:46 -0500 answered a question Timeout error in service defined in matlab

Hi,

The awesome Remo from MathWorks helped me through this process however it involves modifying the Matlab ROS Toolbox.

Enter edit robotics.ros.ServiceServer to open the ServiceServer.m file in your editor.

Search for the following line (should be on or around line 173):

obj.ResponseBuilder = com.mathworks.toolbox.robotics.ros.service.ServiceResponseBuilder;

You can now manually change the default timeout to a value other than 10 seconds by adding additional code. If you want your default timeout to be 2 minutes (120 seconds), add the following line:

obj.ResponseBuilder.setTimeout(120000);

Save the file and execute

rehash toolboxcache

Restart Matlab. After that, your service server should wait longer before returning a timeout message. Given extra effort you can probably break this out as an input argument when setting up the service server.

2016-08-15 22:10:19 -0500 commented question Timeout error in service defined in matlab

Hi musiv, Did you happen to find a resolution for this at all? I am having the same issue. Thanks, James

2015-09-10 00:59:57 -0500 commented answer Detect collision Stage

hi devesh, can you please elaborate on how you achieved this? I can't seem to get anything to compile on ROS jade

2015-07-28 21:34:24 -0500 received badge  Supporter (source)