start-jsk / rtmros_common

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

OPENHRP_IDL_DIR has wrong path #612

Open hyaguchijsk opened 9 years ago

hyaguchijsk commented 9 years ago

I've got following error when compiling hrpsys_ros_bridge_tutorials

CMake Error at rtm-ros-robotics/rtmros_tutorials/hrpsys_ros_bridge_tutorials/catkin.cmake:60 (message):

  /home/leus/ros/hydro/src/rtm-ros-robotics/openrtm_common/openhrp3/share/OpenHRP-3.1/idl/../sample/model/sample1.wrl
  not found
Call Stack (most recent call first):
  rtm-ros-robotics/rtmros_tutorials/hrpsys_ros_bridge_tutorials/CMakeLists.txt:2 (include)

I installed openhrp3 from apt, so openhrp3 is located under /opt/ros/hydro. It seems OPENHRP_IDL_DIR has wrong path, but I could not find where it is set. Does anyone know how to avoid this problem?

snozawa commented 9 years ago

hrpsys_ros_bridge_tutorials's catkin.cmake resolve openhrp3 path using pkg-config: https://github.com/start-jsk/rtmros_tutorials/blob/master/hrpsys_ros_bridge_tutorials/catkin.cmake#L10

So, could you show us the following results?

$ echo $PKG_CONFIG_PATH
$ pkg-config --variable=idl_dir openhrp3.1
$ locate openhrp3.1.pc

After the next issues, please open the rtmros_tutorials-related isseus on https://github.com/start-jsk/rtmros_tutorials/issues.