Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuki0824 committed Aug 6, 2022
1 parent 2331d83 commit 835a711
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hrpsys_ros_bridge/cmake/compile_robot_model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,15 @@ 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)

# noetic collada_urdf could not find_packag-ed due to https://github.com/ros/collada_urdf/issues/43
if("$ENV{ROS_DISTRO}" STREQUAL "noetic")
set(collada_urdf_PREFIX "/opt/ros/noetic")
set(collada_urdf_FOUND TRUE)
else()
find_package(collada_urdf REQUIRED)
endif("$ENV{ROS_DISTRO}" STREQUAL "noetic")

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)
Expand Down

0 comments on commit 835a711

Please sign in to comment.