Compare commits

...

1 Commits

Author SHA1 Message Date
Jaeyoung Lim ce45d0a3eb Fix gz airspeed sensor 2024-08-20 18:20:00 +02:00
2 changed files with 3 additions and 2 deletions
@@ -424,7 +424,7 @@ void GZBridge::barometerCallback(const gz::msgs::FluidPressure &air_pressure)
pthread_mutex_unlock(&_node_mutex);
}
void GZBridge::airspeedCallback(const gz::msgs::AirSpeed &air_speed)
void GZBridge::airspeedCallback(const gz::msgs::AirSpeedSensor &air_speed)
{
if (hrt_absolute_time() == 0) {
return;
@@ -69,6 +69,7 @@
#include <gz/msgs/model.pb.h>
#include <gz/msgs/odometry_with_covariance.pb.h>
#include <gz/msgs/laserscan.pb.h>
#include <gz/msgs9/gz/msgs/air_speed_sensor.pb.h>
using namespace time_literals;
@@ -102,7 +103,7 @@ private:
void clockCallback(const gz::msgs::Clock &clock);
void airspeedCallback(const gz::msgs::AirSpeed &air_speed);
void airspeedCallback(const gz::msgs::AirSpeedSensor &air_speed);
void barometerCallback(const gz::msgs::FluidPressure &air_pressure);
void imuCallback(const gz::msgs::IMU &imu);
void poseInfoCallback(const gz::msgs::Pose_V &pose);