From 463999873a9ebf7badc804bb01d3b5176e273bfe Mon Sep 17 00:00:00 2001 From: Alexander Belyaev <32522095+pifon2a@users.noreply.github.com> Date: Tue, 27 Feb 2018 18:14:39 +0100 Subject: [PATCH] Add a ROS message for landmark observations. (#732) [Landmark RFC](https://github.com/googlecartographer/rfcs/blob/master/text/0011-landmarks.md) --- cartographer_ros_msgs/CMakeLists.txt | 2 ++ cartographer_ros_msgs/msg/LandmarkEntry.msg | 18 ++++++++++++++++++ cartographer_ros_msgs/msg/LandmarkList.msg | 16 ++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 cartographer_ros_msgs/msg/LandmarkEntry.msg create mode 100644 cartographer_ros_msgs/msg/LandmarkList.msg diff --git a/cartographer_ros_msgs/CMakeLists.txt b/cartographer_ros_msgs/CMakeLists.txt index d5d680e..0207a9a 100644 --- a/cartographer_ros_msgs/CMakeLists.txt +++ b/cartographer_ros_msgs/CMakeLists.txt @@ -24,6 +24,8 @@ find_package(catkin REQUIRED COMPONENTS message_generation ${PACKAGE_DEPENDENCIE add_message_files( FILES + LandmarkEntry.msg + LandmarkList.msg StatusCode.msg StatusResponse.msg SubmapList.msg diff --git a/cartographer_ros_msgs/msg/LandmarkEntry.msg b/cartographer_ros_msgs/msg/LandmarkEntry.msg new file mode 100644 index 0000000..a7ded6e --- /dev/null +++ b/cartographer_ros_msgs/msg/LandmarkEntry.msg @@ -0,0 +1,18 @@ +# 2018 The Cartographer Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +string id +geometry_msgs/Pose tracking_from_landmark_transform +float64 translation_weight +float64 rotation_weight diff --git a/cartographer_ros_msgs/msg/LandmarkList.msg b/cartographer_ros_msgs/msg/LandmarkList.msg new file mode 100644 index 0000000..9d5f375 --- /dev/null +++ b/cartographer_ros_msgs/msg/LandmarkList.msg @@ -0,0 +1,16 @@ +# Copyright 2018 The Cartographer Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +std_msgs/Header header +LandmarkEntry[] landmark