http://wiki.ros.org/catkin/Tutorials/CreatingPackage#ROS.2BAC8-Tutorials.2BAC8-catkin.2BAC8-CreatingPackage.dependencies_tags

dependencies tags

The next set of tags describe the dependencies of your package. The dependencies are split into build_dependbuildtool_dependexec_dependtest_depend. For a more detailed explanation of these tags see the documentation about Catkin Dependencies. Since we passed std_msgsroscpp, and rospy as arguments to catkin_create_pkg, the dependencies will look like this:

Toggle line numbers
  27   <!-- The *_depend tags are used to specify dependencies -->
  28   <!-- Dependencies can be catkin packages or system dependencies -->
  29   <!-- Examples: -->
  30   <!-- Use build_depend for packages you need at compile time: -->
  31   <!--   <build_depend>genmsg</build_depend> -->
  32   <!-- Use buildtool_depend for build tool packages: -->
  33   <!--   <buildtool_depend>catkin</buildtool_depend> -->
  34   <!-- Use exec_depend for packages you need at runtime: -->
  35   <!--   <exec_depend>python-yaml</exec_depend> -->
  36   <!-- Use test_depend for packages you need only for testing: -->
  37   <!--   <test_depend>gtest</test_depend> -->
  38   <buildtool_depend>catkin</buildtool_depend>
  39   <build_depend>roscpp</build_depend>
  40   <build_depend>rospy</build_depend>
  41   <build_depend>std_msgs</build_depend>

All of our listed dependencies have been added as a build_depend for us, in addition to the default buildtool_dependon catkin. In this case we want all of our specified dependencies to be available at build and run time, so we'll add a exec_depend tag for each of them as well:

Toggle line numbers
  12   <buildtool_depend>catkin</buildtool_depend>
  13 
  14   <build_depend>roscpp</build_depend>
  15   <build_depend>rospy</build_depend>
  16   <build_depend>std_msgs</build_depend>
  17 
  18   <exec_depend>roscpp</exec_depend>
  19   <exec_depend>rospy</exec_depend>
  20   <exec_depend>std_msgs</exec_depend>


'ROS' 카테고리의 다른 글

RQT에서 ui 파일 추가  (0) 2019.05.09
RQT C++ 플러그인 작성법  (0) 2019.05.09
rqt 플러그인 실행  (0) 2019.05.08
rqt 설치  (0) 2019.05.08
토픽 관련 좋은 설명  (0) 2019.05.06

+ Recent posts