From b05e64c4c5ccac49066ac1f3ec9bb77b0ba369ed Mon Sep 17 00:00:00 2001 From: henrykotze Date: Fri, 24 Nov 2023 12:27:14 +0200 Subject: [PATCH 1/3] Copy of air_speed_sensor.proto, but renamed Signed-off-by: henrykotze --- proto/gz/msgs/air_flow_sensor.proto | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 proto/gz/msgs/air_flow_sensor.proto diff --git a/proto/gz/msgs/air_flow_sensor.proto b/proto/gz/msgs/air_flow_sensor.proto new file mode 100644 index 00000000..ce0f4e83 --- /dev/null +++ b/proto/gz/msgs/air_flow_sensor.proto @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2023 Open Source Robotics Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * +*/ + +syntax = "proto3"; +package gz.msgs; +option java_package = "com.gz.msgs"; +option java_outer_classname = "AirSpeedSensorProtos"; + +/// \ingroup gz.msgs +/// \interface AirSpeedSensor +/// \brief Definition of an air speed sensor + +import "gz/msgs/header.proto"; +import "gz/msgs/sensor_noise.proto"; + +/// \brief Message that describes an air speed sensor. +message AirSpeedSensor +{ + /// \brief header data + Header header = 1; + + /// \brief Differential pressure (hPa). + double diff_pressure = 2; + + /// \brief Temperature (kelvin). + double temperature = 3; + + /// \brief Sensor speed noise. + SensorNoise pressure_noise = 4; +} From f41101990a3ff4c4356fa3165babc1f32ed1905b Mon Sep 17 00:00:00 2001 From: henrykotze Date: Fri, 24 Nov 2023 12:45:02 +0200 Subject: [PATCH 2/3] Added sensible contents for message Signed-off-by: henrykotze --- proto/gz/msgs/air_flow_sensor.proto | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/proto/gz/msgs/air_flow_sensor.proto b/proto/gz/msgs/air_flow_sensor.proto index ce0f4e83..23728983 100644 --- a/proto/gz/msgs/air_flow_sensor.proto +++ b/proto/gz/msgs/air_flow_sensor.proto @@ -18,27 +18,30 @@ syntax = "proto3"; package gz.msgs; option java_package = "com.gz.msgs"; -option java_outer_classname = "AirSpeedSensorProtos"; +option java_outer_classname = "AirFlowSensorProtos"; /// \ingroup gz.msgs -/// \interface AirSpeedSensor -/// \brief Definition of an air speed sensor +/// \interface AirFlowSensor +/// \brief Definition of an airflow sensor import "gz/msgs/header.proto"; import "gz/msgs/sensor_noise.proto"; -/// \brief Message that describes an air speed sensor. -message AirSpeedSensor +/// \brief Message that describes an airflow sensor. +message AirFlowSensor { /// \brief header data Header header = 1; - /// \brief Differential pressure (hPa). - double diff_pressure = 2; + /// \brief airflow speed Mag in the xy plane (m/s). + double xy_speed = 2; - /// \brief Temperature (kelvin). - double temperature = 3; + /// \brief airflow direction in xy plane (rad). + double xy_direction = 3; /// \brief Sensor speed noise. - SensorNoise pressure_noise = 4; + SensorNoise speed_noise = 4; + + /// \brief Sensor direction noise. + SensorNoise direction_noise = 5; } From f531353b96b4457a2089c0fbd39148ac3c9ddc8b Mon Sep 17 00:00:00 2001 From: henrykotze Date: Wed, 29 Nov 2023 14:36:19 +0200 Subject: [PATCH 3/3] Format update Signed-off-by: henrykotze --- proto/gz/msgs/air_flow_sensor.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proto/gz/msgs/air_flow_sensor.proto b/proto/gz/msgs/air_flow_sensor.proto index 23728983..de474911 100644 --- a/proto/gz/msgs/air_flow_sensor.proto +++ b/proto/gz/msgs/air_flow_sensor.proto @@ -34,14 +34,14 @@ message AirFlowSensor Header header = 1; /// \brief airflow speed Mag in the xy plane (m/s). - double xy_speed = 2; + double xy_speed = 2; /// \brief airflow direction in xy plane (rad). - double xy_direction = 3; + double xy_direction = 3; /// \brief Sensor speed noise. SensorNoise speed_noise = 4; /// \brief Sensor direction noise. - SensorNoise direction_noise = 5; + SensorNoise direction_noise = 5; }