MATLAB Answers

I am not able to read data from the ROS file

14 ビュー (過去 30 日間)
Preeti Sar
Preeti Sar 2015 年 12 月 18 日
回答済み: Tohru Kikawada 2019 年 5 月 2 日
msgs = readMessages(bag)
Error using robotics.ros.BagSelection/deserializeMessages (line 444)
Java exception occurred:
org.ros.exception.RosMessageRuntimeException: java.lang.ClassNotFoundException: rt_msgs.Odom
at org.ros.internal.message.definition.MessageDefinitionReflectionProvider.get(
at org.ros.internal.message.DefaultMessageFactory.newFromType(
at org.ros.internal.message.DefaultMessageDeserializer.deserialize(
Caused by: java.lang.ClassNotFoundException: rt_msgs.Odom
at$ Source)
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.ros.internal.message.definition.MessageDefinitionReflectionProvider.get(
... 2 more
Error in robotics.ros.BagSelection/readMessages (line 194)
msgs = obj.deserializeMessages(obj.MessageList, rows);

  2 件のコメント

Image Analyst
Image Analyst 2015 年 12 月 18 日
Personally, I'd call the Mathworks technical support for any Java related errors. Make sure you have the latest Java release - or maybe not - that might be the problem. Who knows?
Ahmad Drak
Ahmad Drak 2016 年 4 月 25 日
Did you by any chance find a solution to this problem?


回答 (1 件)

Tohru Kikawada
Tohru Kikawada 2019 年 5 月 2 日
You'll need to install custom ROS messages for rt_msgs.Odom. See the following link for details:

  0 件のコメント


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by