Ros Matlab i/o and /tf
Hello everybody, I try to use the topic /tf in order to obtain the pose of the end-effector of the PR2. Unfortunately I can't subscribe to the topic, I have this error:
>SubTf = rosmatlab.subscriber('/tf', 'tf/tfMessage',100,node);
Error using rosmatlab.node/addSubscriber (line 661)
Java exception occurred:
org.ros.exception.RosMessageRuntimeException: java.lang.ClassNotFoundException: tf.tfMessage
at org.ros.internal.message.definition.MessageDefinitionReflectionProvider.get(MessageDefinitionReflectionProvider.java:58)
at org.ros.internal.message.Md5Generator.generate(Md5Generator.java:44)
at org.ros.internal.message.topic.TopicDescriptionFactory.newFromType(TopicDescriptionFactory.java:36)
at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:286)
at org.ros.internal.node.DefaultNode.newSubscriber(DefaultNode.java:297)
Caused by: java.lang.ClassNotFoundException: tf.tfMessage
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown 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(MessageDefinitionReflectionProvider.java:54)
... 4 more
Error in rosmatlab.subscriber (line 38)
sub = node.addSubscriber(topicName,topicMessageType,bufferLimit);
If you have any idea to resolve it, it would be great.
did you solve this problem?