-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obstacle distance msg update #9071
Conversation
@@ -6,7 +6,7 @@ uint8 MAV_DISTANCE_SENSOR_ULTRASOUND = 1 | |||
uint8 MAV_DISTANCE_SENSOR_INFRARED = 2 | |||
uint8 MAV_DISTANCE_SENSOR_RADAR = 3 | |||
|
|||
uint16[72] distances # Distance of obstacles in front of the sensor starting on the left side. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstace is present. A value of UINT16_MAX for unknown/not used. In a array element, each unit corresponds to 1cm. | |||
uint16[72] distances # Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "local" north mean here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It means North of the local coordinate system -> not necessarily global North (depending on the estimation)
…bstacle_distance mavlink message
159ee7a
to
df920b4
Compare
@dagar can we merge this? It's only an update of the comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging because it directly reflects the MAVLink message definition of the data that gets read into this uORB message, see : https://mavlink.io/en/messages/common.html#OBSTACLE_DISTANCE
distances: Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
@mhkabir This definition makes sense especially for any obstacle distance information based on some kind of memory like a map which should not rotate with the vehicle. A body based representation would only be favourable if it's used for a "stupid" sensor that doesn't have a memory and doesn't need the vehicle orientation just knows what it sees in that moment from the sensor orientation frame. If that's what we want is up to discussion and in the case we want to change something likely also the MAVLink message needs to change.
@MaEtUgR Then the message definition should be updated to not mention "sensor" anywhere, if you're using this as a generic way to transport a simplified "map" representation. In it's current form it is not intuitive. |
Not possible because the message additionally includes fields with sensors in the name (changing would be compatibility break) and may either transport info from a sensor system or from a map. It could be improved though. Below is a better description.
For max_distance we might change "max distance" to: maximum distance for reliable data. |
update distances description according to latest obstacle_distance mavlink message