Skip to content

Commit

Permalink
Merge pull request #1 from RI-SE/iso_msgs
Browse files Browse the repository at this point in the history
Initial commit with trajectory and OSEM
  • Loading branch information
SebastianSvanland authored Nov 2, 2023
2 parents 609852d + 0fce775 commit b30a1d1
Show file tree
Hide file tree
Showing 18 changed files with 177 additions and 0 deletions.
39 changes: 39 additions & 0 deletions iso_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
cmake_minimum_required(VERSION 3.8)
project(iso_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(<dependency> REQUIRED)

find_package(geographic_msgs REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(builtin_interfaces REQUIRED)

set(msg_files
"msg/CoordinateSystem.msg"
"msg/ObjectSettings.msg"
"msg/CartesianTrajectory.msg"
"msg/CartesianTrajectoryPoint.msg"
"msg/OSEMIds.msg"
"msg/OSEMDeviations.msg"
"msg/OSEMMonrRate.msg"
"msg/TestMode.msg"
"msg/OSEMTimeServer.msg"
"msg/TrajectoryHeader.msg"
"msg/TrajectoryInfo.msg"
)

rosidl_generate_interfaces(${PROJECT_NAME}
${msg_files}
DEPENDENCIES geographic_msgs builtin_interfaces
)

ament_export_dependencies(rosidl_default_runtime)

ament_package()
3 changes: 3 additions & 0 deletions iso_msgs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ISO messages

This ROS package contains custom ROS messages for ISO22133 used by ros2_isoobject in order to initialize the coordinate_transform node with OSEM from ATOS. It does not have any dependencies but both of the previously mentioned packages depend on this and should include it in their docker environments.
9 changes: 9 additions & 0 deletions iso_msgs/msg/CartesianTrajectory.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# header.frame_id is the frame in which all data from CartesianTrajectoryPoint[] is given
std_msgs/Header header
CartesianTrajectoryPoint[] points
string controlled_frame
string name
9 changes: 9 additions & 0 deletions iso_msgs/msg/CartesianTrajectoryPoint.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

builtin_interfaces/Duration time_from_start
geometry_msgs/Pose pose
geometry_msgs/Twist twist
geometry_msgs/Accel acceleration
float64 curvature
12 changes: 12 additions & 0 deletions iso_msgs/msg/CoordinateSystem.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

uint32 COORDINATE_SYSTEM_ETRS89 = 0
uint32 COORDINATE_SYSTEM_NAD83 = 1
uint32 COORDINATE_SYSTEM_ITRF2000 = 2
uint32 COORDINATE_SYSTEM_WGS84 = 3
uint32 COORDINATE_SYSTEM_LOCAL = 4
uint64 COORDINATE_SYSTEM_UNAVAILABLE = 255

uint32 type
3 changes: 3 additions & 0 deletions iso_msgs/msg/DesiredId.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
uint32 transmitter
uint32 sub_transmitter
uint32 control_centre
3 changes: 3 additions & 0 deletions iso_msgs/msg/MaxDeviation.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
float64 position_m
float64 lateral_m
float64 yaw_rad
7 changes: 7 additions & 0 deletions iso_msgs/msg/OSEMDeviations.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

float64 position_m
float64 lateral_m
float64 yaw_rad
7 changes: 7 additions & 0 deletions iso_msgs/msg/OSEMIds.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

uint32 transmitter
uint32 sub_transmitter
uint32 control_centre
7 changes: 7 additions & 0 deletions iso_msgs/msg/OSEMMonrRate.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

float64 monr
float64 monr2
float64 heab
6 changes: 6 additions & 0 deletions iso_msgs/msg/OSEMTimeServer.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

uint32 ip
uint16 port
15 changes: 15 additions & 0 deletions iso_msgs/msg/ObjectSettings.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

iso_msgs/OSEMIds desired_id
geographic_msgs/GeoPoint coordinate_system_origin
float64 coordinate_system_rotation_rad
iso_msgs/CoordinateSystem coordinate_system_type
builtin_interfaces/Duration current_time
iso_msgs/OSEMDeviations max_deviation
float64 min_required_positioning_accuracy_m
iso_msgs/TestMode test_mode
builtin_interfaces/Duration heab_timeout
iso_msgs/OSEMMonrRate rate
iso_msgs/OSEMTimeServer time_server
3 changes: 3 additions & 0 deletions iso_msgs/msg/Rate.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
float64 monr
float64 monr2
float64 heab
10 changes: 10 additions & 0 deletions iso_msgs/msg/TestMode.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

uint32 TEST_MODE_PREPLANNED = 0
uint32 TEST_MODE_ONLINE = 1
uint32 TEST_MODE_SCENARIO = 2
uint32 TEST_MODE_UNAVAILABLE = 255

uint32 type
2 changes: 2 additions & 0 deletions iso_msgs/msg/TimeServer.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
uint32 ip
uint16 port
9 changes: 9 additions & 0 deletions iso_msgs/msg/TrajectoryHeader.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

uint16 trajectory_id
string trajectory_name
iso_msgs/TrajectoryInfo trajectory_info
uint32 trajectory_length
uint32 n_waypoints
9 changes: 9 additions & 0 deletions iso_msgs/msg/TrajectoryInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

uint32 TRAJECTORY_INFO_RELATIVE_TO_OBJECT = 1
uint32 TRAJECTORY_INFO_RELATIVE_TO_ORIGIN = 2
uint32 TRAJECTORY_INFO_DELETE_TRAJECTORY = 3

uint32 type
24 changes: 24 additions & 0 deletions iso_msgs/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?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>iso_msgs</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="[email protected]">bosdator1</maintainer>
<license>MPL 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
<depend>geographic_msgs</depend>

<build_depend>rosidl_default_generators</build_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
<member_of_group>rosidl_interface_packages</member_of_group>
<depend>builtin_interfaces</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

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

0 comments on commit b30a1d1

Please sign in to comment.