Distance sensor
ROS / ros eco / packages / mavros
Plugin
mavros_extra distance_sensor
The plugin use as publisher for mavlink DISTANCE_SENSOR(132) And can be Subscriber and send range data into the FCU
Rangefinder
Ardupilot send mavlink message Rangefinder (173) There is a plugin in that handle this message mavros_extra.rangefinder
Topic and Mavlink message
| mavlink | mavros topic(message) |
|---|---|
| DISTANCE_SENSOR(132) | rangefinder (sensor_msgs/msg/Range) |
Topic name
The topic name set by the config param
rangefinder_pub is the topic name for sensor id 0
usage
| set message interval | |
|---|---|
Parameters
- line 4: use as publisher topic name
- line 11: use as subscriber topic name
Config publisher
| field | usage |
|---|---|
| subscriber | default(false) |
| id | sensor id |
| frame_id | use by message header frame_id and tf message |
| field_of_view | sensor info |
| send_tf | send data as tf default(false) |
| custom_orientation | |
Config subscriber
| field | usage |
|---|---|
| orientation | |
| covariance | |
| horizontal_fov_ratio | |
| vertical_fov_ratio | |
| sensor_position | |
| --- |