File tree Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.5)
2+
3+ project (rosgraph_msgs)
4+
5+ # Default to C++14
6+ if (NOT CMAKE_CXX_STANDARD)
7+ set (CMAKE_CXX_STANDARD 14)
8+ endif ()
9+ if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
10+ # we dont use add_compile_options with pedantic in message packages
11+ # because the Python C extensions dont comply with it
12+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic" )
13+ endif ()
14+
15+ find_package (ament_cmake REQUIRED)
16+ find_package (builtin_interfaces REQUIRED)
17+ find_package (rosidl_default_generators REQUIRED)
18+
19+ set (msg_files
20+ "msg/Clock.msg"
21+ )
22+ rosidl_generate_interfaces(${PROJECT_NAME}
23+ ${msg_files}
24+ DEPENDENCIES builtin_interfaces
25+ ADD_LINTER_TESTS
26+ )
27+
28+ ament_export_dependencies(rosidl_default_runtime)
29+
30+ ament_package()
Original file line number Diff line number Diff line change 1+ # This message simply communicates the current time.
2+ # For more information, see http://www.ros.org/wiki/Clock
3+ builtin_interfaces/Time clock
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <?xml-model href =" http://download.ros.org/schema/package_format3.xsd" schematypens =" http://www.w3.org/2001/XMLSchema" ?>
3+ <package format =" 3" >
4+ <name >rosgraph_msgs</name >
5+ <version >0.4.0</version >
6+ <description >
7+ Messages relating to the ROS Computation Graph.
8+ These are generally considered to be low-level messages that end users do not interact with.
9+ </description >
10+ <
maintainer email =
" [email protected] " >Dirk Thomas</
maintainer >
11+ <license >Apache License 2.0</license >
12+
13+ <buildtool_depend >ament_cmake</buildtool_depend >
14+
15+ <buildtool_depend >rosidl_default_generators</buildtool_depend >
16+
17+ <build_depend >builtin_interfaces</build_depend >
18+
19+ <exec_depend >builtin_interfaces</exec_depend >
20+ <exec_depend >rosidl_default_runtime</exec_depend >
21+
22+ <test_depend >ament_lint_common</test_depend >
23+
24+ <member_of_group >rosidl_interface_packages</member_of_group >
25+
26+ <export >
27+ <build_type >ament_cmake</build_type >
28+ </export >
29+ </package >
You can’t perform that action at this time.
0 commit comments