docs: fix tf2 code snippet (#194)

* fix transform code

* fix transform code

* docs: import PoseStamped directly from geometry_msgs
This commit is contained in:
timkondratiev
2019-12-03 01:19:50 +03:00
committed by Oleg Kalachev
parent 591d57e2b2
commit c3a4f674ec
2 changed files with 2 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ Transforming the position (`PoseStamped`) from one system of coordinates ([of fr
```python
import tf2_ros
import tf2_geometry_msgs
from geometry_msgs.msg import PoseStamped
tf_buffer = tf2_ros.Buffer()
tf_listener = tf2_ros.TransformListener(tf_buffer)

View File

@@ -164,6 +164,7 @@ arming(False) # дизарм
```python
import tf2_ros
import tf2_geometry_msgs
from geometry_msgs.msg import PoseStamped
tf_buffer = tf2_ros.Buffer()
tf_listener = tf2_ros.TransformListener(tf_buffer)