Implement dynamic reconfiguration for aruco_map (#448)

This commit is contained in:
Oleg Kalachev
2022-07-19 03:30:43 +03:00
committed by GitHub
parent 98d21d1760
commit 5325017a77
6 changed files with 127 additions and 18 deletions

View File

@@ -390,6 +390,26 @@ rospy.sleep(5)
flow_client.update_configuration({'enabled': True})
```
<!-- markdownlint-disable MD044 -->
### # {#aruco-map-dynamic}
> **Info** For [RPi image](image.md) version > 0.23.
Change the used [ArUco markers map file](aruco_map.md) dynamically:
<!-- markdownlint-enable MD044 -->
```python
import rospy
import dynamic_reconfigure.client
rospy.init_node('flight')
map_client = dynamic_reconfigure.client.Client('aruco_map')
map_client.update_configuration({'map': '/home/pi/catkin_ws/src/clover/aruco_pose/map/office.txt'})
```
### # {#wait-global-position}
Wait for global position to appear (finishing [GPS receiver](gps.md) initialization):

View File

@@ -401,6 +401,26 @@ rospy.sleep(5)
flow_client.update_configuration({'enabled': True})
```
<!-- markdownlint-disable MD044 -->
### # {#aruco-map-dynamic}
> **Info** Для [образа](image.md) версии > 0.23.
Динамически изменить используемый файл с [картой ArUco-маркеров](aruco_map.md):
<!-- markdownlint-enable MD044 -->
```python
import rospy
import dynamic_reconfigure.client
rospy.init_node('flight')
map_client = dynamic_reconfigure.client.Client('aruco_map')
map_client.update_configuration({'map': '/home/pi/catkin_ws/src/clover/aruco_pose/map/office.txt'})
```
### # {#wait-global-position}
Ожидать появления глобальной позиции (окончания инициализации [GPS-приемника](gps.md)):