# Error updating the pose or robot in FUNMAP

**URL:** <https://forum.hello-robot.com/t/error-updating-the-pose-or-robot-in-funmap/877>\
**Category:** Ask\
**Created:** [December 21, 2023, 1:03am UTC](https://forum.hello-robot.com/t/error-updating-the-pose-or-robot-in-funmap/877 "2023-12-21T01:03:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Humberto\_Andres\_Hida](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/humberto_andres_hida/32/524_2.png) [@Humberto\_Andres\_Hida](https://forum.hello-robot.com/u/Humberto_Andres_Hida)\
**Post date:** [December 21, 2023, 1:03am UTC](https://forum.hello-robot.com/t/error-updating-the-pose-or-robot-in-funmap/877/1 "2023-12-21T01:03:35Z")

</div>

I am using the FUNMAP to take objects avoiding object with the stretch 2 and ROS 1, but there is a error in the FUNMAP, since the robot in the FUNMAP (in rviz) initialize in the same point of the map, is necessary to send a estimation of the inicial pose and the robot start to move from this point, with error of the inicial pose that i out in rviz, which means a big error to take objects. For example if I put a pose with the robot looking to the Y axis, but in the reality the robot looks the X axis and the object is in from of the robot in the reality, the robot will move in the Y axis in the FUNMAP (rviz) and I the X in the reality

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [December 28, 2023, 4:37am UTC](https://forum.hello-robot.com/t/error-updating-the-pose-or-robot-in-funmap/877/2 "2023-12-28T04:37:24Z")

</div>

Hi @Humberto_Andres_Hida, I’d like to confirm I understand your question correctly. Are you asking about finding Stretch’s initial location in a map?

If so, you’re likely looking for FUNMAP to perform a “global localization”. After roslaunching FUNMAP, the robot doesn’t know where it’s located in the map. Performing a global localization involves scanning the environment and looking for a match within the map to identify where the robot is located.

```auto
# launch FUNMAP in another terminal first, then:
rosservice call /funmap/trigger_global_localization

```

---

<div class="post-metadata">

**Author:** ![Humberto\_Andres\_Hida](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/humberto_andres_hida/32/524_2.png) [@Humberto\_Andres\_Hida](https://forum.hello-robot.com/u/Humberto_Andres_Hida)\
**Post date:** [January 9, 2024, 6:16pm UTC](https://forum.hello-robot.com/t/error-updating-the-pose-or-robot-in-funmap/877/4 "2024-01-09T18:16:15Z")

</div>

Thanks, that helps a lot
