diff --git a/lampi_msgs/CMakeLists.txt b/lampi_msgs/CMakeLists.txt new file mode 100644 index 0000000..4f9d340 --- /dev/null +++ b/lampi_msgs/CMakeLists.txt @@ -0,0 +1,34 @@ +cmake_minimum_required(VERSION 3.8) +project(lampi_msgs) + +if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") + add_compile_options(-Wall -Wextra -Wpedantic) +endif() + +# find dependencies +find_package(ament_cmake REQUIRED) +# uncomment the following section in order to fill in +# further dependencies manually. +# find_package( REQUIRED) + +if(BUILD_TESTING) + find_package(ament_lint_auto REQUIRED) + # the following line skips the linter which checks for copyrights + # uncomment the line when a copyright and license is not present in all source files + set(ament_cmake_copyright_FOUND TRUE) + # the following line skips cpplint (only works in a git repo) + # uncomment the line when this package is not in a git repo + #set(ament_cmake_cpplint_FOUND TRUE) + ament_lint_auto_find_test_dependencies() +endif() + +find_package(rosidl_default_generators REQUIRED) +find_package(std_msgs REQUIRED) + +rosidl_generate_interfaces(${PROJECT_NAME} + "msg/Color.msg" + "msg/Lampi.msg" + DEPENDENCIES std_msgs +) + +ament_package() diff --git a/lampi_msgs/msg/Color.msg b/lampi_msgs/msg/Color.msg new file mode 100644 index 0000000..bba79ee --- /dev/null +++ b/lampi_msgs/msg/Color.msg @@ -0,0 +1,2 @@ +float32 h +float32 s \ No newline at end of file diff --git a/lampi_msgs/msg/Lampi.msg b/lampi_msgs/msg/Lampi.msg new file mode 100644 index 0000000..1ccf095 --- /dev/null +++ b/lampi_msgs/msg/Lampi.msg @@ -0,0 +1,4 @@ +lampi_msgs/Color color +float32 brightness +bool on +string client \ No newline at end of file diff --git a/lampi_msgs/package.xml b/lampi_msgs/package.xml new file mode 100644 index 0000000..2e9fcbb --- /dev/null +++ b/lampi_msgs/package.xml @@ -0,0 +1,30 @@ + + + + lampi_msgs + 1.1.0 + MATE ROV Custom ROS messages + Benjamin Poulin + Eric Yarnot + Michael Carlstrom + + Apache License 2.0 + + ament_cmake + python3-pynput + + ament_lint_auto + ament_lint_common + + std_msgs + + rosidl_default_generators + + rosidl_default_runtime + + rosidl_interface_packages + + + ament_cmake + +