-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port interbotix_xsarm_puppet package to ROS 2 (#171)
* [xsarm_puppet] Port xsarm_puppet package to ROS 2 * Lint files * Remove unused files
- Loading branch information
1 parent
63562f0
commit 24a6c11
Showing
13 changed files
with
900 additions
and
456 deletions.
There are no files selected for viewing
80 changes: 43 additions & 37 deletions
80
interbotix_ros_xsarms/examples/interbotix_xsarm_puppet/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,56 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(interbotix_xsarm_puppet) | ||
|
||
## Compile as C++11, supported in ROS Kinetic and newer | ||
add_compile_options(-std=c++11) | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
|
||
## Find catkin macros and libraries | ||
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz) | ||
## is used, also find other catkin packages | ||
find_package(catkin REQUIRED COMPONENTS | ||
if(CMAKE_COMPILER_IS_GNUXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake REQUIRED) | ||
find_package(interbotix_xs_msgs REQUIRED) | ||
find_package(rclcpp REQUIRED) | ||
find_package(sensor_msgs REQUIRED) | ||
|
||
set(ROS_DEPENDENCIES | ||
interbotix_xs_msgs | ||
interbotix_xsarm_control | ||
rosbag | ||
roscpp | ||
tf2_ros | ||
rviz | ||
rclcpp | ||
sensor_msgs | ||
std_msgs | ||
std_srvs | ||
) | ||
|
||
################################### | ||
## catkin specific configuration ## | ||
################################### | ||
## The catkin_package macro generates cmake config files for your package | ||
## Declare things to be passed to dependent projects | ||
catkin_package( | ||
CATKIN_DEPENDS interbotix_xs_msgs interbotix_xsarm_control rosbag roscpp tf2_ros rviz sensor_msgs std_msgs std_srvs | ||
) | ||
|
||
########### | ||
## Build ## | ||
########### | ||
|
||
## Specify additional locations of header files | ||
## Your package locations should be listed before other locations | ||
include_directories( | ||
${catkin_INCLUDE_DIRS} | ||
include | ||
) | ||
|
||
## Declare a C++ executable | ||
## Specify libraries to link a library or executable target against | ||
## Add cmake target dependencies of the executable | ||
add_executable(xsarm_puppet src/xsarm_puppet.cpp) | ||
target_link_libraries(xsarm_puppet ${catkin_LIBRARIES}) | ||
add_dependencies(xsarm_puppet ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) | ||
ament_target_dependencies(xsarm_puppet ${ROS_DEPENDENCIES}) | ||
|
||
add_executable(xsarm_puppet_single src/xsarm_puppet_single.cpp) | ||
target_link_libraries(xsarm_puppet_single ${catkin_LIBRARIES}) | ||
add_dependencies(xsarm_puppet_single ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS}) | ||
ament_target_dependencies(xsarm_puppet_single ${ROS_DEPENDENCIES}) | ||
|
||
install( | ||
TARGETS | ||
xsarm_puppet | ||
xsarm_puppet_single | ||
DESTINATION | ||
lib/${PROJECT_NAME} | ||
) | ||
|
||
install( | ||
DIRECTORY | ||
bag | ||
config | ||
launch | ||
rviz | ||
DESTINATION | ||
share/${PROJECT_NAME}/ | ||
) | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_lint_auto REQUIRED) | ||
ament_lint_auto_find_test_dependencies() | ||
endif() | ||
|
||
ament_package() |
Empty file.
Binary file removed
BIN
-196 KB
interbotix_ros_xsarms/examples/interbotix_xsarm_puppet/bag/duck_dunk.bag
Binary file not shown.
File renamed without changes.
File renamed without changes.
66 changes: 0 additions & 66 deletions
66
interbotix_ros_xsarms/examples/interbotix_xsarm_puppet/launch/xsarm_puppet.launch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.