Skip to content

Commit

Permalink
Fix LiDAR on top of vehicle instead of bottom of vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
f0reachARR committed Apr 18, 2024
1 parent 99f7276 commit 1146f91
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ auto LidarSensor<sensor_msgs::msg::PointCloud2>::raycast(
geometry_msgs::msg::Pose pose;
simulation_interface::toMsg(entity.pose(), pose);
ego_pose = pose;
ego_pose->position.z += entity.bounding_box().dimensions().z();
} else {
geometry_msgs::msg::Pose pose;
simulation_interface::toMsg(entity.pose(), pose);
Expand Down

0 comments on commit 1146f91

Please sign in to comment.