# Rviz2 - Qt - problem creating accessible interface

**URL:** <https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416>\
**Category:** ROS General\
**Tags:** ros2\
**Created:** [December 14, 2017, 7:37am UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416 "2017-12-14T07:37:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunava\_nag](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/arunava_nag/32/1027_2.png) [@arunava\_nag](https://discourse.openrobotics.org/u/arunava_nag)\
**Post date:** [December 14, 2017, 7:37am UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/1 "2017-12-14T07:37:53Z")

</div>

I have been exploring AA (Ardent apalone) release.  
**Rviz2 is not showing any interface.**

when i launch **rviz2** in the terminal:

```
[INFO] [rviz2]: Using FSAA from GL_ARB_multisample extension.
[INFO] [rviz2]: Texture: Warning: Loading 1 faces(PF_R5G6B5,8x8x1) with 3 hardware generated mipmaps from Image. Internal format is PF_R5G6B5,8x8x1.
Problem creating accessible interface for: rviz_rendering::RenderWindow(0x2463020) 
Make sure to deploy Qt with accessibility plugins.

```

Thats the error I am getting. My rviz2 interface looks like this:

**RVIZ2**

 ![image](https://us1.discourse-cdn.com/flex022/uploads/ros/original/2X/2/28a183457f9aeb53f25f05cf5dde5b3e49489348.png)

_I tried troubleshooting re-installing the qt libraries , qt creator._

Also, I was trying out the [dummy\_robot](https://github.com/ros2/ros2/wiki/dummy-robot-demo) demo and I have to do:

`ros2 run ros1_bridge dynamic_bridge --bridge-all-2to1-topics`

for terminal 2 section in wiki.  
It will not work for me as shown in the wiki:

`dynamic_bridge --bridge-all-2to1-topics`.

[_I tried building ros\_bridge1 separately using ament build and checked the CmakeLists as well the custom\_executable section._]  
Additionally in Rviz (ROS1) it throws error with the RobotModel visualizatin .

**Error In Rviz1** :

```
[WARN] [1513236342.717209109]: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource package://rrbot_description/model/meshes/hokuyo.dae in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreResourceGroupManager.cpp (line 756)
[ERROR] [1513236342.717426648]: Could not load model 'package://rrbot_description/model/meshes/hokuyo.dae' for link 'single_rrbot_hokuyo_link': OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource package://rrbot_description/model/meshes/hokuyo.dae in resource group Autodetect or any other group. in ResourceGroupManager::openResource at /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreResourceGroupManager.cpp (line 756)

```

**RVIZ1**

 ![image](https://us1.discourse-cdn.com/flex022/uploads/ros/original/2X/c/cc6dfa1a2d6624b355b40b95e514b1f4ea74f785.png)

Any hints or solution would be appreciated.

---

<div class="post-metadata">

**Author:** ![marguedas](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/marguedas/32/1633_2.png) [@marguedas](https://discourse.openrobotics.org/u/marguedas)\
**Post date:** [December 14, 2017, 12:32pm UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/2 "2017-12-14T12:32:57Z")

</div>

Hi @arunava_nag, thanks for the report.  
I couldn’t reproduce the original Qt issue but could reproduce the ROS1 error.

> [@arunava\_nag](#):
>
> Also, I was trying out the dummy\_robot demo and I have to do:
> 
> ros2 run ros1\_bridge dynamic\_bridge --bridge-all-2to1-topics
> 
> for terminal 2 section in wiki.
> 
> It will not work for me as shown in the wiki:
> 
> dynamic\_bridge --bridge-all-2to1-topics.

You’re totally right, The wiki has been updated to reflect the new executable location.

> [@arunava\_nag](#):
>
> Additionally in Rviz (ROS1) it throws error with the RobotModel visualizatin .

I could reproduce this indeed. Though these meshes are not necessary to visualize the robot and by setting the Fixed Frame to “world” I could display the robot model with all the links and associated meshes.

At some point I had some missing transforms as well. It looks like only the `/tf_static` topic had data but I didnt receive anything on `/tf` (on the ROS2 side so nothing was bridged on the ROS 1 side). Killing and restarting the `dummy_robot_bringup.py` launch file fixed it.

In RViz2 it worked out of the box by simply running the dummy\_robot\_bringup launchfile in a terminal and RViz2 in a second terminal.

Hope this helps,

---

<div class="post-metadata">

**Author:** ![greimela-si](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/greimela-si/32/1572_2.png) [@greimela-si](https://discourse.openrobotics.org/u/greimela-si)\
**Post date:** [December 14, 2017, 2:29pm UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/3 "2017-12-14T14:29:55Z")

</div>

Hi @arunava_nag,  
we experienced the same ros2/rviz error that you describe.  
In our case the problem was not with Qt, but with loading the default config using yaml-cpp.  
This results in the empty window.

Can you check if you have a yaml-cpp 0.5 package installed with apt?  
If yes, uninstall it and try again, ROS2 comes with its own yaml-cpp.

Are you using the binary build of ros2/rviz or are you building it from source?

---

<div class="post-metadata">

**Author:** ![arunava\_nag](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/arunava_nag/32/1027_2.png) [@arunava\_nag](https://discourse.openrobotics.org/u/arunava_nag)\
**Post date:** [December 19, 2017, 6:41am UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/4 "2017-12-19T06:41:14Z")

</div>

Hi,

@marguedas  
Apologies for delayed reply, I was caught up with some other work I am doing on ROS2. Coming to rviz, no I am not getting the rviz2 GUI except for that window. I tried launching ur5\_bringup launch as well from ros1 and tried to get the tf in ros2. I can see on the bridge that it is being sent however rviz2 gui is limited to that small box with no options.

@greimela-si  
These are the things I have installed now:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/ros/original/2X/8/8ae496f8df6c82ed73c7a8c1b0b598cee3a44073.png)

I am got the rviz2 that came along with the ros2 debian install. I did not build it from source.

---

<div class="post-metadata">

**Author:** ![greimela-si](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/greimela-si/32/1572_2.png) [@greimela-si](https://discourse.openrobotics.org/u/greimela-si)\
**Post date:** [December 19, 2017, 2:34pm UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/5 "2017-12-19T14:34:55Z")

</div>

Does it work if you uninstall `libyaml-cpp0.5v5` and `libyaml-cpp-dev` and then try again?

---

<div class="post-metadata">

**Author:** ![arunava\_nag](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/arunava_nag/32/1027_2.png) [@arunava\_nag](https://discourse.openrobotics.org/u/arunava_nag)\
**Post date:** [December 20, 2017, 1:11am UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/6 "2017-12-20T01:11:30Z")

</div>

No it doesn’t help, I am getting the same window as above. @greimela-si  
Any other pointers guys. I wanna visualize my messages in ros2.

---

<div class="post-metadata">

**Author:** ![greimela-si](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/greimela-si/32/1572_2.png) [@greimela-si](https://discourse.openrobotics.org/u/greimela-si)\
**Post date:** [December 20, 2017, 9:03am UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/7 "2017-12-20T09:03:07Z")

</div>

It looks like your problem is in the process of getting fixed here:

> <https://github.com/ros2/rviz/pull/160>
>
> EDIT: Reduced the scope of the PR. Now it only fixes using system-wise installed… yaml-cpp's \`INCLUDE\_DIR\` which resulted in passing \`-isystem /usr/include\` to compiler.
> 
> Below is the comment for original scope of this PR.
> 
> \---
> 
> This fixes issues mentioned in #152:
> \* Passing \`-isystem /usr/include\` to compiler (resulting in \`fatal error: stdlib.h: No such file or directory\`) if \`yaml-cpp\` is installed system-wise
> \* Not using system-wise installed \`yaml-cpp\` (thus requiring to additionally download and compile)
> \* Checking for variadic macro compiler flag (\`unrecognized command line option ‘-Wno-gnu-zero-variadic-macro-arguments’\`)
> 
> I can split this PR into two (yaml-cpp and variadic macros) if that's the preferred workflow.

In the meantime, could you show us the result of the command?  
`ldd <path_to_ros2>/bin/rviz2`

It seems rviz is still trying to use a system yaml-cpp.

---

<div class="post-metadata">

**Author:** ![paulrusu](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@paulrusu](https://discourse.openrobotics.org/u/paulrusu)\
**Post date:** [January 24, 2018, 5:05pm UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/8 "2018-01-24T17:05:39Z")

</div>

Since I am having virtually the same problem (without the Qt notification), I would like to take up the answering from here. I installed ROS2 from source and have it in ~/ros2\_ws. I have uploaded screenshots of my problem setting.

 ![RVIZ_problem](https://us1.discourse-cdn.com/flex022/uploads/ros/original/2X/4/4826a9f38c60eaa1485b76bc954c157a4148f1b1.png) ![Screenshot_rviz2](https://us1.discourse-cdn.com/flex022/uploads/ros/original/2X/4/42cc8b1d3775ef9b0911a406501d12e28c8fc518.png)There is no ~/ros2\_ws/bin/rviz2, only a ~/ros2\_ws/build/rviz2 which is a directory. What do you mean by \<path\_to\_ros2\> then? Do you have any other ideas why this happens?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![arunava\_nag](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/arunava_nag/32/1027_2.png) [@arunava\_nag](https://discourse.openrobotics.org/u/arunava_nag)\
**Post date:** [January 26, 2018, 9:24am UTC](https://discourse.openrobotics.org/t/rviz2-qt-problem-creating-accessible-interface/3416/9 "2018-01-26T09:24:19Z")

</div>

Hello,

Apologies its been a while, just caught up with multiple works. Please find attached is the result:[result.pdf](https://us1.discourse-cdn.com/flex022/uploads/ros/original/2X/4/485518bfdf73e62992f42fee0d747b4905293fea.pdf) (49.6 KB)
