No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.

myviz package from custom_qt5_rviz2 repo

myviz

Package Summary

Tags No category tags.
Version 0.0.1
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/martibolet/custom_qt5_rviz2.git
VCS Type git
VCS Version main
Last Updated 2021-04-28
Dev Status UNMAINTAINED
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

Custom Qt5 with Rviz2

Additional Links

No additional links.

Maintainers

  • MartiBolet

Authors

No additional authors.

Custom_Qt5_Rviz2

UPDATE: The proper way of doing this is done in this repository from @mjeronimo.

In this repository there is an example of how to implement the RenderPanel of rviz2. This is a workaround and it’s not the best solution but it’s the only way I found that work. The two repositories are for distribution ros2 foxy. For this to work, I made a small changes to the rviz source code, these can be found on my fork. This example tries to be a ROS2 version of this tutorial.

Screenshot of MyViz working

Compile & run

To compile the project:

cd $HOME
# Download
mkdir myviz_ws && cd myviz_ws
git clone https://github.com/MartiBolet/rviz
git clone https://github.com/MartiBolet/Custom_Qt5_Rviz2
cd rviz
git checkout -b develop_integration_with_qt origin/develop_integration_with_qt
# Build
cd $HOME/myviz_ws
colcon build
# Install
source ./install/setup.bash

TIP when testing: After compiling rviz for the first time, you can add COLCON_IGNORE files inside the individual rviz packages. This will allow you to not recompile all when you make a small change.

Run:

ros2 run myviz myviz

Error libGL error: failed to create drawable

If there is an error like libGL error: failed to create drawable and the RenderPanel doesn’t show anything, try to:

export LIBGL_ALWAYS_SOFTWARE=1

From this answer and this tutorial

Contributors:

Co-workers: @albertarla, @iggyrrieta. All contributions are welcome and open to discussion.

License

Apache License 2.0

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged myviz at Robotics Stack Exchange

No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.