Skip to content

Commit

Permalink
Merge pull request #186 from wahllca/GSS_lat_velocity
Browse files Browse the repository at this point in the history
Changed the velocity vector in the GSS back to the global coordinate system
  • Loading branch information
SijmenHuizenga authored Jul 26, 2020
2 parents c47eccd + ff461ea commit 777afa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AirSim/AirLib/include/sensors/gss/GSSSimple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class GSSSimple : public SensorBase {
const GroundTruth& ground_truth = getGroundTruth();

output.time_stamp = clock()->nowNanos();
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());
output.linear_velocity = ground_truth.kinematics->twist.linear;

output_ = output;
}
Expand Down
5 changes: 2 additions & 3 deletions docs/ground-speed-sensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

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

Velocity information is captured in the frame of the car in the NED frame.
Velocity information is captured in the global world frame in ENU frame.

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.

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

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

```
header:
Expand Down

0 comments on commit 777afa3

Please sign in to comment.