You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when trying to get zed_interfaces custom messages into Matlab (Windows) i ran into the following error:
`Error using logical
NaN values cannot be converted to logicals.
Error in ros.internal.MessageParser/getDataStructure (line 399)
feval(obj.MLTypeConverter(dataType),str2double(constantValues{i}));
Error in ros.internal.ServiceParser/getContentsOfServiceDefinition (line 161)
serviceDefinition = getDataStructure(parser,filePath,...
Error in ros.internal.ServiceParser/getServiceDefinitionHelper (line 123)
getContentsOfServiceDefinition(obj,parser,filePath,contentsOfFileForRequest,CirDependList);
Error in ros.internal.ServiceParser/getServiceDefinition (line 80)
getServiceDefinitionHelper(obj,CirDependList);
Error in ros.internal.clientserverEmitter (line 43)
[msgDefnForRequest, msgDefnForResponse] = getServiceDefinition(parser);
Error in rosgenmsg (line 348)
[genFiles, requestDependencies, responseDependencies] = ros.internal.clientserverEmitter(...`
After debugging in Matlab i found out that the srv start_remote_stream.srv is causing the trouble. When removing this srv file from the ros_custom_msgs folder and commenting out in the CMakeLists.txt i was able to rosgenmsg the zed_interface and have all the custom msgs and srvs in matlab EXCEPT start_remote_stream.srv.
Ahh also if you have trouble with rosgenmsg and MATLAB 2021b check this link:
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days
when trying to get zed_interfaces custom messages into Matlab (Windows) i ran into the following error:
`Error using logical
NaN values cannot be converted to logicals.
Error in ros.internal.MessageParser/getDataStructure (line 399)
feval(obj.MLTypeConverter(dataType),str2double(constantValues{i}));
Error in ros.internal.ServiceParser/getContentsOfServiceDefinition (line 161)
serviceDefinition = getDataStructure(parser,filePath,...
Error in ros.internal.ServiceParser/getServiceDefinitionHelper (line 123)
getContentsOfServiceDefinition(obj,parser,filePath,contentsOfFileForRequest,CirDependList);
Error in ros.internal.ServiceParser/getServiceDefinition (line 80)
getServiceDefinitionHelper(obj,CirDependList);
Error in ros.internal.clientserverEmitter (line 43)
[msgDefnForRequest, msgDefnForResponse] = getServiceDefinition(parser);
Error in rosgenmsg (line 348)
[genFiles, requestDependencies, responseDependencies] = ros.internal.clientserverEmitter(...`
After debugging in Matlab i found out that the srv start_remote_stream.srv is causing the trouble. When removing this srv file from the ros_custom_msgs folder and commenting out in the CMakeLists.txt i was able to rosgenmsg the zed_interface and have all the custom msgs and srvs in matlab EXCEPT start_remote_stream.srv.
Ahh also if you have trouble with rosgenmsg and MATLAB 2021b check this link:
and look for the temporary workaround ... this is important
Maybe this helps someone
The text was updated successfully, but these errors were encountered: