docs: add snippet for using aruco_detect/enabled dynamic parameter

This commit is contained in:
Oleg Kalachev
2021-04-20 16:53:53 +03:00
parent 659380c575
commit cb88537ddc
2 changed files with 50 additions and 0 deletions

View File

@@ -359,3 +359,28 @@ calibrate_gyro()
```
> **Note** In process of calibration the drone should not be moved.
<!-- markdownlint-disable MD044 -->
### # {#aruco-detect-enabled}
<!-- markdownlint-enable MD044 -->
Enable and disable [ArUco markers recognition](aruco_marker.md) dynamically (for example, for saving CPU resources):
```python
import rospy
import dynamic_reconfigure.client
# ...
client = dynamic_reconfigure.client.Client('aruco_detect')
# Turn markers recognition off
client.update_configuration({'enabled': False})
rospy.sleep(5)
# Turn markers recognition on
client.update_configuration({'enabled': True})
```

View File

@@ -377,3 +377,28 @@ calibrate_gyro()
```
> **Note** В процессе калибровки гироскопов дрон нельзя двигать.
<!-- markdownlint-disable MD044 -->
### # {#aruco-detect-enabled}
<!-- markdownlint-enable MD044 -->
Динамически включать и отключать [распознавание ArUco-маркеров](aruco_marker.md) (например, для экономии ресурсов процессора):
```python
import rospy
import dynamic_reconfigure.client
# ...
client = dynamic_reconfigure.client.Client('aruco_detect')
# Turn markers recognition off
client.update_configuration({'enabled': False})
rospy.sleep(5)
# Turn markers recognition on
client.update_configuration({'enabled': True})
```