diff --git a/msg/proximity.msg b/msg/proximity.msg index a28e556..1721c15 100644 --- a/msg/proximity.msg +++ b/msg/proximity.msg @@ -1,17 +1,3 @@ # Reports the instantaneous measurement of a proximity sensor. -# Radiation enumerations. -uint8 UNSPECIFIED=255 -uint8 ULTRASOUND=0 -uint8 INFRARED=1 -uint8 RADAR=2 - -uint8 radiation_type # The type of radiation used by the sensor (e.g. ULTRASOUND, INFRARED, RADAR) - -float32 min_range # The minimum detection range of the sensor [m] -float32 max_range # The maximum detection range of the sensor [m] -float32 field_of_view # The maximum FoV of the sensor [rad] - -bool proximity # Reports TRUE if proximity is detected, otherwise FALSE. - -string frame_id # The ID of the measurement frame. +bool proximity # Reports TRUE if proximity is detected, otherwise FALSE. \ No newline at end of file diff --git a/srv/get_proximity_configuration.srv b/srv/get_proximity_configuration.srv new file mode 100644 index 0000000..24c10b6 --- /dev/null +++ b/srv/get_proximity_configuration.srv @@ -0,0 +1,13 @@ +# Retrieves the configuration of a proximity sensor. + +--- +uint8 radiation_type # The type of radiation used by the sensor. +uint8 RADIATION_TYPE_UNSPECIFIED=255 +uint8 RADIATION_TYPE_ULTRASOUND=0 +uint8 RADIATION_TYPE_INFRARED=1 +uint8 RADIATION_TYPE_RADAR=2 + +float32 min_range # The minimum detection range of the sensor [m] +float32 max_range # The maximum detection range of the sensor [m] + +float32 field_of_view # The maximum FoV of the sensor [rad] \ No newline at end of file