File tree 5 files changed +24
-12
lines changed
Unreal/CarlaUE4/Plugins/Carla/Source/Carla
5 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 1
1
## Latest
2
2
3
- * Added API function ** add_angular_impulse** to add angular impulse to any actor
3
+ * Added API function ` add_angular_impulse() ` to add angular impulse to any actor
4
+ * Fixed rain drop spawn issues when spawning camera sensors
5
+ * Fixed Update.sh from failing when the root folder contains a space on it
4
6
5
7
## CARLA 0.9.9
6
8
21
23
* API extensions:
22
24
- Added new methods to ` Map ` : ` get_all_landmarks ` , ` get_all_landmarks_from_id ` and ` get_all_landmarks_of_type `
23
25
* Added synchronization of traffic lights in sumo co-simulation
24
- * Added light manager to control the lights of the map.
26
+ * Added light manager to control the lights of the map
25
27
26
28
## CARLA 0.9.8
27
29
Original file line number Diff line number Diff line change @@ -461,6 +461,10 @@ void ASceneCaptureSensor::BeginPlay()
461
461
SceneCaptureSensor_local_ns::ConfigureShowFlags (CaptureComponent2D->ShowFlags ,
462
462
bEnablePostProcessingEffects);
463
463
464
+ // This ensures the camera is always spawning the rain drops in case the
465
+ // weather was previously set to has rain
466
+ GetEpisode ().GetWeather ()->NotifyWeather ();
467
+
464
468
Super::BeginPlay ();
465
469
}
466
470
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ void AWeather::ApplyWeather(const FWeatherParameters &InWeather)
35
35
RefreshWeather (Weather);
36
36
}
37
37
38
+ void AWeather::NotifyWeather ()
39
+ {
40
+ // Call the blueprint that actually changes the weather.
41
+ RefreshWeather (Weather);
42
+ }
43
+
38
44
void AWeather::SetWeather (const FWeatherParameters &InWeather)
39
45
{
40
46
Weather = InWeather;
Original file line number Diff line number Diff line change @@ -21,18 +21,18 @@ class CARLA_API AWeather : public AActor
21
21
22
22
AWeather (const FObjectInitializer& ObjectInitializer);
23
23
24
- /* Update the weather parameters and notifies it to the blueprint's event
25
- */
24
+ // / Update the weather parameters and notifies it to the blueprint's event
26
25
UFUNCTION (BlueprintCallable)
27
26
void ApplyWeather (const FWeatherParameters &WeatherParameters);
28
27
29
- /* Update the weather parameters without notifing it to the blueprint's event
30
- */
28
+ // / Notifing the weather to the blueprint's event
29
+ void NotifyWeather ();
30
+
31
+ // / Update the weather parameters without notifing it to the blueprint's event
31
32
UFUNCTION (BlueprintCallable)
32
33
void SetWeather (const FWeatherParameters &WeatherParameters);
33
34
34
- /* Returns the current WeatherParameters
35
- */
35
+ // / Returns the current WeatherParameters
36
36
UFUNCTION (BlueprintCallable)
37
37
const FWeatherParameters &GetCurrentWeather () const
38
38
{
Original file line number Diff line number Diff line change 44
44
SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
45
45
pushd " $SCRIPT_DIR " > /dev/null
46
46
47
- CONTENT_FOLDER=$ SCRIPT_DIR /Unreal/CarlaUE4/Content/Carla
47
+ CONTENT_FOLDER=" ${ SCRIPT_DIR} /Unreal/CarlaUE4/Content/Carla"
48
48
49
49
CONTENT_ID=$( tac $SCRIPT_DIR /Util/ContentVersions.txt | egrep -m 1 . | rev | cut -d' ' -f1 | rev)
50
50
CONTENT_LINK=http://carla-assets.s3.amazonaws.com/${CONTENT_ID} .tar.gz
51
51
52
- VERSION_FILE=${CONTENT_FOLDER} /.version
52
+ VERSION_FILE=" ${CONTENT_FOLDER} /.version"
53
53
54
54
function download_content {
55
55
if [[ -d " $CONTENT_FOLDER " ]]; then
56
56
echo " Backing up existing Content..."
57
57
mv -v " $CONTENT_FOLDER " " ${CONTENT_FOLDER} _$( date +%Y%m%d%H%M%S) "
58
58
fi
59
- mkdir -p $CONTENT_FOLDER
59
+ mkdir -p " $CONTENT_FOLDER "
60
60
mkdir -p Content
61
61
if hash aria2c 2> /dev/null; then
62
62
echo -e " ${CONTENT_LINK} \n\tout=Content.tar.gz" > .aria2c.input
@@ -67,7 +67,7 @@ function download_content {
67
67
fi
68
68
tar -xvzf Content.tar.gz -C Content
69
69
rm Content.tar.gz
70
- mv Content/* $CONTENT_FOLDER
70
+ mv Content/* " $CONTENT_FOLDER "
71
71
rm -rf Content
72
72
echo " $CONTENT_ID " > " $VERSION_FILE "
73
73
echo " Content updated successfully."
You can’t perform that action at this time.
0 commit comments