Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ if(WITH_ROS_SUPPORT)
get_property(DIR GLOBAL PROPERTY CATKIN_WORKSPACE_${ID}_DIR)
if(ROS_IS_ROS2)
set(ROS_SETUP_PATH "${DIR}/install/setup${RC_EXT}")
set(FINAL_COMMAND "${FINAL_COMMAND}
export ROS_LOCALHOST_ONLY=1")
set(FINAL_COMMAND "${FINAL_COMMAND}
export ROS_LOCALHOST_ONLY=1"
)
else()
set(ROS_SETUP_PATH "${DIR}/devel/setup${RC_EXT}")
endif()
Expand Down
38 changes: 38 additions & 0 deletions robots/Kinova.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
option(WITH_Kinova "Build Kinova support" OFF)

if(NOT WITH_Kinova)
return()
endif()

if(NOT WITH_ROS_SUPPORT)
message(FATAL_ERROR "ROS support is required to use the Kinova robot")
endif()

if(ROS_IS_ROS2)
AptInstall(
ros-${ROS_DISTRO}-kortex-api ros-${ROS_DISTRO}-kortex-bringup
ros-${ROS_DISTRO}-kortex-description ros-${ROS_DISTRO}-kortex-driver
)

AddProject(
mc_kinova
GITHUB mathieu-celerier/mc_kinova
GIT_TAG origin/main
APT_PACKAGES mc_rtc ros-${ROS_DISTRO}-kortex-api ros-${ROS_DISTRO}-kortex-bringup
ros-${ROS_DISTRO}-kortex-description ros-${ROS_DISTRO}-kortex-driver
)
else()
AddCatkinProject(
ros_kortex
GITHUB Kinovarobotics/ros_kortex
GIT_TAG origin/${ROS_DISTRO}-devel
WORKSPACE data_ws
)

AddProject(
mc_kinova
GITHUB isri-aist/mc_kinova
GIT_TAG origin/main
DEPENDS mc_rtc ros_kortex
)
endif()
Loading