Skip to content

Commit

Permalink
sciurus17_tools ROS 2対応
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuwamai committed Nov 9, 2023
1 parent c704988 commit 58f875f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 44 deletions.
39 changes: 3 additions & 36 deletions sciurus17_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,37 +1,4 @@
cmake_minimum_required(VERSION 2.8.3)
cmake_minimum_required(VERSION 3.5)
project(sciurus17_tools)

add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
roscpp
)

find_package(realsense2)
if(NOT realsense2_FOUND)
message(FATAL_ERROR "\n\n Intel RealSense SDK 2.0 is missing, please install it from https://github.com/IntelRealSense/librealsense/releases\n\n")
endif()

catkin_package(
CATKIN_DEPENDS
roscpp
)

include_directories(
${catkin_INCLUDE_DIRS}
${realsense_INCLUDE_DIR}
)

add_executable(realsense_hwreset src/realsense_hwreset.cpp)
target_link_libraries(realsense_hwreset
${realsense2_LIBRARY}
${catkin_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)

install(TARGETS realsense_hwreset
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY scripts rules DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

find_package(ament_cmake REQUIRED)
ament_package()
Empty file removed sciurus17_tools/COLCON_IGNORE
Empty file.
25 changes: 17 additions & 8 deletions sciurus17_tools/package.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
<?xml version="1.0"?>
<package>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>sciurus17_tools</name>
<version>2.0.0</version>
<description>The sciurus17_tools package</description>

<description>ROS 2 package suite of Sciurus17</description>
<maintainer email="[email protected]">RT Corporation</maintainer>

<license>Apache License 2.0</license>

<author email="[email protected]">Hiroyuki Nomura</author>
<author email="[email protected]">Shota Hirama</author>
<license>Apache License 2.0</license>
<author email="[email protected]">Atsushi Kuwagata</author>

<url type="website">http://wiki.ros.org/sciurus17_ros</url>
<url type="bugtracker">https://github.com/rt-net/sciurus17_ros/issues</url>
<url type="repository">https://github.com/rt-net/sciurus17_ros</url>

<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>realsense2_camera</build_depend>
<buildtool_depend>ament_cmake</buildtool_depend>

<run_depend>roscpp</run_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
</package>

0 comments on commit 58f875f

Please sign in to comment.