Skip to content

Commit

Permalink
Fixed Unreal Lidar sensor incorrectly setting start position for the …
Browse files Browse the repository at this point in the history
…traces (#2143)

* Fixed Unreal Lidar sensor incorrectly setting start position for the traces by not accounting for the rotation of sensor/vehicle
  • Loading branch information
WouterJansen authored and ironclownfish committed Oct 8, 2019
1 parent 3d8c5ee commit a56de97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ bool UnrealLidarSensor::shootLaser(const msr::airlib::Pose& lidar_pose, const ms
const msr::airlib::LidarSimpleParams params, Vector3r &point, int &segmentationID)
{
// start position
Vector3r start = lidar_pose.position + vehicle_pose.position;
Vector3r start = VectorMath::add(lidar_pose, vehicle_pose).position;

// We need to compose rotations here rather than rotate a vector by a quaternion
// Hence using coordOrientationAdd(..) rather than rotateQuaternion(..)
Expand Down

0 comments on commit a56de97

Please # to comment.