New iteration on M comments
This commit is contained in:
parent
b926304b4c
commit
fda9e9fb9e
|
@ -105,9 +105,9 @@ right_lm_color = waypoint.right_lane_marking.color
|
|||
---
|
||||
## Navigation in CARLA
|
||||
|
||||
Navigation in CARLA is managed via the waypoint API. This consists of a summary of methods in [carla.Waypoint](python_api.md#carla.Waypoint) and [carla.Map](python_api.md#carla.Map) that provide connections between waypoints, and use these to generate a map navigation.
|
||||
Navigation in CARLA is managed via the waypoint API. This consists of a summary of methods in [carla.Waypoint](python_api.md#carla.Waypoint) and [carla.Map](python_api.md#carla.Map).
|
||||
|
||||
All the queries happen on the client-side. The client only communicates with the server when retrieving the map object that will be used for the queries. Communication with the server is not needed after that, so the computational cost of the waypoint API is heavily reduced.
|
||||
All the queries happen on the client-side. The client only communicates with the server when retrieving the map object that will be used for the queries. There is no need to retrieve the map (`world.get_map()`) more than once.
|
||||
|
||||
|
||||
### Navigating through waypoints
|
||||
|
|
|
@ -2447,7 +2447,7 @@ Compares every variable with `other` and returns <b>True</b> if any of these dif
|
|||
---
|
||||
|
||||
## carla.Waypoint<a name="carla.Waypoint"></a>
|
||||
Waypoints in CARLA are described as 3D directed points. They store a certain [carla.Transform](#carla.Transform) which locates the waypoint in a road and orientates it according to the lane. They also store the road information belonging to said point regarding its lane and lane markings. <br><br> All the information regarding waypoints and the [waypoint API](https://[carla.readthedocs.io](#carla.readthedocs.io)/en/latest/core_map/#navigation-in-carla) is retrieved as provided by the OpenDRIVE file. Once the client asks for the map object to the server, no longer communication will be needed.
|
||||
Waypoints in CARLA are described as 3D directed points. They have a [carla.Transform](#carla.Transform) which locates the waypoint in a road and orientates it according to the lane. They also store the road information belonging to said point regarding its lane and lane markings. <br><br> All the information regarding waypoints and the [waypoint API](../../core_map/#navigation-in-carla) is retrieved as provided by the OpenDRIVE file. Once the client asks for the map object to the server, no longer communication will be needed.
|
||||
|
||||
<h3>Instance Variables</h3>
|
||||
- <a name="carla.Waypoint.id"></a>**<font color="#f8805a">id</font>** (_int_)
|
||||
|
@ -2701,7 +2701,7 @@ Returns an instance of [carla.LightManager](#carla.LightManager) that can be use
|
|||
- <a name="carla.World.get_map"></a>**<font color="#7fb800">get_map</font>**(<font color="#00a6ed">**self**</font>)
|
||||
Asks the server for the XODR containing the map file, and returns this parsed as a [carla.Map](#carla.Map).
|
||||
- **Return:** _[carla.Map](#carla.Map)_
|
||||
- **Warning:** <font color="#ED2F2F">_This method does call the simulation.
|
||||
- **Warning:** <font color="#ED2F2F">_This method does call the simulation. It is expensive, and should only be called once.
|
||||
_</font>
|
||||
- <a name="carla.World.get_traffic_light"></a>**<font color="#7fb800">get_traffic_light</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**landmark**</font>)
|
||||
Provided a landmark, returns the traffic light object it describes.
|
||||
|
|
|
@ -300,9 +300,9 @@
|
|||
- class_name: Waypoint
|
||||
# - DESCRIPTION ------------------------
|
||||
doc: >
|
||||
Waypoints in CARLA are described as 3D directed points. They store a certain carla.Transform which locates the waypoint in a road and orientates it according to the lane. They also store the road information belonging to said point regarding its lane and lane markings.
|
||||
Waypoints in CARLA are described as 3D directed points. They have a carla.Transform which locates the waypoint in a road and orientates it according to the lane. They also store the road information belonging to said point regarding its lane and lane markings.
|
||||
<br><br>
|
||||
All the information regarding waypoints and the [waypoint API](https://carla.readthedocs.io/en/latest/core_map/#navigation-in-carla) is retrieved as provided by the OpenDRIVE file. Once the client asks for the map object to the server, no longer communication will be needed.
|
||||
All the information regarding waypoints and the [waypoint API](../../core_map/#navigation-in-carla) is retrieved as provided by the OpenDRIVE file. Once the client asks for the map object to the server, no longer communication will be needed.
|
||||
# - PROPERTIES -------------------------
|
||||
instance_variables:
|
||||
- var_name: id
|
||||
|
|
|
@ -351,7 +351,7 @@
|
|||
doc: >
|
||||
Asks the server for the XODR containing the map file, and returns this parsed as a carla.Map.
|
||||
warning: >
|
||||
This method does call the simulation.
|
||||
This method does call the simulation. It is expensive, and should only be called once.
|
||||
# --------------------------------------
|
||||
- def_name: get_traffic_light
|
||||
return: carla.TrafficLight
|
||||
|
|
Loading…
Reference in New Issue