moved snippet for draw_string to correct place, removed two references to code_recipes page that no longer exists
This commit is contained in:
parent
30fc87a11a
commit
e8e978b8d8
|
@ -158,16 +158,8 @@ That is a wrap on sensors and how do these retrieve simulation data.
|
|||
|
||||
Thus concludes the introduction to CARLA. However there is yet a lot to learn.
|
||||
|
||||
* __Gain some practise.__ It may be a good idea to try some of the code recipes provided in this documentation. Combine them with the example scripts, test new ideas.
|
||||
|
||||
<div class="build-buttons">
|
||||
<p>
|
||||
<a href="../ref_code_recipes" target="_blank" class="btn btn-neutral" title="Code recipes">
|
||||
Code recipes</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
* __Continue learning.__ There are some advanced features in CARLA: rendering options, traffic manager, the recorder, and some more. This is a great moment to learn on them.
|
||||
* __Continue learning.__ There are some advanced features in CARLA: rendering options, traffic
|
||||
manager, the recorder, and some more. This is a great moment to learn more about them.
|
||||
|
||||
<div class="build-buttons">
|
||||
<p>
|
||||
|
@ -176,7 +168,9 @@ Synchrony and time-step</a>
|
|||
</p>
|
||||
</div>
|
||||
|
||||
* __Experiment freely.__ Take a look at the __References__ section of this documentation. It contains detailed information on the classes in the Python API, sensors, and much more.
|
||||
* __Experiment freely.__ Take a look at the __References__ section of this documentation. It
|
||||
contains detailed information on the classes in the Python API, sensors, code snippets and much
|
||||
more.
|
||||
|
||||
<div class="build-buttons">
|
||||
<p>
|
||||
|
|
|
@ -53,8 +53,7 @@ CARLA forum</a>
|
|||
[__Traffic Manager__](adv_traffic_manager.md) — Simulate urban traffic by setting vehicles to autopilot mode.
|
||||
|
||||
## References
|
||||
[__Python API reference__](python_api.md) — Classes and methods in the Python API.
|
||||
[__Code recipes__](ref_code_recipes.md) — Some code fragments commonly used.
|
||||
[__Python API reference__](python_api.md) — Classes and methods in the Python API.
|
||||
[__Blueprint library__](bp_library.md) — Blueprints provided to spawn actors.
|
||||
[__C++ reference__](ref_cpp.md) — Classes and methods in CARLA C++.
|
||||
[__Recorder binary file format__](ref_recorder_binary_file_format.md) — Detailed explanation of the recorder file format.
|
||||
|
|
|
@ -644,7 +644,7 @@ Draws a box, ussually to act for object colliders.
|
|||
- `thickness` (_float<small> – meters</small>_) – Density of the lines that define the box.
|
||||
- `color` (_[carla.Color](#carla.Color)_) – RGB code to color the object. Red by default.
|
||||
- `life_time` (_float<small> – seconds</small>_) – Shape's lifespan. By default it only lasts one frame. Set this to <code>0</code> for permanent shapes.
|
||||
- <a name="carla.DebugHelper.draw_line"></a>**<font color="#7fb800">draw_line</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**begin**</font>, <font color="#00a6ed">**end**</font>, <font color="#00a6ed">**thickness**=0.1</font>, <font color="#00a6ed">**color**=(255,0,0)</font>, <font color="#00a6ed">**life_time**=-1.0</font>)<button class="SnipetButton" id="carla.DebugHelper.draw_line-snipet_button">snipet →</button>
|
||||
- <a name="carla.DebugHelper.draw_line"></a>**<font color="#7fb800">draw_line</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**begin**</font>, <font color="#00a6ed">**end**</font>, <font color="#00a6ed">**thickness**=0.1</font>, <font color="#00a6ed">**color**=(255,0,0)</font>, <font color="#00a6ed">**life_time**=-1.0</font>)
|
||||
Draws a line in between `begin` and `end`.
|
||||
- **Parameters:**
|
||||
- `begin` (_[carla.Location](#carla.Location)<small> – meters</small>_) – Point in the coordinate system where the line starts.
|
||||
|
@ -659,7 +659,7 @@ Draws a point `location`.
|
|||
- `size` (_float<small> – meters</small>_) – Density of the point.
|
||||
- `color` (_[carla.Color](#carla.Color)_) – RGB code to color the object. Red by default.
|
||||
- `life_time` (_float<small> – seconds</small>_) – Shape's lifespan. By default it only lasts one frame. Set this to <code>0</code> for permanent shapes.
|
||||
- <a name="carla.DebugHelper.draw_string"></a>**<font color="#7fb800">draw_string</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**location**</font>, <font color="#00a6ed">**text**</font>, <font color="#00a6ed">**draw_shadow**=False</font>, <font color="#00a6ed">**color**=(255,0,0)</font>, <font color="#00a6ed">**life_time**=-1.0</font>)
|
||||
- <a name="carla.DebugHelper.draw_string"></a>**<font color="#7fb800">draw_string</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**location**</font>, <font color="#00a6ed">**text**</font>, <font color="#00a6ed">**draw_shadow**=False</font>, <font color="#00a6ed">**color**=(255,0,0)</font>, <font color="#00a6ed">**life_time**=-1.0</font>)<button class="SnipetButton" id="carla.DebugHelper.draw_string-snipet_button">snipet →</button>
|
||||
Draws a string in a given location of the simulation which can only be seen server-side.
|
||||
- **Parameters:**
|
||||
- `location` (_[carla.Location](#carla.Location)<small> – meters</small>_) – Spot in the simulation where the text will be centered.
|
||||
|
@ -3598,11 +3598,11 @@ camera.listen(lambda image: image.save_to_disk('output/%06d.png' % image.frame,
|
|||
|
||||
</div>
|
||||
|
||||
<div id ="carla.DebugHelper.draw_line-snipet" style="display: none;">
|
||||
<div id ="carla.DebugHelper.draw_string-snipet" style="display: none;">
|
||||
<p class="SnipetFont">
|
||||
Snipet for carla.DebugHelper.draw_line
|
||||
Snipet for carla.DebugHelper.draw_string
|
||||
</p>
|
||||
<div id="carla.DebugHelper.draw_line-code" class="SnipetContent">
|
||||
<div id="carla.DebugHelper.draw_string-code" class="SnipetContent">
|
||||
|
||||
```py
|
||||
|
||||
|
@ -3633,10 +3633,7 @@ while True:
|
|||
|
||||
|
||||
```
|
||||
<button id="button1" class="CopyScript" onclick="CopyToClipboard('carla.DebugHelper.draw_line-code')">Copy snipet</button> <button id="button1" class="CloseSnipet" onclick="CloseSnipet()">Close snipet</button><br><br>
|
||||
|
||||
|
||||
<img src="/img/snipets_images/carla.DebugHelper.draw_line.jpg">
|
||||
<button id="button1" class="CopyScript" onclick="CopyToClipboard('carla.DebugHelper.draw_string-code')">Copy snipet</button> <button id="button1" class="CloseSnipet" onclick="CloseSnipet()">Close snipet</button><br><br>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue