# 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:** 1

<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:** [June 26, 2020, 8:33am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/1 "2020-06-26T08:33:36Z")

</div>

Hi All,

I’m new to here and I had loaded the Ubuntu image onto Virtual box and tried to Visualise with Rviz,

command: roslaunch magni\_viz view\_robot.launch

and I got this error below: (launch file not found…)

is there a specific directory that I need to be in to launch magni\_viz? or please

advise,

Thank you,

Roger

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

---

<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:** [June 26, 2020, 10:54pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/2 "2020-06-26T22:54:04Z")

</div>

Hi @inmoov,

Try installing the magni packages manually, `sudo apt install ros-kinetic-magni-robot`

---

<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:** [June 26, 2020, 11:05pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/3 "2020-06-26T23:05:23Z")

</div>

Hi @rohbotics,

I tried that command, and this what came below:

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

Please advise, (am confused…) , thanks

---

<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:** [June 26, 2020, 11:28pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/4 "2020-06-26T23:28:24Z")

</div>

Can you run `sudo apt update` and then run the install command again?

Looks like you are on old versions of packages.

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:** [June 26, 2020, 11:38pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/5 "2020-06-26T23:38:48Z")

</div>

Hi @rohbotics

I have done the update as you said and ran the install command again, still same thing,

please advise, (see below, this is also the image I downloaded for Virtualbox on the UbiquityRobotic website, as I’m confused as to why it is not up to date…)…

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

---

<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:** [June 27, 2020, 6:01am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/6 "2020-06-27T06:01:39Z")

</div>

Hi @rohbotics

Are you able to assist me please?  
Am still lost here,

Thanks

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [June 27, 2020, 9:45am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/7 "2020-06-27T09:45:30Z")

</div>

Hey can you try running `roscd magni_viz; cd launch; ls` as a test to see if the launch files are actually there or not.

There have been some cases in the past where reinstalling or updating packages resulted in missing files for some reason, though it was usually python scripts.

If all else fails you can always make a new catkin workspace and clone the packages from github, that should give you the latest versions and make sure that nothing’s missing.

---

<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:** [June 27, 2020, 1:40pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/8 "2020-06-27T13:40:08Z")

</div>

Hi @MoffKalast,

Yes I tried roscd magni\_viz and see below :

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

So I ended up creating a catkin\_ws workspace and followed the instructions for RVIZ, (link: [Visualize with rviz - Magni Documentation](https://learn.ubiquityrobotics.com/rviz))

RVIZ fires up and when I clicked on the black spaces with the green arrow posing, Magni does not move?

Another question is, do I need to connect to the actual Robot Magni first for this to work?

Thanks

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [June 27, 2020, 7:14pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/9 "2020-06-27T19:14:28Z")

</div>

Yes, rviz merely visualises the data already present in the system. If a robot is connected then it’ll display the robot’s data, otherwise you need to launch the gazebo simulator which will provide data for a virtual one.

---

<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:** [June 28, 2020, 1:19pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/11 "2020-06-28T13:19:33Z")

</div>

Thank you @MoffKalast, I think I found this link [https://learn.ubiquityrobotics.com/simulation](https://learn.ubiquityrobotics.com/simulation) ,will give it a go and let you know if I run into any issues.

---

<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:** [June 28, 2020, 3:10pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/12 "2020-06-28T15:10:52Z")

</div>

Hi @MoffKalast,

I launched gazebo and it looks ok with the controller pad,

but when I click on RVIZ, it looks like this below (with errors)

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

any advise please on the errors?

Thanks

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [June 28, 2020, 10:14pm UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/13 "2020-06-28T22:14:23Z")

</div>

Hmm well it would appear that Rviz is not receiving the needed transform frames. That usually only happens while Gazebo is still initializing, so i’m not entirely sure what’s going on here.

Does the robot show up in gazebo fine and can drive around? I’d imagine there may be an issue with the robot model package.

---

<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 1, 2020, 4:16am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/14 "2020-07-01T04:16:10Z")

</div>

I think you still may be missing packages.

Please run these commands (needed because ROS changed gpg keys):

```auto
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

sudo apt-key del 421C365BD9FF1F717815A3895523BAEEB01FA116

```

And then install updates

```auto
sudo apt update
sudo apt upgrade
```

---

<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 1, 2020, 6:04am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/15 "2020-07-01T06:04:33Z")

</div>

Hi @rohbotics,

I tried your commands and now I get this message straight after the sudo apt upgrade command:

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

If I click ok on both options here, I get this:

continue without installing GRUB, yes or no

Please advise,

Thanks

---

<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 1, 2020, 6:18am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/16 "2020-07-01T06:18:08Z")

</div>

I think you can just select the first option.

---

<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 1, 2020, 6:20am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/17 "2020-07-01T06:20:16Z")

</div>

@rohbotics ok, I selected the first option , next screen is “continue without installing GRUB” do I click yes or no?

thanks

---

<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 1, 2020, 6:23am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/18 "2020-07-01T06:23:05Z")

</div>

@rohbotics , I have included screenshot as well,

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

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [July 1, 2020, 8:09am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/19 "2020-07-01T08:09:14Z")

</div>

Ok if you ask me there’s something seriously wrong with your vm image in general, it may be less time consuming to simply grab a [clean Ubuntu 16 image](https://www.linuxvmimages.com/images/ubuntu-1604/#introduction), [install ros kinetic](http://wiki.ros.org/kinetic/Installation/Ubuntu) and then the [ubiquity packages](https://packages.ubiquityrobotics.com/) than continuing to debug this.

---

<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 1, 2020, 8:16am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/20 "2020-07-01T08:16:35Z")

</div>

yea, but it is not my vm image, I downloaded from the UbiquityRobotic website in the download section, I didnt set this image up, so I thought this image would be ready to use after deploying into Virtualbox…, but it seems not the case which is frustrating…,

---

<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, 12:50am UTC](https://forum.ubiquityrobotics.com/t/roslaunch-magni-rviz/566/21 "2020-07-02T00:50:06Z")

</div>

Hi @rohbotics,

Any updates on this one?  
thanks

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