Skip to content

Commit

Permalink
Add new msgs for Realsense Adpator
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunseok-yang committed Sep 27, 2020
1 parent f407c36 commit 60ad2f2
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ A set of packages which contain cloi common interface files (.msg and .srv).
|message name|description|
|:----------:|-----------|
|elevator_system_msgs|ROS2 messages and services are described for elevator_system_sim in 'sim-device repository'|
|realsense_adaptor| ROS2 messages are described for realsensor_adaptor|
19 changes: 19 additions & 0 deletions realsense_adaptor_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.5)
project(realsense_adaptor_msgs)

find_package(ament_cmake REQUIRED)
find_package(std_msgs REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)

file(GLOB_RECURSE msg_files RELATIVE ${PROJECT_SOURCE_DIR} msg/*.msg)

rosidl_generate_interfaces(${PROJECT_NAME}
${msg_files}
DEPENDENCIES builtin_interfaces std_msgs
ADD_LINTER_TESTS
)

ament_export_dependencies(rosidl_default_runtime)

ament_package()
5 changes: 5 additions & 0 deletions realsense_adaptor_msgs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# RealSense Adaptor Messages for ROS2 realsense adaptor

Synchronize time for depth and color image.

It needs to set data name and unit image data.
15 changes: 15 additions & 0 deletions realsense_adaptor_msgs/msg/CameraData.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
##
## Copyright (c) 2020 LG Electronics Inc.
##
## SPDX-License-Identifier: MIT
##

# data_name: ex) color, depth
# channels: 1 -> 1 channel, 3 -> 3 channel(ex:RGB)
# data_unit_size: 1 -> unit8, 2 -> uint16

string data_name
CameraIntrinsic intrinsic
uint8 channels
uint8 data_unit_size
uint8[] data
17 changes: 17 additions & 0 deletions realsense_adaptor_msgs/msg/CameraIntrinsic.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
##
## Copyright (c) 2020 LG Electronics Inc.
##
## SPDX-License-Identifier: MIT
##

int32 width
int32 height
float32 cx
float32 cy
float32 fx
float32 fy
float32 hfov
float32 vfov
float32 baseline
float32[5] coeff
float32 depthscale
9 changes: 9 additions & 0 deletions realsense_adaptor_msgs/msg/SyncedImage.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
##
## Copyright (c) 2020 LG Electronics Inc.
##
## SPDX-License-Identifier: MIT
##

std_msgs/Header header
CameraData color
CameraData depth
28 changes: 28 additions & 0 deletions realsense_adaptor_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>realsense_adaptor_msgs</name>
<version>0.1.0</version>
<description>interfaces for realsense_adaptor are defined.</description>
<maintainer email="[email protected]">Hyunseok Yang</maintainer>

<license>MIT</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>

<depend>std_msgs</depend>

<build_depend>builtin_interfaces</build_depend>

<exec_depend>builtin_interfaces</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>

<test_depend>ament_lint_common</test_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

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

0 comments on commit 60ad2f2

Please sign in to comment.