File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ repositories:
2
2
extensions/udp:
3
3
type: git
4
4
url:
[email protected] :RobotecAI/RGL-extension-udp.git
5
- version: develop
5
+ version: feature/q2-features
6
6
7
7
extensions/snow:
8
8
type: git
Original file line number Diff line number Diff line change 19
19
20
20
#include < RGLExceptions.hpp>
21
21
#include < gpu/GPUFieldDesc.hpp>
22
- #include < graph/Interfaces.hpp>
23
- #include < graph/NodesCore.hpp>
24
22
#include < memory/Array.hpp>
25
23
26
24
// Builder for GPUFieldDesc. Separated struct to avoid polluting gpu-visible header (gpu/GPUFieldDesc.hpp).
Original file line number Diff line number Diff line change 30
30
#include < gpu/nodeKernels.hpp>
31
31
#include < CacheManager.hpp>
32
32
#include < GPUFieldDescBuilder.hpp>
33
- #include < math/RuningStats .hpp>
33
+ #include < math/RunningStats .hpp>
34
34
#include < gpu/MultiReturn.hpp>
35
35
36
36
@@ -621,6 +621,7 @@ struct RadarTrackObjectsNode : IPointsNodeSingleInput
621
621
uint8_t classPedestrian{0 };
622
622
uint8_t classAnimal{0 };
623
623
uint8_t classHazard{0 };
624
+ uint8_t classUnknown{0 };
624
625
};
625
626
626
627
struct ObjectState
Original file line number Diff line number Diff line change 1
- // Copyright 2023 Robotec.AI
1
+ // Copyright 2024 Robotec.AI
2
2
//
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
@@ -29,14 +29,17 @@ class RunningStats
29
29
return stats;
30
30
}
31
31
32
- void addSample (StatType sample)
32
+ void addSample (const StatType& sample)
33
33
{
34
34
++counter;
35
- StatType delta = sample - mean;
35
+ const StatType delta = sample - mean;
36
36
mean += delta / counter;
37
37
m2 += delta * (sample - mean);
38
+ lastSample = sample;
38
39
}
39
40
41
+ StatType getLastSample () const { return lastSample; }
42
+
40
43
StatType getMean () const { return mean; }
41
44
42
45
StatType getVariance () const { return counter < 2 ? StatType{} : m2 / counter; }
@@ -71,4 +74,5 @@ class RunningStats
71
74
size_t counter{0 };
72
75
StatType mean{0 };
73
76
StatType m2{0 };
77
+ StatType lastSample{0 };
74
78
};
You can’t perform that action at this time.
0 commit comments