Fixed missing documentation for get_junction function. Updated changelog.
This commit is contained in:
parent
e24bcebfbf
commit
69e5e8bbf6
|
@ -10,6 +10,8 @@
|
|||
* Added automatic generation of traffic lights, stop signal and yield signal from OpenDRIVE file
|
||||
* Added examples of sumo co-simulation for Town01, Town04 and Town05
|
||||
* Added ptv vissim and carla co-simulation
|
||||
* API extensions:
|
||||
- Added new methods to `Map`: `get_all_landmarks`, `get_all_landmarks_from_id` and `get_all_landmarks_of_type`
|
||||
|
||||
## CARLA 0.9.8
|
||||
|
||||
|
|
|
@ -1796,6 +1796,9 @@ Returns a list of waypoints from this to the start of the lane separated by a ce
|
|||
- **Parameters:**
|
||||
- `distance` (_float_) – The approximate distance between waypoints.
|
||||
- **Return:** _list([carla.Waypoint](#carla.Waypoint))_
|
||||
- <a name="carla.Waypoint.get_junction"></a>**<font color="#7fb800">get_junction</font>**(<font color="#00a6ed">**self**</font>)
|
||||
If the waypoint belongs to a junction this function returns the asociated junction object. Otherwise returns null.
|
||||
- **Return:** _[carla.Junction](#carla.Junction)_
|
||||
- <a name="carla.Waypoint.get_landmarks"></a>**<font color="#7fb800">get_landmarks</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**distance**</font>, <font color="#00a6ed">**stop_at_junction**=False</font>)
|
||||
Returns a list of landmarks in the road from the current waypoint until the specified distance.
|
||||
- **Parameters:**
|
||||
|
|
|
@ -204,7 +204,7 @@ void export_map() {
|
|||
.def("previous_until_lane_start", CALL_RETURNING_LIST_1(cc::Waypoint, GetPreviousUntilLaneStart, double), (args("distance", "stop_at_junction")))
|
||||
.def("get_right_lane", &cc::Waypoint::GetRight)
|
||||
.def("get_left_lane", &cc::Waypoint::GetLeft)
|
||||
.def("get_junction", &cc::Waypoint::GetJunction, (args("lane_type")))
|
||||
.def("get_junction", &cc::Waypoint::GetJunction)
|
||||
.def("get_landmarks", CALL_RETURNING_LIST_2(cc::Waypoint, GetAllLandmakrsInDistance, double, bool), (arg("distance"), arg("stop_at_junction")=false))
|
||||
.def("get_landmarks_of_type", CALL_RETURNING_LIST_3(cc::Waypoint, GetLandmakrsOfTypeInDistance, double, std::string, bool), (arg("distance"), arg("type"), arg("stop_at_junction")=false))
|
||||
.def(self_ns::str(self_ns::self))
|
||||
|
|
|
@ -384,6 +384,11 @@
|
|||
doc: >
|
||||
Returns a list of waypoints from this to the start of the lane separated by a certain `distance`.
|
||||
# --------------------------------------
|
||||
- def_name: get_junction
|
||||
return: carla.Junction
|
||||
doc: >
|
||||
If the waypoint belongs to a junction this function returns the asociated junction object. Otherwise returns null.
|
||||
# --------------------------------------
|
||||
- def_name: get_landmarks
|
||||
params:
|
||||
- param_name: distance
|
||||
|
|
Loading…
Reference in New Issue