Skip to content

Commit be249fe

Browse files
author
Bernd Gassmann
committed
Add CaralV2XCustom* messages
1 parent 8075186 commit be249fe

5 files changed

Lines changed: 37 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ set(MSG_FILES
2929
CarlaTrafficLightStatus.msg
3030
CarlaTrafficLightStatusList.msg
3131
CarlaSynchronizationWindow.msg
32+
CarlaV2XCustomData.msg
33+
CarlaV2XCustomDataList.msg
34+
CarlaV2XCustomMessage.msg
3235
CarlaWalkerControl.msg
3336
CarlaWeatherParameters.msg)
3437

@@ -37,15 +40,15 @@ if(${ROS_VERSION} EQUAL 1)
3740

3841
# Find catkin macros and libraries
3942
find_package(catkin REQUIRED COMPONENTS message_generation std_msgs
40-
geometry_msgs diagnostic_msgs shape_msgs ackermann_msgs)
43+
geometry_msgs diagnostic_msgs shape_msgs ackermann_msgs etsi_its_cam_msgs)
4144

4245
add_service_files(DIRECTORY srv FILES ${SERVICE_FILES})
4346

4447
add_message_files(DIRECTORY msg FILES ${MSG_FILES})
4548

4649
generate_messages(DEPENDENCIES std_msgs geometry_msgs diagnostic_msgs)
4750

48-
catkin_package(CATKIN_DEPENDS message_runtime std_msgs geometry_msgs diagnostic_msgs shape_msgs ackermann_msgs)
51+
catkin_package(CATKIN_DEPENDS message_runtime std_msgs geometry_msgs diagnostic_msgs shape_msgs ackermann_msgs etsi_its_cam_msgs)
4952

5053
elseif(${ROS_VERSION} EQUAL 2)
5154

@@ -67,6 +70,7 @@ elseif(${ROS_VERSION} EQUAL 2)
6770
find_package(geometry_msgs REQUIRED)
6871
find_package(ackermann_msgs REQUIRED)
6972
find_package(diagnostic_msgs REQUIRED)
73+
find_package(etsi_its_cam_msgs REQUIRED)
7074
find_package(rosidl_default_generators REQUIRED)
7175

7276
# Apend "msg/" to each file name
@@ -94,6 +98,7 @@ elseif(${ROS_VERSION} EQUAL 2)
9498
geometry_msgs
9599
ackermann_msgs
96100
diagnostic_msgs
101+
etsi_its_cam_msgs
97102
ADD_LINTER_TESTS)
98103

99104
ament_export_dependencies(rosidl_default_runtime)

msg/CarlaV2XCustomData.msg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2024 Intel Corporation.
3+
#
4+
# This work is licensed under the terms of the MIT license.
5+
# For a copy, see <https://opensource.org/licenses/MIT>.
6+
#
7+
8+
float32 power
9+
carla_msgs/CarlaV2XCustomMessage message
10+

msg/CarlaV2XCustomDataList.msg

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# Copyright (c) 2024 Intel Corporation.
3+
#
4+
# This work is licensed under the terms of the MIT license.
5+
# For a copy, see <https://opensource.org/licenses/MIT>.
6+
#
7+
8+
carla_msgs/CarlaV2XCustomData[] data
9+

msg/CarlaV2XCustomMessage.msg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# Copyright (c) 2024 Intel Corporation.
3+
#
4+
# This work is licensed under the terms of the MIT license.
5+
# For a copy, see <https://opensource.org/licenses/MIT>.
6+
#
7+
8+
etsi_its_cam_msgs/ItsPduHeader header
9+
string data
10+

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<depend>diagnostic_msgs</depend>
2525
<depend>shape_msgs</depend>
2626
<depend>ackermann_msgs</depend>
27+
<depend>etsi_its_cam_msgs</depend>
2728

2829
<exec_depend condition="$ROS_VERSION == 1">message_runtime</exec_depend>
2930
<exec_depend condition="$ROS_VERSION == 2">rosidl_default_runtime</exec_depend>

0 commit comments

Comments
 (0)