Skip to content

Commit

Permalink
[hrpsys_ros_bridge] Use collada_urdf_jsk_patch in order to convert dae
Browse files Browse the repository at this point in the history
into urdf which can be used in gazebo
  • Loading branch information
garaemon committed Aug 20, 2015
1 parent 19f388b commit 65a183c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hrpsys_ros_bridge/cmake/compile_robot_model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,14 @@ endmacro()

# get path to collada_to_urdf
macro(get_collada_to_urdf _collada_to_urdf_exe)
find_package(collada_urdf_jsk_patch QUIET)
find_package(collada_urdf REQUIRED)
set(${_collada_to_urdf_exe} ${collada_urdf_PREFIX}/lib/collada_urdf/collada_to_urdf)
if(NOT EXISTS ${${_collada_to_urdf_exe}})
if (collada_urdf_jsk_patch_FOUND)
set(${_collada_to_urdf_exe} ${collada_urdf_jsk_patch_PREFIX}/lib/collada_urdf_jsk_patch/collada_to_urdf)
elseif (collada_urdf_FOUND)
set(${_collada_to_urdf_exe} ${collada_urdf_PREFIX}/lib/collada_urdf/collada_to_urdf)
endif (collada_urdf_jsk_patch_FOUND)
if(NOT EXISTS "${${_collada_to_urdf_exe}}")
message(FATAL_ERROR "could not find ${${_collada_to_urdf_exe}}")
endif()
endmacro(get_collada_to_urdf _collada_to_urdf_exe)
Expand Down

0 comments on commit 65a183c

Please sign in to comment.