CARLA
Loading...
Searching...
No Matches
SpringBasedVegetationComponent.cpp File Reference
#include "Carla/Vegetation/SpringBasedVegetationComponent.h"
#include "Carla/Walker/WalkerAnim.h"
#include "BaseVegetationActor.h"
#include "Vehicle/CarlaWheeledVehicle.h"
#include <util/disable-ue4-macros.h>
#include <carla/rpc/String.h>
#include <util/enable-ue4-macros.h>
#include <util/ue-header-guard-begin.h>
#include "Math/Matrix.h"
#include "Components/CapsuleComponent.h"
#include "DrawDebugHelpers.h"
#include "Kismet/KismetMathLibrary.h"
#include <util/ue-header-guard-end.h>
#include <unordered_set>
#include <vector>
#include <cmath>
#include <sstream>
#include <Eigen/Dense>
#include <Eigen/Cholesky>
#include <Eigen/Eigenvalues>

Go to the source code of this file.

Classes

struct  FJointProperties

Macros

#define ACC_LOG(...)
#define ACCUMULATIONLOGS   0
#define COLLISION_LOG(...)
#define COLLISIONLOGS   0
#define FICT_LOG(...)
#define FICTITIOUSFORCELOGS   0
#define OTHER_LOG(...)
#define OTHERLOGS   0
#define SOLVER_LOG(...)
#define SOLVERLOGS   0
#define SPRINGVEGETATIONLOGS   0

Functions

template<class T>
static FString EigenToFString (T &t)
static FRotator EigenVectorToRotator (const Eigen::Vector3d &Vector)
FRotator GetDeltaRotator (const FRotator &Rotator1, const FRotator &Rotator2)
template<class T>
static T GetSign (T n)
static Eigen::Matrix3d OuterProduct (const Eigen::Vector3d &V1)
static Eigen::Matrix3d OuterProduct (const Eigen::Vector3d &V1, const Eigen::Vector3d &V2)
static Eigen::Vector3d RotatorToEigenVector (const FRotator &Rotator)
static Eigen::Matrix3d ToEigenMatrix (const FMatrix &Matrix)
static Eigen::Matrix3d ToEigenMatrix (const FTransform &Transform)
static Eigen::Vector3d ToEigenVector (const FVector &V1)
static FVector ToUnrealVector (const Eigen::Vector3d &V1)

Macro Definition Documentation

◆ ACC_LOG

#define ACC_LOG ( ...)

Definition at line 65 of file SpringBasedVegetationComponent.cpp.

◆ ACCUMULATIONLOGS

#define ACCUMULATIONLOGS   0

Definition at line 48 of file SpringBasedVegetationComponent.cpp.

◆ COLLISION_LOG

#define COLLISION_LOG ( ...)

Definition at line 60 of file SpringBasedVegetationComponent.cpp.

◆ COLLISIONLOGS

#define COLLISIONLOGS   0

Definition at line 47 of file SpringBasedVegetationComponent.cpp.

◆ FICT_LOG

#define FICT_LOG ( ...)

Definition at line 70 of file SpringBasedVegetationComponent.cpp.

◆ FICTITIOUSFORCELOGS

#define FICTITIOUSFORCELOGS   0

Definition at line 49 of file SpringBasedVegetationComponent.cpp.

◆ OTHER_LOG

◆ OTHERLOGS

#define OTHERLOGS   0

Definition at line 50 of file SpringBasedVegetationComponent.cpp.

◆ SOLVER_LOG

#define SOLVER_LOG ( ...)

Definition at line 55 of file SpringBasedVegetationComponent.cpp.

◆ SOLVERLOGS

#define SOLVERLOGS   0

Definition at line 46 of file SpringBasedVegetationComponent.cpp.

◆ SPRINGVEGETATIONLOGS

#define SPRINGVEGETATIONLOGS   0

Definition at line 45 of file SpringBasedVegetationComponent.cpp.

Function Documentation

◆ EigenToFString()

template<class T>
FString EigenToFString ( T & t)
static

Definition at line 127 of file SpringBasedVegetationComponent.cpp.

References EigenToFString().

Referenced by EigenToFString().

◆ EigenVectorToRotator()

FRotator EigenVectorToRotator ( const Eigen::Vector3d & Vector)
static

Definition at line 170 of file SpringBasedVegetationComponent.cpp.

References EigenVectorToRotator(), and Vector.

Referenced by EigenVectorToRotator().

◆ GetDeltaRotator()

FRotator GetDeltaRotator ( const FRotator & Rotator1,
const FRotator & Rotator2 )

Definition at line 96 of file SpringBasedVegetationComponent.cpp.

References GetDeltaRotator().

Referenced by GetDeltaRotator().

◆ GetSign()

template<class T>
T GetSign ( T n)
static

Definition at line 122 of file SpringBasedVegetationComponent.cpp.

References GetSign().

Referenced by GetSign().

◆ OuterProduct() [1/2]

Eigen::Matrix3d OuterProduct ( const Eigen::Vector3d & V1)
static

Definition at line 137 of file SpringBasedVegetationComponent.cpp.

References OuterProduct().

◆ OuterProduct() [2/2]

Eigen::Matrix3d OuterProduct ( const Eigen::Vector3d & V1,
const Eigen::Vector3d & V2 )
static

Definition at line 133 of file SpringBasedVegetationComponent.cpp.

References OuterProduct().

Referenced by OuterProduct(), and OuterProduct().

◆ RotatorToEigenVector()

Eigen::Vector3d RotatorToEigenVector ( const FRotator & Rotator)
static

Definition at line 163 of file SpringBasedVegetationComponent.cpp.

References RotatorToEigenVector().

Referenced by RotatorToEigenVector().

◆ ToEigenMatrix() [1/2]

Eigen::Matrix3d ToEigenMatrix ( const FMatrix & Matrix)
static

Definition at line 150 of file SpringBasedVegetationComponent.cpp.

References ToEigenMatrix().

Referenced by ToEigenMatrix(), and ToEigenMatrix().

◆ ToEigenMatrix() [2/2]

Eigen::Matrix3d ToEigenMatrix ( const FTransform & Transform)
static

Definition at line 158 of file SpringBasedVegetationComponent.cpp.

References ToEigenMatrix().

◆ ToEigenVector()

Eigen::Vector3d ToEigenVector ( const FVector & V1)
static

Definition at line 142 of file SpringBasedVegetationComponent.cpp.

References ToEigenVector().

Referenced by ToEigenVector().

◆ ToUnrealVector()

FVector ToUnrealVector ( const Eigen::Vector3d & V1)
static

Definition at line 146 of file SpringBasedVegetationComponent.cpp.

References ToUnrealVector().

Referenced by ToUnrealVector().