# Changing follow\_me demo to another fidcuial

**URL:** <https://forum.ubiquityrobotics.com/t/changing-follow-me-demo-to-another-fidcuial/861>\
**Category:** Uncategorized\
**Created:** [August 2, 2021, 11:25am UTC](https://forum.ubiquityrobotics.com/t/changing-follow-me-demo-to-another-fidcuial/861 "2021-08-02T11:25:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godzilla](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/g/8e8cbc/32.png) [@Godzilla](https://forum.ubiquityrobotics.com/u/Godzilla)\
**Post date:** [August 2, 2021, 11:25am UTC](https://forum.ubiquityrobotics.com/t/changing-follow-me-demo-to-another-fidcuial/861/1 "2021-08-02T11:25:16Z")

</div>

Hi,  
I’m a beginner and wanted to do the follow\_me demo. It works perfectly fine, but if i were to do the same functionality using a different Fiducial ID it does not work.  
I changed line 68 of follow.py to:

```auto
self.target_fiducial = rospy.get_param("~target_fiducial", "fid102")

```

the console shows it detected 102, but it still follows 49. What else needs to be changed to make magni follow any of the Fiducial ID i define in the code?  
Thank you.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [August 3, 2021, 7:08am UTC](https://forum.ubiquityrobotics.com/t/changing-follow-me-demo-to-another-fidcuial/861/2 "2021-08-03T07:08:57Z")

</div>

Are you using a launch file? A launch file OR a command line parameter when you start follow.py may be over-riding your setting. The line you show is going to ‘default’ to fid102 but if there is a define ros parameter then it will use that.

As verification around line 106 area print out self.target\_fiducial just before it starts the main loop of the program.

---

<div class="post-metadata">

**Author:** ![Godzilla](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/g/8e8cbc/32.png) [@Godzilla](https://forum.ubiquityrobotics.com/u/Godzilla)\
**Post date:** [August 5, 2021, 5:10am UTC](https://forum.ubiquityrobotics.com/t/changing-follow-me-demo-to-another-fidcuial/861/3 "2021-08-05T05:10:23Z")

</div>

My bad i did not change the launch file parameter.  
Thank you.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [August 6, 2021, 7:35am UTC](https://forum.ubiquityrobotics.com/t/changing-follow-me-demo-to-another-fidcuial/861/4 "2021-08-06T07:35:34Z")

</div>

ok, great. glad this is resolved!
