<div dir="ltr"><div><div><div>返信が遅れて申し訳ございません。<br><br>当方が行った操作は、<br></div>1. コンポーネントを立ち上げる<br></div>2. pythonスクリプト用いて、以下の操作を行った。<br>/_/_/_/_/_/_/_/_/_/_/_/_/_/_/<br> user = rtm.findRTC("userRTC0")<br> kobuki= rtm.findRTC("MobileRobot0")<br>
<br> if user==None:<br> print "no component"<br> return<br><br> if kobuki==None:<br> print "no robot"<br> return<br> <br> rtm.connectPorts(user.port("out"), kobuki.port("vel"))<br>
</div>/_/_/_/_/_/_/_/_/_/_/_/_/_/_/<br><br>これらの二つのrtcは .start() .stop() などの操作は可能で、参照はうまく取得していると思うが、<br>connectPortsを実行すると、以下のエラーメッセージがターミナルで表示された。<br><br>Exception in thread "AWT-EventQueue-1" org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 206 completed: No<br>
at com.sun.corba.se.impl.logging.ORBUtilSystemException.extractWrongType(ORBUtilSystemException.java:215)<br> at com.sun.corba.se.impl.logging.ORBUtilSystemException.extractWrongType(ORBUtilSystemException.java:239)<br>
at com.sun.corba.se.impl.corba.AnyImpl.checkExtractBadOperation(AnyImpl.java:665)<br> at com.sun.corba.se.impl.corba.AnyImpl.extract_string(AnyImpl.java:967)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:622)<br>
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:175)<br> at org.python.core.PyObject.__call__(PyObject.java:355)<br> at org.python.core.PyMethod.__call__(PyMethod.java:215)<br> at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)<br>
at org.python.core.PyMethod.__call__(PyMethod.java:206)<br> at org.python.core.PyObject.__call__(PyObject.java:381)<br> at org.python.core.PyObject.__call__(PyObject.java:385)<br> at rtm$py.dataTypeOfPort$32(/usr/local/share/hrpsys/jython/rtm.py:422)<br>
at rtm$py.call_function(/usr/local/share/hrpsys/jython/rtm.py)<br> at org.python.core.PyTableCode.call(PyTableCode.java:165)<br> at org.python.core.PyBaseCode.call(PyBaseCode.java:131)<br> at org.python.core.PyFunction.__call__(PyFunction.java:317)<br>
at rtm$py.connectPorts$33(/usr/local/share/hrpsys/jython/rtm.py:436)<br> at rtm$py.call_function(/usr/local/share/hrpsys/jython/rtm.py)<br> at org.python.core.PyTableCode.call(PyTableCode.java:165)<br> at org.python.core.PyBaseCode.call(PyBaseCode.java:297)<br>
at org.python.core.PyBaseCode.call(PyBaseCode.java:138)<br> at org.python.core.PyFunction.__call__(PyFunction.java:327)<br> at user$py.createComps$4(/home/wu/src/HRP3.1x/newPro/script/user.py:75)<br> at user$py.call_function(/home/wu/src/HRP3.1x/newPro/script/user.py)<br>
at org.python.core.PyTableCode.call(PyTableCode.java:165)<br> at org.python.core.PyBaseCode.call(PyBaseCode.java:131)<br> at org.python.core.PyFunction.__call__(PyFunction.java:317)<br> at user$py.init$1(/home/wu/src/HRP3.1x/newPro/script/user.py:36)<br>
at user$py.call_function(/home/wu/src/HRP3.1x/newPro/script/user.py)<br> at org.python.core.PyTableCode.call(PyTableCode.java:165)<br> at org.python.core.PyBaseCode.call(PyBaseCode.java:297)<br> at org.python.core.PyBaseCode.call(PyBaseCode.java:111)<br>
at org.python.core.PyFunction.__call__(PyFunction.java:307)<br> at org.python.pycode._pyx0.setupRobot$2(./gui.py:36)<br> at org.python.pycode._pyx0.call_function(./gui.py)<br> at org.python.core.PyTableCode.call(PyTableCode.java:165)<br>
at org.python.core.PyBaseCode.call(PyBaseCode.java:117)<br> at org.python.core.PyFunction.__call__(PyFunction.java:307)<br> at org.python.pycode._pyx16.tmpfunc$1(<string>:1)<br> at org.python.pycode._pyx16.call_function(<string>)<br>
at org.python.core.PyTableCode.call(PyTableCode.java:165)<br> at org.python.core.PyBaseCode.call(PyBaseCode.java:297)<br> at org.python.core.PyFunction.__call__(PyFunction.java:370)<br> at org.python.core.PyFunction.function___call__(PyFunction.java:375)<br>
at org.python.core.PyFunction.__call__(PyFunction.java:365)<br> at org.python.core.PyCompoundCallable.__call__(PyCompoundCallable.java:26)<br> at org.python.core.PyObject.__call__(PyObject.java:367)<br> at org.python.core.PyObject._jcallexc(PyObject.java:3500)<br>
at org.python.core.PyObject._jcall(PyObject.java:3532)<br> at org.python.proxies.java.awt.event.ActionListener.actionPerformed(Unknown Source)<br> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)<br>
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)<br> at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)<br> at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)<br>
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)<br> at java.awt.Component.processMouseEvent(Component.java:6288)<br> at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)<br>
at java.awt.Component.processEvent(Component.java:6053)<br> at java.awt.Container.processEvent(Container.java:2045)<br> at java.awt.Component.dispatchEventImpl(Component.java:4649)<br> at java.awt.Container.dispatchEventImpl(Container.java:2103)<br>
at java.awt.Component.dispatchEvent(Component.java:4475)<br> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)<br> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)<br>
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)<br> at java.awt.Container.dispatchEventImpl(Container.java:2089)<br> at java.awt.Window.dispatchEventImpl(Window.java:2588)<br> at java.awt.Component.dispatchEvent(Component.java:4475)<br>
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:675)<br> at java.awt.EventQueue.access$300(EventQueue.java:96)<br> at java.awt.EventQueue$2.run(EventQueue.java:634)<br> at java.awt.EventQueue$2.run(EventQueue.java:632)<br>
at java.security.AccessController.doPrivileged(Native Method)<br> at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108)<br> at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:119)<br>
at java.awt.EventQueue$3.run(EventQueue.java:648)<br> at java.awt.EventQueue$3.run(EventQueue.java:646)<br> at java.security.AccessController.doPrivileged(Native Method)<br> at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108)<br>
at java.awt.EventQueue.dispatchEvent(EventQueue.java:645)<br> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)<br> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)<br>
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)<br> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)<br> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)<br>
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)<br><br><br>何か原因なんでしょうか。<br>よろしくお願いします。<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-08-07 13:27 GMT+09:00 Kei Okada <span dir="ltr"><<a href="mailto:k-okada@jsk.t.u-tokyo.ac.jp" target="_blank">k-okada@jsk.t.u-tokyo.ac.jp</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">どのようにしてhrpsysを立ち上げて,どのようにしてrtm.py(か他のプログラムを)実行したか.<br>
実行したターミナルの入出力の全てのコピーを送っていただけると色々分かるとおもいます.<br>
<br>
<br>
<br>
2014-08-07 12:41 GMT+09:00 <<a href="mailto:hsnuhayato@gmail.com">hsnuhayato@gmail.com</a>>:<br>
> hrysysでポート接続しようとしているが、<br>
> rtm.pyの422行のとこにNoneがreturnされて、exceptionになりました。<br>
> どうしてNoneがreturnされたでしょうか。<br>
> よろしくお願いします。<br>
><br>
> _______________________________________________<br>
> openrtm-users mailing list<br>
> <a href="mailto:openrtm-users@openrtm.org">openrtm-users@openrtm.org</a><br>
> <a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
_______________________________________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/mailman/listinfo/openrtm-users</a><br>
</blockquote></div><br></div>