sergi-e/fix-actor-alive (#3055)

* First draft

* Fix on recorder show info
This commit is contained in:
sergi.e 2020-07-15 13:39:55 +02:00 committed by GitHub
parent db9572faa6
commit b24dedc5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -9,6 +9,8 @@ CARLA defines actors as anything that plays a role in the simulation or can be m
A dictionary containing the attributes of the blueprint this actor was based on. A dictionary containing the attributes of the blueprint this actor was based on.
- <a name="carla.Actor.id"></a>**<font color="#f8805a">id</font>** (_int_) - <a name="carla.Actor.id"></a>**<font color="#f8805a">id</font>** (_int_)
Identifier for this actor. Unique during a given episode. Identifier for this actor. Unique during a given episode.
- <a name="carla.Actor.is_alive"></a>**<font color="#f8805a">is_alive</font>** (_bool_)
Returns whether this object was destroyed using this actor handle.
- <a name="carla.Actor.parent"></a>**<font color="#f8805a">parent</font>** (_[carla.Actor](#carla.Actor)_) - <a name="carla.Actor.parent"></a>**<font color="#f8805a">parent</font>** (_[carla.Actor](#carla.Actor)_)
Actors may be attached to a parent actor that they will follow around. This is said actor. Actors may be attached to a parent actor that they will follow around. This is said actor.
- <a name="carla.Actor.semantic_tags"></a>**<font color="#f8805a">semantic_tags</font>** (_list(int)_) - <a name="carla.Actor.semantic_tags"></a>**<font color="#f8805a">semantic_tags</font>** (_list(int)_)
@ -396,11 +398,11 @@ If you want to see only collisions between a vehicles and a walkers, use for `ca
- `category1` (_single char_) Character variable specifying a first type of actor involved in the collision. - `category1` (_single char_) Character variable specifying a first type of actor involved in the collision.
- `category2` (_single char_) Character variable specifying the second type of actor involved in the collision. - `category2` (_single char_) Character variable specifying the second type of actor involved in the collision.
- **Return:** _string_ - **Return:** _string_
- <a name="carla.Client.show_recorder_file_info"></a>**<font color="#7fb800">show_recorder_file_info</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**filename**</font>, <font color="#00a6ed">**show_all**=False</font>) - <a name="carla.Client.show_recorder_file_info"></a>**<font color="#7fb800">show_recorder_file_info</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**filename**</font>, <font color="#00a6ed">**show_all**</font>)
The information saved by the recorder will be parsed and shown in your terminal as text (frames, times, events, state, positions...). The information shown can be specified by using the `show_all` parameter. [Here](ref_recorder_binary_file_format.md) is some more information about how to read the recorder file. The information saved by the recorder will be parsed and shown in your terminal as text (frames, times, events, state, positions...). The information shown can be specified by using the `show_all` parameter. [Here](ref_recorder_binary_file_format.md) is some more information about how to read the recorder file.
- **Parameters:** - **Parameters:**
- `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_) When true, will show all the details per frame (traffic light states, positions of all actors, orientation and animation data...), but by default it will only show a summary. - `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>)
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

@ -16,6 +16,10 @@
type: int type: int
doc: > doc: >
Identifier for this actor. Unique during a given episode. Identifier for this actor. Unique during a given episode.
- var_name: is_alive
type: bool
doc: >
Returns whether this object was destroyed using this actor handle.
- var_name: parent - var_name: parent
type: carla.Actor type: carla.Actor
doc: > doc: >

View File

@ -169,9 +169,8 @@
Name or absolute path of the file recorded, depending on your previous choice. Name or absolute path of the file recorded, depending on your previous choice.
- param_name: show_all - param_name: show_all
type: bool type: bool
default: false
doc: > doc: >
When true, will show all the details per frame (traffic light states, positions of all actors, orientation and animation data...), but by default it will only show a summary. 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
doc: > doc: >
The information saved by the recorder will be parsed and shown in your terminal as text (frames, times, events, state, positions...). The information shown can be specified by using the `show_all` parameter. [Here](ref_recorder_binary_file_format.md) is some more information about how to read the recorder file. The information saved by the recorder will be parsed and shown in your terminal as text (frames, times, events, state, positions...). The information shown can be specified by using the `show_all` parameter. [Here](ref_recorder_binary_file_format.md) is some more information about how to read the recorder file.