# Error running service on Funmap

**URL:** <https://forum.hello-robot.com/t/error-running-service-on-funmap/601>\
**Category:** Ask\
**Created:** [February 21, 2023, 1:38am UTC](https://forum.hello-robot.com/t/error-running-service-on-funmap/601 "2023-02-21T01:38:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nwagwu](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/nwagwu/32/403_2.png) [@nwagwu](https://forum.hello-robot.com/u/nwagwu)\
**Post date:** [February 21, 2023, 1:38am UTC](https://forum.hello-robot.com/t/error-running-service-on-funmap/601/1 "2023-02-21T01:38:15Z")

</div>

Hi,

I have a Stretch RE2 and am currently on the dev/noetic branch. I was running into an issue where Funmap was throwing an error saying that there was no connection between ‘map’ and ‘base\_link’ frames. I’ve linked the error below. Particularly, I am trying to make a service call to the align with surface method in Funmap. Was wondering if anyone was privy to any solutions on remedying this. Thanks.

Traceback (most recent call last):  
File “replication\_controller.py”, line 287, in   
node.main()  
File “replication\_controller.py”, line 280, in main  
self.tableCommand()  
File “replication\_controller.py”, line 87, in tableCommand  
self.align\_to\_surface()  
File “replication\_controller.py”, line 82, in align\_to\_surface  
trigger\_result = self.trigger\_align\_with\_nearest\_cliff\_service(trigger\_request)  
File “/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros\_service.py”, line 442, in **call**  
return self.call(\*args, \*\*kwds)  
File “/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros\_service.py”, line 523, in call  
responses = transport.receive\_once()  
File “/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros\_base.py”, line 742, in receive\_once  
p.read\_messages(b, msg\_queue, sock)  
File “/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros\_service.py”, line 360, in read\_messages  
self.\_read\_ok\_byte(b, sock)  
File “/opt/ros/noetic/lib/python3/dist-packages/rospy/impl/tcpros\_service.py”, line 343, in \_read\_ok\_byte  
raise ServiceException(“service [%s] responded with an error: %s”%(self.resolved\_name, str))  
rospy.service.ServiceException: service [/funmap/trigger\_align\_with\_nearest\_cliff] responded with an error: b"error processing request: Could not find a connection between ‘map’ and ‘base\_link’ because they are not part of the same tree.Tf has two or more unconnected trees."

---

<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:** [February 22, 2023, 7:35pm UTC](https://forum.hello-robot.com/t/error-running-service-on-funmap/601/2 "2023-02-22T19:35:02Z")

</div>

Hey @nwagwu, I can take a look at the align to surface method to see whether it works for me. I haven’t run it in a while, so I’ll let you know how it goes running it on my robot. Have you tried using [rqt\_tf\_tree](http://wiki.ros.org/rqt_tf_tree) to see if the map to base\_link path is in the TF tree?

---

<div class="post-metadata">

**Author:** ![chintujaguar](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/chintujaguar/32/260_2.png) [@chintujaguar](https://forum.hello-robot.com/u/chintujaguar)\
**Post date:** [March 13, 2023, 7:01pm UTC](https://forum.hello-robot.com/t/error-running-service-on-funmap/601/3 "2023-03-13T19:01:20Z")

</div>

Hello @nwagwu,

I apologize for the delayed response to this thread. Are you still facing this error?

I tried recreating this issue on a Stretch RE1 but was unsuccessful while simply using the stretch\_funmap mapping.launch file. However, this issue is indicative of a missing odom frame which is likely stemming from a failed rplidar launch or a missing laser\_scan\_matcher node. Please ensure that the `/laser_scan_matcher_node` and `/lidar_node` are present when you do a `rosnode list`.

If the above is in order, it would be helpful to check that the RPlidar is functioning as expected by executing the following command:

```bash
stretch_rplidar_jog.py --health

```

this should return a message that reads

```bash
[INFO] [rplidar]: Asking for health
('Good', 0)
[INFO] [rplidar]: Stoping motor

```

Please let me know how it goes.

Best,  
Chintan Desai

---

<div class="post-metadata">

**Author:** ![chintujaguar](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/chintujaguar/32/260_2.png) [@chintujaguar](https://forum.hello-robot.com/u/chintujaguar)\
**Post date:** [March 22, 2023, 5:26pm UTC](https://forum.hello-robot.com/t/error-running-service-on-funmap/601/4 "2023-03-22T17:26:41Z")

</div>

Hello @nwagwu,

Please let me know if this issue is resolved or if you would like further assistance with it.

Best,  
Chintan
