start-jsk / rtmros_common

OpenRTM - ROS interoperability packages
http://wiki.ros.org/rtmros_common
12 stars 52 forks source link

Collada Error: COLLADA error: Failed to open file:/tmp/buildd/%HIRONX_ROSPKG_DEB%models/kawada-hironx.dae in daeLIBXMLPlugin::readFromFile #260

Closed k-okada closed 10 years ago

k-okada commented 10 years ago

From gm130s on November 19, 2013 11:20:38

Related to http://code.google.com/p/rtm-ros-robotics/issues/detail?id=204#c8 ,

From https://github.com/start-jsk/open_industrial_ros_controllers/issues/9#issuecomment-28650541 groovyですが, rtmlaunch hironx_ros_bridge hironx_ros_bridge_simulation.launch  すると以下のエラーになります.

process[hrpsys_py-3]: started with pid [2557]
loading file:///tmp/buildd/ros-groovy-hironx-ros-bridge-1.0.4-0precise-20131031-0806/models/kawada-hironx.dae
Collada Error: COLLADA error: Failed to open file:/tmp/buildd/ros-groovy-hironx-ros-bridge-1.0.4-0precise-20131031-0806/models/kawada-hironx.dae in daeLIBXMLPlugin::readFromFile

Collada Error: COLLADA error: Failed to load file:/tmp/buildd/ros-groovy-hironx-ros-bridge-1.0.4-0precise-20131031-0806/models/kawada-hironx.dae

これは,srcにはいっている,xmlファイルをinsallにコピーする際に.xmlファイルにかかれたパス名を変更する必要がある,という部分のコードに問題があり, https://code.google.com/p/rtm-ros-robotics/source/detail?r=6039 でなおしました. nextage_ros_bridgeも同じ問題があり, https://github.com/tork-a/rtmros_nextage/commit/e9c41886e28fb144dbc296c04069cb99dbac0892 で直しました.

hiroのhydroについては, https://code.google.com/p/rtm-ros-robotics/issues/detail?id=204#c8 にレポートしたように robot_modelの更新をしてもらわないと,colladaファイルが読み込めない,という問題が残っています. colladaではなくurdfをロードするようにしたら,問題はなくなりますが...


Traceback (most recent call last):
  File "/home/k-okada/catkin_ws/jenkins_catkin_hydro/catkin_ws/src/rtm-ros-robotics/rtmros_common/hrpsys_ros_bridge/scripts/sensor_ros_bridge_connect.py", line 11, in <module>
    import OpenRTM_aist.RTM_IDL # for catkin
  File "/home/k-okada/catkin_ws/jenkins_catkin_hydro/catkin_ws/devel/lib/python2.7/dist-packages/OpenRTM_aist/__init__.py", line 38, in <module>
    exec(__fh.read())
  File "<string>", line 18, in <module>
  File "/home/k-okada/catkin_ws/jenkins_catkin_hydro/catkin_ws/src/rtm-ros-robotics/openrtm_common/openrtm_aist_core/openrtm_aist_python/lib/python2.7/site-packages/OpenRTM_aist/NVUtil.py", line 26, in <module>
    import RTM_IDL.SDOPackage
  File "/home/k-okada/catkin_ws/jenkins_catkin_hydro/catkin_ws/src/rtm-ros-robotics/openrtm_common/openrtm_aist_core/openrtm_aist_python/lib/python2.7/site-packages/OpenRTM_aist/RTM_IDL/SDOPackage/__init__.py", line 6, in <module>
    omniORB.updateModule("SDOPackage")
  File "/usr/lib/python2.7/dist-packages/omniORB/__init__.py", line 620, in updateModule
    mod  = sys.modules[mname]
KeyError: 'SDOPackage'

というエラーが出るかもしれないです.なぜかgroovy出でない気がする.

openrtm_aist_python$ less lib/python2.7/site-packages/OpenRTM_aist/RTM_IDL/__init__.py

に import SDOPackage を追加すると動くような気もする.

---- https://code.google.com/p/rtm-ros-robotics/source/detail?r=6046 で対応して見ました.

Original issue: http://code.google.com/p/rtm-ros-robotics/issues/detail?id=262

k-okada commented 10 years ago

From gm130s on November 18, 2013 18:25:22

r6066 Groovy source で問題なく simulation 実行できました.

openrtm_aist_core, rtmros_hironx を Groovy にリリースします.Hydro もこれら package 自体は問題無いはずなのでリリースしていいですよね.

k-okada commented 10 years ago

From baronysy...@gmail.com on November 29, 2013 01:29:46

Hello, i am new to this software. i had just installed it today, and i am facing a same problem as below, what should i do for solving this problem?

[sensor_ros_bridge_connect.py] simulation_mode : True loading file:///tmp/buildd/ros-groovy-hironx-ros-bridge-1.0.5-0precise-20131121-0438/models/kawada-hironx.dae Collada Error: COLLADA error: Failed to open file:/tmp/buildd/ros-groovy-hironx-ros-bridge-1.0.5-0precise-20131121-0438/models/kawada-hironx.dae in daeLIBXMLPlugin::readFromFile

Collada Error: COLLADA error: Failed to load file:/tmp/buildd/ros-groovy-hironx-ros-bridge-1.0.5-0precise-20131121-0438/models/kawada-hironx.dae

loading failed. The model file cannot be found. ModelLoaderException : The model file cannot be found. failed to load model[file:///tmp/buildd/ros-groovy-hironx-ros-bridge-1.0.5-0precise-20131121-0438/models/kawada-hironx.dae]

k-okada commented 10 years ago

From gm130s on November 29, 2013 05:47:19

baronysyong

Thank you for the interest.

The issue should already fixed in the latest binary. Please try upgrading a few packages, possibly with commands like as follows (replace hydro with groovy if that's the ROS version you use):

apt-get install --reinstall ros-hydro-openrtm-aist  
apt-get install --reinstall ros-hydro-rtmros-hironx

Status: Fixed