Agrarsense
|
#include <SensorUtilities.h>
Static Public Member Functions | |
static void | EnableAllSensors (const UObject *WorldContextObject) |
static void | DisableAllSensors (const UObject *WorldContextObject) |
static void | SetSimulateAllSensors (const UObject *WorldContextObject, bool SimulateSensors) |
static void | DestroyAllSensors (const UObject *WorldContextObject, bool DestroyDefaultVehicleSensors=false) |
static void | EnableSensorsAttachedToVehicle (AVehicle *Vehicle) |
static void | DisableSensorsAttachedToVehicle (AVehicle *Vehicle) |
static void | SetSimulateSensorsAttachedToVehicle (AVehicle *Vehicle, bool SimulateSensors) |
static void | HideComponentForAllCameraSensors (UPrimitiveComponent *PrimitiveComponent) |
Class fo sensor related utilities.
Definition at line 20 of file SensorUtilities.h.
|
static |
Destroy all sensors currently existing in the level. Default behavior does not destroy vehicle-related sensors like Transform, Collision or Overlap sensors.
Definition at line 42 of file SensorUtilities.cpp.
References Collision, ASensor::GetSensorType(), Overlap, Sensors, Transform, and Vehicle.
Referenced by UROSCommands::HandleDestroyAllSensors().
|
static |
Disable all sensors in the level.
Definition at line 21 of file SensorUtilities.cpp.
References SetSimulateAllSensors().
Referenced by UROSCommands::HandleDisableAllSensors(), and UROSCommands::HandleSetAllSensorsEnabled().
|
static |
Disable all sensors attached to Vehicle actor
Definition at line 101 of file SensorUtilities.cpp.
References SetSimulateSensorsAttachedToVehicle(), and Vehicle.
|
static |
Enable all sensors in the level.
Definition at line 16 of file SensorUtilities.cpp.
References SetSimulateAllSensors().
Referenced by UROSCommands::HandleEnableAllSensors(), and UROSCommands::HandleSetAllSensorsEnabled().
|
static |
Enable all sensors attached to Vehicle actor
Definition at line 96 of file SensorUtilities.cpp.
References SetSimulateSensorsAttachedToVehicle(), and Vehicle.
|
static |
Hides the specified primitive component for all camera sensors in the level. Most of the rendering related components are derived from UPrimitiveComponent.
PrimitiveComponent | - The primitive component to be hidden for all camera sensors. |
Definition at line 130 of file SensorUtilities.cpp.
References ASensor::HideComponentForAllCameras().
|
static |
Set Simulate all sensors in the level.
Definition at line 26 of file SensorUtilities.cpp.
References Sensors, and ASensor::SetSimulateSensor().
Referenced by DisableAllSensors(), and EnableAllSensors().
|
static |
Set Simulate all sensors attached to Vehicle actor
Definition at line 106 of file SensorUtilities.cpp.
References ASensor::SetSimulateSensor(), and Vehicle.
Referenced by DisableSensorsAttachedToVehicle(), and EnableSensorsAttachedToVehicle().