Browse Source

Added a note in the get_robot_floor_pose_xya, telling to set the broadcast_odom_tf parameter to True.

pull/15/head
Jesus Eduardo Rodriguez 9 months ago
committed by GitHub
parent
commit
43be2bb0e5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      ros2/intro_to_hellonode.md

+ 5
- 1
ros2/intro_to_hellonode.md View File

@ -107,6 +107,10 @@ print(t.transform.translation)
Returns the current estimated x, y position and angle of the robot on the floor. This is typically called with respect to the odom frame or the map frame. x and y are in meters and the angle is in radians.
!!! note
To get the robot pose with respect to the odom frame we need to launch stretch_driver along with the broadcast_odom_tf parameter set to True. To do this execute the command:
`ros2 launch stretch_core stretch_driver.launch.py broadcast_odom_tf:=True`
```python
# launch the stretch driver launch file beforehand
@ -247,4 +251,4 @@ from std_srvs.srv import TriggerRequest
import hello_helpers.hello_misc as hm
temp = hm.HelloNode.quick_create('temp')
temp.switch_to_navigation_mode_service(TriggerRequest())
```
```

Loading…
Cancel
Save