Skip to content

Commit b5c8557

Browse files
author
Bernd Gassmann
committed
added CarlaSynchronizationWindowParticipantState and report in CarlaStatus
1 parent 2ec9a23 commit b5c8557

5 files changed

Lines changed: 45 additions & 2 deletions

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ set(MSG_FILES
3737
CarlaTrafficLightStatus.msg
3838
CarlaTrafficLightStatusList.msg
3939
CarlaSynchronizationWindow.msg
40+
CarlaSynchronizationWindowParticipantState.msg
4041
CarlaV2XCustomData.msg
4142
CarlaV2XCustomDataList.msg
4243
CarlaV2XCustomMessage.msg

msg/CarlaStatus.idl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#pragma once
55

66
#include "carla_msgs/msg/CarlaEpisodeSettings.idl"
7+
#include "carla_msgs/msg/CarlaSynchronizationWindowParticipantState.idl"
78
#include "std_msgs/msg/Header.idl"
89

910
module carla_msgs {
@@ -16,11 +17,17 @@ module carla_msgs {
1617
struct CarlaStatus {
1718
std_msgs::msg::Header header;
1819

20+
carla_msgs::msg::CarlaEpisodeSettings episode_settings;
21+
1922
@verbatim (language="comment", text=
2023
"frame number")
2124
uint64 frame;
2225

23-
carla_msgs::msg::CarlaEpisodeSettings episode_settings;
26+
sequence<carla_msgs::msg::CarlaSynchronizationWindowParticipantState> synchronous_mode_participant_states;
27+
28+
@verbatim (language="comment", text=
29+
"true: running, false: paused")
30+
boolean synchronous_mode_running;
2431
};
2532
};
2633
};

msg/CarlaStatus.msg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
std_msgs/Header header
99

10-
uint64 frame # frame number
1110
carla_msgs/CarlaEpisodeSettings episode_settings
1211

12+
uint64 frame # frame number
13+
14+
carla_msgs/CarlaSynchronizationWindowParticipantState[] synchronous_mode_participant_states
15+
bool synchronous_mode_running # true: running, false: paused
16+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// generated from rosidl_adapter/resource/msg.idl.em
2+
// with input from carla_msgs/msg/CarlaSynchronizationWindowParticipantState.msg
3+
// generated code does not contain a copyright notice
4+
#pragma once
5+
6+
module carla_msgs {
7+
module msg {
8+
@verbatim (language="comment", text=
9+
"Copyright (c) 2024 Intel Corporation." "\n"
10+
"" "\n"
11+
"This work is licensed under the terms of the MIT license." "\n"
12+
"For a copy, see <https://opensource.org/licenses/MIT>.")
13+
struct CarlaSynchronizationWindowParticipantState {
14+
string client_id;
15+
16+
uint32 participant_id;
17+
18+
float target_game_time;
19+
};
20+
};
21+
};
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+
string client_id
9+
uint32 participant_id
10+
float32 target_game_time

0 commit comments

Comments
 (0)