Skip to content

Commit

Permalink
increased the tolerance,
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio-Chies authored Nov 4, 2024
1 parent a561d4b commit f43eeec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/simulation/gz_bridge/GZBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,10 @@ void GZBridge::laserScantoLidarSensorCallback(const gz::msgs::LaserScan &scan)
const gz::math::Quaterniond q_front(0.7071068, 0.7071068, 0, 0);
const gz::math::Quaterniond q_down(0, 1, 0, 0);

if (q_sensor.Equal(q_front, 0.01)) {
if (q_sensor.Equal(q_front, 0.03)) {
distance_sensor.orientation = distance_sensor_s::ROTATION_FORWARD_FACING;

} else if (q_sensor.Equal(q_down, 0.01)) {
} else if (q_sensor.Equal(q_down, 0.03)) {
distance_sensor.orientation = distance_sensor_s::ROTATION_DOWNWARD_FACING;

} else {
Expand Down

0 comments on commit f43eeec

Please sign in to comment.