Skip to content

Commit 777afa3

Browse files
Merge pull request #186 from wahllca/GSS_lat_velocity
Changed the velocity vector in the GSS back to the global coordinate system
2 parents c47eccd + ff461ea commit 777afa3

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

AirSim/AirLib/include/sensors/gss/GSSSimple.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class GSSSimple : public SensorBase {
2727
const GroundTruth& ground_truth = getGroundTruth();
2828

2929
output.time_stamp = clock()->nowNanos();
30-
output.linear_velocity = Vector3r(std::sqrt(std::pow(ground_truth.kinematics->twist.linear.x(), 2) + std::pow(ground_truth.kinematics->twist.linear.y(), 2)), 0, ground_truth.kinematics->twist.linear.z());
30+
output.linear_velocity = ground_truth.kinematics->twist.linear;
3131

3232
output_ = output;
3333
}

docs/ground-speed-sensor.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
The ground speed sensor is modeled around the Kistler ground speed (like the Kistler Correvit SFII).
44

5-
Velocity information is captured in the frame of the car in the NED frame.
5+
Velocity information is captured in the global world frame in ENU frame.
66

77
At this moment no extra noise is added to the sensordata since the kistler 250hz data averaged into the 100hz is so close to ground truth that adding noise would be unrealistic.
88

99
## Ros
1010
When using the ros bridge, ground speed sensordata will be published on `/fsds/gss` with the `geometry_msgs/TwistStamped` message type.
1111

12-
Appart from the header fields, only `x` and `z` of the `twist.linear` are populated.
13-
All other values will be 0.
12+
Appart from the header fields, only `x`, `y` and `z` of the `twist.linear` are populated.
1413

1514
```
1615
header:

0 commit comments

Comments
 (0)