# Roslaunch Magni Rviz

**URL:** <https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566>\
**Category:** Uncategorized\
**Created:** [June 26, 2020, 8:33am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566 "2020-06-26T08:33:36Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [July 2, 2020, 3:23am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/22 "2020-07-02T03:23:43Z")

</div>

Sorry about the frustration, it probably would have been easier to just install ROS on a base Ubuntu VM…  
I will see what I can do about updating the image.

You need to hit the space bar to select the first option, then TAB and enter to click the OK button. After that, you shouldn’t get the prompt to continue without installing grub.

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 2, 2020, 6:40am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/23 "2020-07-02T06:40:35Z")

</div>

@rohbotics, ok, in that case, does it have to be virtualbox or can I run a use a fresh ubuntu image in vmware player pro?

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [July 2, 2020, 4:53pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/24 "2020-07-02T16:53:32Z")

</div>

I have only used virtual box, but I’m sure VMware player would work too.

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 3, 2020, 4:46am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/25 "2020-07-03T04:46:45Z")

</div>

@rohbotics , can you please upload a working virtual box image??  
because is like I have a magni with out the softwares now…, I’m not an expert with ROS and also Iinux…I’m just novel and I’m using alot of time…trying to figure out how to run magni in simulation and even Inhave issues ssh to it…, I thought the software/image should be out of the box , ready to go!!! its frustrating that I have to start from scratch myself, spent the whole night starting from scratch and still going no where,

All I can do now is connect the app to the Robot, and the other issue I found is when I keep pressing forward and it goes but then it hits a wall or obstacle …it just hits it…, no warning or self stop, …, why is that? see below, it crashed into an obstacle …,

 ![IMG_9826](https://frm.ubiquityrobotics.com/uploads/default/original/1X/aa57d8cbf7ecfaae94443ecf17b99d265f5c5d91.jpeg)

---

<div class="post-metadata">

**Author:** ![johnnyv](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@johnnyv](https://forum.ubiquityrobotics.com/u/johnnyv)\
**Post date:** [July 12, 2020, 12:25pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/26 "2020-07-12T12:25:55Z")

</div>

hey man, sounds like your having a rough time.  
From my experience the robot won’t auto-stop if you are manually driving it.

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 12, 2020, 12:27pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/27 "2020-07-12T12:27:33Z")

</div>

yea, thanks for message…, yea very rough time…, trying to get fruducial working at the moment but still no luck…, it thought it would be easy…but so hard…, so how does the robot auto stop then when it detects obstacles infront of it? thanks

---

<div class="post-metadata">

**Author:** ![johnnyv](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@johnnyv](https://forum.ubiquityrobotics.com/u/johnnyv)\
**Post date:** [July 12, 2020, 12:34pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/28 "2020-07-12T12:34:49Z")

</div>

I’m not sure how all the nodes are connected up, but the `simple_navigation.launch` demo seems to use the sonars to detect if there is an obstacle in front, and then while the robot is navigating it will stop.  
You will need the sonars to be working, try running  
`rostopic echo /sonars`  
If you have the `simple_navigation.launch` running you should see a stream of data there. But if nothing is running then you have a problem with your sonars.

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 12, 2020, 1:01pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/29 "2020-07-12T13:01:08Z")

</div>

so by running simple\_navigation.launch, the robot will just move around by itself ? and navigate by itself autonomously? is that what you mean,

---

<div class="post-metadata">

**Author:** ![johnnyv](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@johnnyv](https://forum.ubiquityrobotics.com/u/johnnyv)\
**Post date:** [July 12, 2020, 1:11pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/30 "2020-07-12T13:11:48Z")

</div>

not quite.  
Check out the [https://learn.ubiquityrobotics.com/fiducials](https://learn.ubiquityrobotics.com/fiducials), appropriately titled “Fiducials enable you to set waypoints and goals”  
Basically, if you follow that setup, then you will be able to set waypoints for the robot, and it will then “autonomously” drive itself to the waypoint.  
this means it will go in a straight line towards the location and stop if it detects any obstacles. It won’t navigate around obstacles however .

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 12, 2020, 2:09pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/31 "2020-07-12T14:09:20Z")

</div>

Í put these two commands in Ubuntu:

export ROS\_MASTER\_URI=http:// **robot IP address** :11311  
export ROS\_IP=http:// **workstation IP address**

is workstation IP address my actual laptop IP address or the VM’s IP address?

thank you

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 13, 2020, 2:16am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/32 "2020-07-13T02:16:50Z")

</div>

Hi @rohbotics @davecrawley

Now when I run the roslaunch magni\_demos fiducial\_follow.launch

I get the below errors, …

 ![image](https://frm.ubiquityrobotics.com/uploads/default/original/1X/e1d1f305b83494b90fba5a38f75e7f5f8f056693.png)

I can ping the Robot (cross.local at IP address 10.0.0.8 ) …

But follow.py is not found, I think that’s what it is saying,

Please help

---

<div class="post-metadata">

**Author:** ![johnnyv](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@johnnyv](https://forum.ubiquityrobotics.com/u/johnnyv)\
**Post date:** [July 13, 2020, 12:06pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/33 "2020-07-13T12:06:05Z")

</div>

@inmoov I rekon you’ve got problems. My gut says you might have modified the fiducial\_follow.launch file. [https://github.com/UbiquityRobotics/magni\_robot/blob/indigo-devel/magni\_demos/launch/fiducial\_follow.launch](https://github.com/UbiquityRobotics/magni_robot/blob/indigo-devel/magni_demos/launch/fiducial_follow.launch)  
See the bottom where the fiducial follow node is described, they only have it as `type="follow.py"` not `type=fiducial_follow/follow.py`, so you could make sure that your code looks like theirs. Although if that doesn’t fix it I don’t know whats going on then.

Regarding the ROS\_IP, I imagine its the IP of the vm, but thats often also the IP of the laptop your running it off, so they could coincide.

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 13, 2020, 2:35pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/34 "2020-07-13T14:35:12Z")

</div>

@johnnyv , ok then how do you explain this then? I tried to set way points using the Robot Commander app (I can control it manually ) but when I voice command “set waypoint Alpha” for instance, I get this screen below, shouldnt this function work right out of the box? I’m not running from my vm or anything, just the rasperri PI it came and I have not modified anything inside…, I just plug and play but still I couldnt get it to work…, please explain thanks

 ![image](https://frm.ubiquityrobotics.com/uploads/default/original/1X/0a476ac7d9b82ade66959b1f398d29d67afac6e7.jpeg)

and what I have done wrong here?

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 13, 2020, 3:11pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/35 "2020-07-13T15:11:11Z")

</div>

@johnnyv also , I have git clone [https://github.com/UbiquityRobotics/magni\_robot.git](https://github.com/UbiquityRobotics/magni_robot.git) to my catkin\_ws/src workspace and still when I done a search on “follow.py” …I do not get any results, I assume this python file needs to be run right? but where is it…, but best if you could explain to me why Robot commander gave me that error when I tried to voice command set way point…, (I would be happy enough if I can get it working just in the app…)

---

<div class="post-metadata">

**Author:** ![johnnyv](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/j/b4bc9f/32.png) [@johnnyv](https://forum.ubiquityrobotics.com/u/johnnyv)\
**Post date:** [July 13, 2020, 3:24pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/36 "2020-07-13T15:24:59Z")

</div>

hey man, you need to stop moving around from one problem to another. I rekon you should try to slow down and make sure you’ve resolved one problem before moving to the next.

So, the Robot Commander isn’t working because your fiducial slam doesn’t work. Since the fiducial slam isn’t working, robot commander doesn’t get a position when it asks for one, and so it says “The robots position could not be determined”

There seem to be alot of gotcha’s for new ppl in ros (I know, I’m starting too), but here’s a tip.

1. Make sure you have run `source ~/catkin_ws/devel/setup.bash` or better yet, put it into your `.bashrc` as everything hinges on having run that (and `catkin_make` ) and if you don’t have it setup right you’ll be in a world of pain.  
2, Try to figure out which “fiducal\_slam” you are using. If you setup is correct you should be able to go `roscd fiducial_slam` and it will take you to the directory containing fiducial slam. There should be a subfolder called `launch` and in there should be `fiducial_slam.launch` . that’s the file you want to check out, and make sure it looks like what the git repo looks like.

Good luck, and remember, the power is yours!  
 ![](https://frm.ubiquityrobotics.com/uploads/default/original/1X/69311da688e7307b5c02bcd104ecf1c6e5a47643.gif "Captain Planet Film GIF - Find & Share on GIPHY")

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 14, 2020, 1:06am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/37 "2020-07-14T01:06:15Z")

</div>

ok @johnnyv, that makes sense but I’m kind of dumb so please bare with me,

for the tips of your two steps,

where do I check these on , on my VM? (in my laptop) or ssh into the Magni and check?

Thanks, I wish I could fly like him

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [July 14, 2020, 4:37am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/38 "2020-07-14T04:37:10Z")

</div>

Hi @inmoov,

It seems like you are running a lot of these launch files in the VM, but most of them need to be run on the Pi via SSH.

So for fiducial\_follow, you need to run `roslaunch magni_demos fiducial_follow.launch`after SSH-ing into the Magni.

The only things you will really need to run in the VM itself are visualization tools like RViz or rqt. Some things are convenient to run on the VM, such as rostopic echo and teleop\_twist\_keyboard, but can easily be run on the Pi as well. Most of the launch files for running actual code need to be run on the magni and not the VM because they need access to the hardware, or the software they need is not installed in the VM, but is installed on the Pi.

Hope that helps you make some progress.

Good luck on your project, David told me about it, and it sounds awesome man!

Please keep us updated and share pictures of your progress.

Rohan

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 14, 2020, 5:18am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/39 "2020-07-14T05:18:58Z")

</div>

Hi @rohbotics,

ok, well I got robot commander app installed on my android, I have not modified anything in the Pi, I got the app connected to Magni and can control it via voice and also the arrow buttons (very impressive), but when I voice command “set waypoint A” for instance, I get this message coming back on the phone, can you please help? not sure what I done wrong here, I had followed instructions on your website and havent changed anything in the Pi (besides just sudo apt update and upgrade and also connetcted it to my home wifi network… and that’s it…)

![image](https://frm.ubiquityrobotics.com/uploads/default/original/1X/9c2a3fc587236056a83ab669d74f54a59ea7f8cf.jpeg)

I’m just thinking what i had done wrong? and also what prerequisites I have missed to make this function work ? I’m not sure if this is also related to roslaunch magni\_demos fiducial\_follow running on my the Pi , not working aswell, it sees the 49 marker I think and in the logs, 1 marker detected but it keeps spinning around and around…,

Yes, if I can get the base fiducial and waypoint working, definitely going to put my existing robot on top and will share it for sure,

I look forward to your reply,

Thanks  
Roger

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [July 14, 2020, 5:35am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/40 "2020-07-14T05:35:33Z")

</div>

Hi @inmoov,

In order to run waypoint navigation, you will first have to set up fiducial navigation, you can find the info for that here. [https://learn.ubiquityrobotics.com/fiducials](https://learn.ubiquityrobotics.com/fiducials)

Rohan

---

<div class="post-metadata">

**Author:** ![inmoov](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/inmoov/32/473_2.png) [@inmoov](https://forum.ubiquityrobotics.com/u/inmoov)\
**Post date:** [July 14, 2020, 6:01am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/41 "2020-07-14T06:01:09Z")

</div>

ok @rohbotics, so there are prerequsites to get waypoint working ,

How about the roslaunch magni\_demos fiducial\_follow.launch , do I need to follow and do the steps in this link [https://learn.ubiquityrobotics.com/fiducials](https://learn.ubiquityrobotics.com/fiducials) as well??

[Previous page](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566.md?page=1)

[Next page](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566.md?page=3)
