https://code.cor-lab.de/https://code.cor-lab.de/favicon.ico?14019720732014-09-16T11:33:12ZOpen Source Collaboration PlatformRobotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58512014-09-16T11:33:12ZAnonymous
<ul><li><strong>Assignee</strong> set to <i>Anonymous</i></li></ul> Robotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58642014-09-17T11:21:08ZAnonymous
<ul><li><strong>File</strong> <a href="/attachments/download/407/ForcesQueue.java">ForcesQueue.java</a><a href="/attachments/407/ForcesQueue.java"><img alt="Magnifier" src="/images/magnifier.png?1396112202" /></a> added</li><li><strong>File</strong> <a href="/attachments/download/408/ForcesQueue.java">ForcesQueue.java</a><a href="/attachments/408/ForcesQueue.java"><img alt="Magnifier" src="/images/magnifier.png?1396112202" /></a> added</li></ul> Robotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58692014-09-17T12:24:23ZK. Nariokaknarioka@cor-lab.uni-bielefeld.de
<ul></ul><p>I have put rsb-m-0.11.0.jar in /vol/amarsi/x86-64-precise/trunk/share/java/ and referred it by adding the path in the function getRSBed. An error occurs with a function rsbWrite, which works well with the previous version of rsb-m (rsb-m-0.10.0.jar). Error message is as following.</p>
<pre>
>> getRSBed();
>> rInformer = rsbOpenInformer('/cca/comp/OncillaWorld/statechange/');
>> rsbWrite(rInformer, 32, 'rst.generic.ValueType', 'Value', 'INT');
Error using rsb.Informer/send
Java exception occurred:
rsb.converter.ConversionException: rsb.converter.NoSuchConverterException: No
converter with key rst.generic.ValueType$Value registered in ConverterMap
at
rsb.protocol.ProtocolConversion.serializeEventData(ProtocolConversion.java:129)
at
rsb.transport.socket.SocketOutConnector.push(SocketOutConnector.java:74)
at
rsb.eventprocessing.DefaultOutRouteConfigurator.publishSync(DefaultOutRouteConfigurator.java:62)
at rsb.Informer$InformerStateActive.send(Informer.java:156)
at rsb.Informer$InformerStateActive.send(Informer.java:165)
at rsb.Informer.send(Informer.java:302)
Caused by: rsb.converter.NoSuchConverterException: No converter with key
rst.generic.ValueType$Value registered in ConverterMap
at
rsb.converter.UnambiguousConverterMap.getConverter(UnambiguousConverterMap.java:49)
at
rsb.protocol.ProtocolConversion.serializeEventData(ProtocolConversion.java:123)
... 5 more
Error in rsbWrite (line 21)
informer.send(b.build);
</pre> Robotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58702014-09-17T12:56:22ZK. Nariokaknarioka@cor-lab.uni-bielefeld.de
<ul><li><strong>File</strong> <a href="/attachments/download/409/Example3.cpp">Example3.cpp</a><a href="/attachments/409/Example3.cpp"><img alt="Magnifier" src="/images/magnifier.png?1396112202" /></a> added</li></ul><p>It is still not working properly with rsb-m-0.11.0.jar to receive force information.</p>
<pre>
>> getRSBed();
>> fListener = rsbOpenListener('/oncilla/supervisor/force', 'ForcesQueue');
--
Sep 17, 2014 2:26:47 PM rsb.transport.socket.SocketInPushConnector handle
WARNING: Error while dispatching notification to registered handlers. Ignoring this.
rsb.converter.NoSuchConverterException: No converter with key .rst.dynamics.Forces registered in ConverterMap
at rsb.converter.UnambiguousConverterMap.getConverter(UnambiguousConverterMap.java:49)
at rsb.protocol.ProtocolConversion.fromNotification(ProtocolConversion.java:202)
at rsb.transport.socket.SocketInPushConnector.handle(SocketInPushConnector.java:112)
at rsb.transport.socket.BusBase.handleLocally(BusBase.java:336)
at rsb.transport.socket.BusServer.handleIncoming(BusServer.java:218)
at rsb.transport.socket.BusBase$ReceiveThread.doOneNotification(BusBase.java:111)
at rsb.transport.socket.BusBase$ReceiveThread.run(BusBase.java:162)
--
</pre><br />this warning message is repeatedly displayed until stopping webots simulator. Robotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58782014-09-19T11:14:00ZJ. Wienkejwienke@techfak.uni-bielefeld.de
<ul></ul><p>So for the Matlab problem, you are missing the converter registration. This can be done as visible in the examples, i.e.:<br /><pre>
rsb.matlab.ConverterRegistration.register('rst.generic.ValueType', 'Value')
</pre><br />This needs to be done before you create any informer or listener.</p> Robotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58792014-09-19T11:15:49ZJ. Wienkejwienke@techfak.uni-bielefeld.de
<ul></ul><p>You need to use the following to receive forces:<br /><pre>
rsb.matlab.ConverterRegistration.register('rst.dynamics.ForcesType', 'Forces')
</pre></p> Robotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58882014-09-22T13:46:03ZK. Nariokaknarioka@cor-lab.uni-bielefeld.de
<ul></ul><p>It's working after the converter registration. Thanks a lot for your help!</p> Robotics Service Bus - Bug #2002: Add ForcesQueue to rsb-matlab 0.9https://code.cor-lab.de/issues/2002?journal_id=58892014-09-22T14:07:28ZAnonymous
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul>