Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB rosgenmsg() Issue with zed_interfaces #5

Closed
jaronski opened this issue Nov 4, 2021 · 2 comments
Closed

MATLAB rosgenmsg() Issue with zed_interfaces #5

jaronski opened this issue Nov 4, 2021 · 2 comments
Labels

Comments

@jaronski
Copy link

jaronski commented Nov 4, 2021

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

@Myzhar
Copy link
Member

Myzhar commented Nov 4, 2021

Hi @jaronski
thank you for sharing this useful information for all the Matlab users.

@Myzhar Myzhar pinned this issue Nov 4, 2021
@github-actions
Copy 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants