Skip to content

Commit

Permalink
Added CarlaEpisodeSettings.msg
Browse files Browse the repository at this point in the history
and use that one in CarlaStatus.idl for reporting
  • Loading branch information
berndgassmann committed Jul 22, 2024
1 parent 1a5bddd commit 904e892
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 11 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ set(MSG_FILES
CarlaBoundingBox.msg
CarlaCollisionEvent.msg
CarlaControl.msg
CarlaEpisodeSettings.msg
CarlaVehicleControl.msg
CarlaVehicleInfo.msg
CarlaVehicleInfoWheel.msg
Expand Down
47 changes: 47 additions & 0 deletions msg/CarlaEpisodeSettings.idl
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// generated from rosidl_adapter/resource/msg.idl.em
// with input from carla_msgs/msg/CarlaEpisodeSettings.msg
// generated code does not contain a copyright notice
#pragma once

module carla_msgs {
module msg {
@verbatim (language="comment", text=
"Copyright (c) 2024 Intel Corporation." "\n"
"" "\n"
"This work is licensed under the terms of the MIT license." "\n"
"For a copy, see <https://opensource.org/licenses/MIT>.")
struct CarlaEpisodeSettings {
@default (value=FALSE)
boolean synchronous_mode;

@default (value=FALSE)
boolean no_rendering_mode;

float fixed_delta_seconds;

@default (value=TRUE)
boolean substepping;

@default (value=0.01)
float max_substep_delta_time;

@default (value=10)
int32 max_substeps;

@default (value=0.0)
float max_culling_distance;

@default (value=FALSE)
boolean deterministic_ragdolls;

@default (value=3000.0)
float tile_stream_distance;

@default (value=2000.0)
float actor_active_distance;

@default (value=TRUE)
boolean spectator_as_ego;
};
};
};
18 changes: 18 additions & 0 deletions msg/CarlaEpisodeSettings.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# Copyright (c) 2024 Intel Corporation.
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
#

bool synchronous_mode false
bool no_rendering_mode false
float32 fixed_delta_seconds
bool substepping true
float32 max_substep_delta_time 0.01
int32 max_substeps 10
float32 max_culling_distance 0.0
bool deterministic_ragdolls false
float32 tile_stream_distance 3000.0
float32 actor_active_distance 2000.0
bool spectator_as_ego true
11 changes: 3 additions & 8 deletions msg/CarlaStatus.idl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// generated code does not contain a copyright notice
#pragma once

#include "carla_msgs/msg/CarlaEpisodeSettings.idl"
#include "std_msgs/msg/Header.idl"

module carla_msgs {
Expand All @@ -15,18 +16,12 @@ module carla_msgs {
struct CarlaStatus {
std_msgs::msg::Header header;

carla_msgs::msg::CarlaEpisodeSettings episode_settings;

@verbatim (language="comment", text=
"frame number")
uint64 frame;

@verbatim (language="comment", text=
"duration of one frame")
float fixed_delta_seconds;

@verbatim (language="comment", text=
"carla is in synchronous mode")
boolean synchronous_mode;

@verbatim (language="comment", text=
"true: running, false: paused")
boolean synchronous_mode_running;
Expand Down
5 changes: 2 additions & 3 deletions msg/CarlaStatus.msg
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

std_msgs/Header header

uint64 frame # frame number
carla_msgs/CarlaEpisodeSettings episode_settings

float32 fixed_delta_seconds # duration of one frame
bool synchronous_mode # carla is in synchronous mode
uint64 frame # frame number
bool synchronous_mode_running # true: running, false: paused

0 comments on commit 904e892

Please sign in to comment.