diff --git a/Docs/python_api.md b/Docs/python_api.md index 6b655f19d..f22f9e838 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -404,10 +404,11 @@ The information saved by the recorder will be parsed and shown in your terminal - `filename` (_str_) – Name or absolute path of the file recorded, depending on your previous choice. - `show_all` (_bool_) – If __True__, returns all the information stored for every frame (traffic light states, positions of all actors, orientation and animation data...). If __False__, returns a summary of key events and frames. - **Return:** _string_ -- **start_recorder**(**self**, **filename**) +- **start_recorder**(**self**, **filename**, **additional_data**=False) Enables the recording feature, which will start saving every information possible needed by the server to replay the simulation. - **Parameters:** - `filename` (_str_) – Name of the file to write the recorded data. A simple name will save the recording in 'CarlaUE4/Saved/recording.log'. Otherwise, if some folder appears in the name, it will be considered an absolute path. + - `additional_data` (_bool_) – Enables or disable recording non-essential data for reproducing the simulation (bounding box location, physics control parameters, etc). - **stop_recorder**(**self**) Stops the recording in progress. If you specified a path in `filename`, the recording will be there. If not, look inside `CarlaUE4/Saved/`. diff --git a/PythonAPI/docs/client.yml b/PythonAPI/docs/client.yml index e18ff1cf9..f62a4b3b9 100644 --- a/PythonAPI/docs/client.yml +++ b/PythonAPI/docs/client.yml @@ -181,6 +181,11 @@ type: str doc: > Name of the file to write the recorded data. A simple name will save the recording in 'CarlaUE4/Saved/recording.log'. Otherwise, if some folder appears in the name, it will be considered an absolute path. + - param_name: additional_data + type: bool + default: False + doc: > + Enables or disable recording non-essential data for reproducing the simulation (bounding box location, physics control parameters, etc) doc: > Enables the recording feature, which will start saving every information possible needed by the server to replay the simulation. # -------------------------------------- diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderQuery.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderQuery.cpp index daefe3ab0..20eb5ba38 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderQuery.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Recorder/CarlaRecorderQuery.cpp @@ -282,32 +282,32 @@ std::string CarlaRecorderQuery::QueryInfo(std::string Filename, bool bShowAll) FVehicleLightState State(LightState); std::string enabled_lights_list; if (State.Position) - enabled_lights_list += "Position, "; + enabled_lights_list += "Position "; if (State.LowBeam) - enabled_lights_list += "LowBeam, "; + enabled_lights_list += "LowBeam "; if (State.HighBeam) - enabled_lights_list += "HighBeam, "; + enabled_lights_list += "HighBeam "; if (State.Brake) - enabled_lights_list += "Brake, "; + enabled_lights_list += "Brake "; if (State.RightBlinker) - enabled_lights_list += "RightBlinker, "; + enabled_lights_list += "RightBlinker "; if (State.LeftBlinker) - enabled_lights_list += "LeftBlinker, "; + enabled_lights_list += "LeftBlinker "; if (State.Reverse) - enabled_lights_list += "Reverse, "; + enabled_lights_list += "Reverse "; if (State.Interior) - enabled_lights_list += "Interior, "; + enabled_lights_list += "Interior "; if (State.Fog) - enabled_lights_list += "Fog, "; + enabled_lights_list += "Fog "; if (State.Special1) - enabled_lights_list += "Special1, "; + enabled_lights_list += "Special1 "; if (State.Special2) - enabled_lights_list += "Special2, "; + enabled_lights_list += "Special2 "; if (enabled_lights_list.size()) { Info << " Id " << LightVehicle.DatabaseId << ": " << - enabled_lights_list.substr(0, enabled_lights_list.size() - 2) << std::endl; + enabled_lights_list.substr(0, enabled_lights_list.size() - 1) << std::endl; } else {