MATLAB Answers

0

MATHLAB R2019B rosinit "ROS Executor Thread" error

Asked by Doruk Ugurer on 4 Nov 2019
Latest activity Answered by Cam Salzberger on 6 Nov 2019
When i run rosinit command i see error like below. i looked old answers, i have changed my computer language. also checked lisence and i get 1 ansver. Still i could not solve this problem.
Exception in thread "ROS Executor Thread": org.ros.exception.RosMessageRuntimeException: java.lang.ClassNotFoundException: std_msgs.uint32
at org.ros.internal.message.definition.MessageDefinitionReflectionProvider.get(MessageDefinitionReflectionProvider.java:66)
at org.ros.internal.message.Md5Generator.generate(Md5Generator.java:44)
at org.ros.internal.message.Md5Generator$1.variableValue(Md5Generator.java:61)
at org.ros.internal.message.definition.MessageDefinitionParser.parseField(MessageDefinitionParser.java:172)
at org.ros.internal.message.definition.MessageDefinitionParser.parse(MessageDefinitionParser.java:107)
at org.ros.internal.message.Md5Generator.generateText(Md5Generator.java:86)
at org.ros.internal.message.Md5Generator.generate(Md5Generator.java:49)
at org.ros.internal.message.Md5Generator$1.variableValue(Md5Generator.java:61)
at org.ros.internal.message.definition.MessageDefinitionParser.parseField(MessageDefinitionParser.java:172)
at org.ros.internal.message.definition.MessageDefinitionParser.parse(MessageDefinitionParser.java:107)
at org.ros.internal.message.Md5Generator.generateText(Md5Generator.java:86)
at org.ros.internal.message.Md5Generator.generate(Md5Generator.java:49)
at org.ros.internal.message.topic.TopicDescriptionFactory.newFromType(TopicDescriptionFactory.java:36)
at org.ros.internal.node.DefaultNode.newPublisher(DefaultNode.java:281)
at org.ros.internal.node.RosoutLogger.<init>(RosoutLogger.java:41)
at org.ros.internal.node.DefaultNode.start(DefaultNode.java:195)
at org.ros.internal.node.DefaultNode.access$000(DefaultNode.java:90)
at org.ros.internal.node.DefaultNode$1.run(DefaultNode.java:182)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: std_msgs.uint32
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.ros.internal.message.definition.MessageDefinitionReflectionProvider.get(MessageDefinitionReflectionProvider.java:62)
... 20 more

  0 Comments

Sign in to comment.

Tags

Products

1 Answer

Answer by Cam Salzberger on 6 Nov 2019

Hello Doruk,
std_msgs/Uint32 is a built-in supported message type, but this error looks like what can occur if you attempt to use custom messages that have not been fully generated and added to MATLAB. My first suggestion would be to remove any custom message paths from MATLAB (remove them from the MATLAB Search Path, as well as removing them from javaclasspath.txt). If you don't have any custom messages (they may be left over from a previous installation, so please do check), then you can try updating the built-in message definition types.
-Cam

  0 Comments

Sign in to comment.