parent
1c468bbca9
commit
e8332e362f
|
@ -53,7 +53,7 @@ __4. Motion Planner Stage:__ aggregates all the information from the previous st
|
|||
|
||||
* __Related .cpp files:__ `MotionPlannerStage.cpp`.
|
||||
|
||||
__5. Apply Control Stage:__ receives actuation signals, such as throttle, brake, steer, from the Motion Planner stage and sends these to the simulator in batches to control every vehicles' movement. Using the __apply_batch()__ method in [carla.Client](../python_api/#carla.Client) and different [carla.VehicleControl](../python_api/#carla.Client) for the registered vehicles.
|
||||
__5. Apply Control Stage:__ receives actuation signals, such as throttle, brake, steer, from the Motion Planner stage and sends these to the simulator in batches to control every vehicles' movement. Using the __apply_batch()__ method in [carla.Client](../python_api/#carla.Client) and different [carla.VehicleControl](../python_api/#carla.VehicleControl) for the registered vehicles.
|
||||
|
||||
* __Related .cpp files:__ `BatchControlStage.cpp`.
|
||||
|
||||
|
|
|
@ -1808,7 +1808,7 @@ Will return <b>None</b> if the lane does not exist.
|
|||
---
|
||||
|
||||
## carla.WeatherParameters<a name="carla.WeatherParameters"></a>
|
||||
This class defines objects containing lightning and weather specifications that can later be applied in [carla.World](#carla.World). So far, these conditions only intervene with [sensor.camera.rgb](/bp_library/). They neither affect the actor's physics nor other sensors.
|
||||
This class defines objects containing lightning and weather specifications that can later be applied in [carla.World](#carla.World). So far, these conditions only intervene with [sensor.camera.rgb](ref_sensors.md#rgb-camera). They neither affect the actor's physics nor other sensors.
|
||||
Each of these parameters acts indepently from the rest. Increasing the rainfall will not automatically create puddles nor change the road's humidity. That makes for a better customization but means that realistic conditions need to be scripted. However an example of dynamic weather conditions working realistically can be found [here](https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/dynamic_weather.py).
|
||||
|
||||
<h3>Instance Variables</h3>
|
||||
|
@ -1959,6 +1959,16 @@ Returns a list of actor blueprints available to ease the spawn of these into the
|
|||
- <a name="carla.World.get_map"></a>**<font color="#7fb800">get_map</font>**(<font color="#00a6ed">**self**</font>)
|
||||
Returns the object containing the navigation map used to describe this world.
|
||||
- **Return:** _[carla.Map](#carla.Map)_
|
||||
- <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.
|
||||
- **Parameters:**
|
||||
- `landmark` (_[carla.Landmark](#carla.Landmark)_) – The landmark object describing a traffic light.
|
||||
- **Return:** _[carla.TrafficLight](#carla.TrafficLight)_
|
||||
- <a name="carla.World.get_traffic_sign"></a>**<font color="#7fb800">get_traffic_sign</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**landmark**</font>)
|
||||
Provided a landmark, returns the traffic sign object it describes.
|
||||
- **Parameters:**
|
||||
- `landmark` (_[carla.Landmark](#carla.Landmark)_) – The landmark object describing a traffic sign.
|
||||
- **Return:** _[carla.TrafficSign](#carla.TrafficSign)_
|
||||
- <a name="carla.World.get_random_location_from_navigation"></a>**<font color="#7fb800">get_random_location_from_navigation</font>**(<font color="#00a6ed">**self**</font>)
|
||||
This can only be used with walkers. It retrieves a random location to be used as a destination using the **<font color="#7fb800">go_to_location()</font>** method in [carla.WalkerAIController](#carla.WalkerAIController). This location will be part of a sidewalk. Roads, crosswalks and grass zones are excluded. The method does not take into consideration locations of existing actors so if a collision happens when trying to spawn an actor, it will return an error. Take a look at [`spawn_npc.py`](https://github.com/carla-simulator/carla/blob/e73ad54d182e743b50690ca00f1709b08b16528c/PythonAPI/examples/spawn_npc.py#L179) for an example.
|
||||
- **Return:** _[carla.Location](#carla.Location)_
|
||||
|
@ -2265,6 +2275,6 @@ Identificator of the parent actor.
|
|||
- <a name="command.SpawnActor.then"></a>**<font color="#7fb800">then</font>**(<font color="#00a6ed">**self**</font>, <font color="#00a6ed">**command**</font>)
|
||||
Links another command to be executed right after. It allows to ease very common flows such as spawning a set of vehicles by command and then using this method to set them to autopilot automatically.
|
||||
- **Parameters:**
|
||||
- `command` (_[carla.Command](#carla.Command)_) – CommandType.
|
||||
- `command` (_any carla Command_) – a Carla command.
|
||||
|
||||
---
|
|
@ -4,8 +4,8 @@
|
|||
* [__Depth camera__](#depth-camera)
|
||||
* [__GNSS sensor__](#gnss-sensor)
|
||||
* [__IMU sensor__](#imu-sensor)
|
||||
* [__Lane invasion detector__](#lane-invasion-sensor)
|
||||
* [__Lidar raycast sensor__](#lidar-sensor)
|
||||
* [__Lane invasion detector__](#lane-invasion-detector)
|
||||
* [__Lidar raycast sensor__](#lidar-raycast-sensor)
|
||||
* [__Obstacle detector__](#obstacle-detector)
|
||||
* [__Radar sensor__](#radar-sensor)
|
||||
* [__RGB camera__](#rgb-camera)
|
||||
|
@ -203,7 +203,7 @@ There are two options in [carla.colorConverter](python_api.md#carla.ColorConvert
|
|||
## GNSS sensor
|
||||
|
||||
* __Blueprint:__ sensor.other.gnss
|
||||
* __Output:__ [carla.GNSSMeasurement](python_api.md#carla.GNSSMeasurement) per step (unless `sensor_tick` says otherwise).
|
||||
* __Output:__ [carla.GNSSMeasurement](python_api.md#carla.GnssMeasurement) per step (unless `sensor_tick` says otherwise).
|
||||
|
||||
Reports current [gnss position](https://www.gsa.europa.eu/european-gnss/what-gnss) of its parent object. This is calculated by adding the metric position to an initial geo reference location defined within the OpenDRIVE map definition.
|
||||
|
||||
|
@ -910,7 +910,7 @@ Since these effects are provided by UE, please make sure to check their document
|
|||
<td><code>exposure_mode</code> </td>
|
||||
<td>str</td>
|
||||
<td><code>manual</code></td>
|
||||
<td>Can be <code>manual</code> or <code>histogram</code>. More in <a href="AutomaticExposure.gamesetting">UE4 docs</a>.</td>
|
||||
<td>Can be <code>manual</code> or <code>histogram</code>. More in <a href="https://docs.unrealengine.com/en-US/Engine/Rendering/PostProcessEffects/AutomaticExposure/index.html">UE4 docs</a>.</td>
|
||||
<tr>
|
||||
<td><code>exposure_compensation</code> </td>
|
||||
<td>float</td>
|
||||
|
|
|
@ -16,11 +16,11 @@ It is possible to modify the parameters in runtime via ROS dynamic reconfigure.
|
|||
|
||||
<!---NODE-->
|
||||
<h4 style="margin-bottom: 5px"> <u>/carla_ackermann_control_ego_vehicle</u> <small><i>(Node)</i></small> </h4>
|
||||
Converts [AckermannDrive messages](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.htm) to [CarlaEgoVehicleControl.msg](ros_msgs.md#carlaegovehiclecontrolmsg). Speed is in __m/s__, steering angle in __radians__ and refers to driving angle, not wheel angle.
|
||||
Converts [AckermannDrive messages](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.html) to [CarlaEgoVehicleControl.msg](ros_msgs.md#carlaegovehiclecontrolmsg). Speed is in __m/s__, steering angle in __radians__ and refers to driving angle, not wheel angle.
|
||||
|
||||
<p style="margin-bottom:-5px"> <b>Subscribed to:</b> </p>
|
||||
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/ackermann_cmd</b></font> — [ackermann_msgs.AckermannDrive](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.htm)
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/ackermann_cmd</b></font> — [ackermann_msgs.AckermannDrive](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.html)
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/vehicle_info</b></font> — [carla_msgs.CarlaEgoVehicleInfo](ros_msgs.md#carlaegovehicleinfomsg)
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/vehicle_status</b></font> — [carla_msgs.CarlaEgoVehicleStatus](ros_msgs.md#carlaegovehiclestatusmsg)
|
||||
|
||||
|
@ -50,7 +50,7 @@ Spawns an ego vehicle with sensors attached, and waits for world information.
|
|||
|
||||
---
|
||||
## carla_example_ego_vehicle.launch
|
||||
Based on [carla_ego_vehicle.launch](#carla-ego-vehicle-launch), spawns an ego vehicle (`role-name="ego_vehicle"`). The file `sensors.json` describes the sensors attached. The path to it depends on the bridge installation.
|
||||
Based on carla_ego_vehicle.launch, spawns an ego vehicle (`role-name="ego_vehicle"`). The file `sensors.json` describes the sensors attached. The path to it depends on the bridge installation.
|
||||
|
||||
* __Deb repository installation__,
|
||||
`/opt/carla-ros-bridge/melodic/share/carla_ego_vehicle/config/sensors.json`.
|
||||
|
@ -101,7 +101,7 @@ Publishes the data regarding the current state of the simulation. Reads the debu
|
|||
---
|
||||
## carla_ros_bridge_with_ackermann_control.launch
|
||||
|
||||
Launches two basic nodes. One retrieves simulation data, the other controls a vehicle using [AckermannDrive messages](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.htm).
|
||||
Launches two basic nodes. One retrieves simulation data, the other controls a vehicle using [AckermannDrive messages](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.html).
|
||||
|
||||
<!---NODE-->
|
||||
<h4 style="margin-bottom: 5px"> <u>carla_ros_bridge</u> <small><i>(Node)</i></small> </h4>
|
||||
|
@ -121,11 +121,11 @@ Publishes data regarding the current state of the simulation. Reads the debug sh
|
|||
|
||||
<!---NODE-->
|
||||
<h4 style="margin-bottom: 5px"> <u>/carla_ackermann_control_ego_vehicle</u> <small><i>(Node)</i></small> </h4>
|
||||
Converts [AckermannDrive messages](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.htm) to [CarlaEgoVehicleControl.msg](ros_msgs.md#carlaegovehiclemsg). Speed is in __m/s__, steering angle is in __radians__ and refers to driving angle, not wheel angle.
|
||||
Converts [AckermannDrive messages](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.html) to [CarlaEgoVehicleControl.msg](ros_msgs.md#carlaegovehiclemsg). Speed is in __m/s__, steering angle is in __radians__ and refers to driving angle, not wheel angle.
|
||||
|
||||
<p style="margin-bottom:-5px"> <b>Subscribed to:</b> </p>
|
||||
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/ackermann_cmd</b></font> — [ackermann_msgs.AckermannDrive](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.htm)
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/ackermann_cmd</b></font> — [ackermann_msgs.AckermannDrive](http://docs.ros.org/jade/api/ackermann_msgs/html/msg/AckermannDrive.html)
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/vehicle_info</b></font> — [carla_msgs.CarlaEgoVehicleInfo](ros_msgs.md#carlaegovehicleinfomsg)
|
||||
* <font color="f8815c"><b>/carla/ego_vehicle/vehicle_status</b></font> — [carla_msgs.CarlaEgoVehicleStatus](ros_msgs.md#carlaegovehiclestatusmsg)
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ The requirements are simpler than those for the build installation.
|
|||
* __Server side.__ A 4GB minimum GPU will be needed to run a highly realistic environment. A dedicated GPU is highly advised for machine learning.
|
||||
* __Client side.__ [Python](https://www.python.org/downloads/) is necessary to access the API via command line. Also, a good internet connection and two TCP ports (2000 and 2001 by default).
|
||||
* __System requirements.__ Any 64-bits OS should run CARLA.
|
||||
* __Other requirements.__ Two Python modules: [Pygame](https://www.pygame.org/download.shtml) to create graphics directly with Python, and [Numpy](https://pypi.org/project/numpy/) for great calculus.
|
||||
* __Other requirements.__ Two Python modules: [Pygame](https://pypi.org/project/pygame/) to create graphics directly with Python, and [Numpy](https://pypi.org/project/numpy/) for great calculus.
|
||||
|
||||
To install both modules using [pip](https://pip.pypa.io/en/stable/installing/), run the following commands.
|
||||
```sh
|
||||
|
|
|
@ -63,9 +63,9 @@
|
|||
- def_name: then
|
||||
params:
|
||||
- param_name: command
|
||||
type: carla.Command
|
||||
type: any carla Command
|
||||
doc: >
|
||||
CommandType.
|
||||
a Carla command.
|
||||
doc: >
|
||||
Links another command to be executed right after. It allows to ease very common flows such as spawning a set of vehicles by command and then using this method to set them to autopilot automatically.
|
||||
# --------------------------------------
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- class_name: WeatherParameters
|
||||
# - DESCRIPTION ------------------------
|
||||
doc: >
|
||||
This class defines objects containing lightning and weather specifications that can later be applied in carla.World. So far, these conditions only intervene with [sensor.camera.rgb](/bp_library/). They neither affect the actor's physics nor other sensors.
|
||||
This class defines objects containing lightning and weather specifications that can later be applied in carla.World. So far, these conditions only intervene with [sensor.camera.rgb](ref_sensors.md#rgb-camera). They neither affect the actor's physics nor other sensors.
|
||||
Each of these parameters acts indepently from the rest. Increasing the rainfall will not automatically create puddles nor change the road's humidity. That makes for a better customization but means that realistic conditions need to be scripted. However an example of dynamic weather conditions working realistically can be found [here](https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/dynamic_weather.py).
|
||||
# - PROPERTIES -------------------------
|
||||
instance_variables:
|
||||
|
|
|
@ -313,6 +313,26 @@
|
|||
doc: >
|
||||
Returns the object containing the navigation map used to describe this world.
|
||||
# --------------------------------------
|
||||
- def_name: get_traffic_light
|
||||
return: carla.TrafficLight
|
||||
params:
|
||||
- param_name: landmark
|
||||
type: carla.Landmark
|
||||
doc: >
|
||||
The landmark object describing a traffic light.
|
||||
doc: >
|
||||
Provided a landmark, returns the traffic light object it describes.
|
||||
# --------------------------------------
|
||||
- def_name: get_traffic_sign
|
||||
return: carla.TrafficSign
|
||||
params:
|
||||
- param_name: landmark
|
||||
type: carla.Landmark
|
||||
doc: >
|
||||
The landmark object describing a traffic sign.
|
||||
doc: >
|
||||
Provided a landmark, returns the traffic sign object it describes.
|
||||
# --------------------------------------
|
||||
- def_name: get_random_location_from_navigation
|
||||
return: carla.Location
|
||||
doc: >
|
||||
|
|
Loading…
Reference in New Issue