https://github.com/umaumax/ros_include_other_header_tutorials
https://github.com/umaumax/ros_include_other_header_tutorials
ros tutorial
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/umaumax/ros_include_other_header_tutorials
- Owner: umaumax
- Created: 2018-10-14T16:10:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-14T16:10:53.000Z (over 7 years ago)
- Last Synced: 2025-06-23T13:49:03.923Z (about 1 year ago)
- Topics: ros, tutorial
- Language: CMake
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ros_include_other_header_tutorials
## 他のパッケージのheaderを利用する
`find_package`に依存パッケージを追加
```
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
ros_header_tutorials
)
```
利用したい側のパッケージで適切に`INCLUDE_DIRS`が設定されていることが条件
```
include_directories(
# include
${catkin_INCLUDE_DIRS}
${ros_header_tutorials_INCLUDE_DIRS}
)
```
設定されていない場合には簡易的に以下の場合でも可能
```
${ros_header_tutorials_SOURCE_DIR}/include
```
----
`package.xml`の記述については未調査