Updated docs. removed coma separations.

This commit is contained in:
Axel1092 2020-07-17 17:41:06 +02:00 committed by Axel1092
parent 28fea86a19
commit bb553e1073
3 changed files with 19 additions and 13 deletions

View File

@ -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. - `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. - `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_ - **Return:** _string_
- <a name="carla.Client.start_recorder"></a>**<font color="#7fb800">start_recorder</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**filename**</font>) - <a name="carla.Client.start_recorder"></a>**<font color="#7fb800">start_recorder</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**filename**</font>, <font color="#00a6ed">**additional_data**=False</font>)
Enables the recording feature, which will start saving every information possible needed by the server to replay the simulation. Enables the recording feature, which will start saving every information possible needed by the server to replay the simulation.
- **Parameters:** - **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. - `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).
- <a name="carla.Client.stop_recorder"></a>**<font color="#7fb800">stop_recorder</font>**(<font color="#00a6ed">**self**</font>) - <a name="carla.Client.stop_recorder"></a>**<font color="#7fb800">stop_recorder</font>**(<font color="#00a6ed">**self**</font>)
Stops the recording in progress. If you specified a path in `filename`, the recording will be there. If not, look inside `CarlaUE4/Saved/`. Stops the recording in progress. If you specified a path in `filename`, the recording will be there. If not, look inside `CarlaUE4/Saved/`.

View File

@ -181,6 +181,11 @@
type: str type: str
doc: > 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. 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: > doc: >
Enables the recording feature, which will start saving every information possible needed by the server to replay the simulation. Enables the recording feature, which will start saving every information possible needed by the server to replay the simulation.
# -------------------------------------- # --------------------------------------

View File

@ -282,32 +282,32 @@ std::string CarlaRecorderQuery::QueryInfo(std::string Filename, bool bShowAll)
FVehicleLightState State(LightState); FVehicleLightState State(LightState);
std::string enabled_lights_list; std::string enabled_lights_list;
if (State.Position) if (State.Position)
enabled_lights_list += "Position, "; enabled_lights_list += "Position ";
if (State.LowBeam) if (State.LowBeam)
enabled_lights_list += "LowBeam, "; enabled_lights_list += "LowBeam ";
if (State.HighBeam) if (State.HighBeam)
enabled_lights_list += "HighBeam, "; enabled_lights_list += "HighBeam ";
if (State.Brake) if (State.Brake)
enabled_lights_list += "Brake, "; enabled_lights_list += "Brake ";
if (State.RightBlinker) if (State.RightBlinker)
enabled_lights_list += "RightBlinker, "; enabled_lights_list += "RightBlinker ";
if (State.LeftBlinker) if (State.LeftBlinker)
enabled_lights_list += "LeftBlinker, "; enabled_lights_list += "LeftBlinker ";
if (State.Reverse) if (State.Reverse)
enabled_lights_list += "Reverse, "; enabled_lights_list += "Reverse ";
if (State.Interior) if (State.Interior)
enabled_lights_list += "Interior, "; enabled_lights_list += "Interior ";
if (State.Fog) if (State.Fog)
enabled_lights_list += "Fog, "; enabled_lights_list += "Fog ";
if (State.Special1) if (State.Special1)
enabled_lights_list += "Special1, "; enabled_lights_list += "Special1 ";
if (State.Special2) if (State.Special2)
enabled_lights_list += "Special2, "; enabled_lights_list += "Special2 ";
if (enabled_lights_list.size()) if (enabled_lights_list.size())
{ {
Info << " Id " << LightVehicle.DatabaseId << ": " << 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 else
{ {