diff --git a/src/gazebo_mavlink_interface.cpp b/src/gazebo_mavlink_interface.cpp index bb323ed0a7..f4750f9b43 100644 --- a/src/gazebo_mavlink_interface.cpp +++ b/src/gazebo_mavlink_interface.cpp @@ -95,7 +95,7 @@ void GazeboMavlinkInterface::CreateSensorSubscription( #if GAZEBO_MAJOR_VERSION >= 9 const auto sensor_orientation = nested_model->RelativePose().Rot(); #else - const auto sensor_orientation = nested_model->GetChild()->GetRelativePose()).Rot(); + const auto sensor_orientation = nested_model->GetChild()->GetRelativePose().Rot(); #endif // One map will be created for each Gazebo message type