Robotics StackExchange | Archived questions

[melodic] catkin_create_qt_pkg: command not found

Hey guys,

When I attend to programming a QT GUI application on ROS, found it unable to use catkincreateqt_pkg . Please help me if

I failed to execute below commands,

sudo apt-get install ros-melodic-qt-ros
Reading package lists... Done
Building dependency tree       
Reading state information... Done
`E: Unable to locate package ros-melodic-qt-ros`

How can I solve the problem or any other way to create GUI application on ROS with QT

Asked by odoncn on 2019-01-11 04:38:48 UTC

Comments

Did you try using qt_create, described here?

Asked by Wilco Bonestroo on 2019-01-11 09:43:56 UTC

Answers

Hi ,

I don't have a direct answer to your question, but merely confirming that you are not on your own. I still have some of my archives from kinetic, under which I was able to compile Qt5 (QML) based apps. Even though at the time I remember spending a lot of time to properly configure the cmake.txt file to work properly with all the Qt5 modules that I needed.

There are actually 2 issues related with melodic and qt5: - qt-build is not present in the repo. - catkin_create_qt_pkg is also not present in the repo.

The ROS wiki states:

In the future we may move this to a rosdistro independant python package.

Can only assume that the python implementation is not yet documented...

I will dedicate my free time this week to sort it out and should be able hopefully to provide a ROS/Qt5 template. My guess at this stage is that the qt-build is not strictly necessary , and can be replaced by qt-gui.

Stay tuned !

Asked by plc66 on 2019-01-28 19:51:41 UTC

Comments

I changed to Kinetic and it works

Asked by odoncn on 2019-01-30 01:04:22 UTC

I got my nodes to compile under melodic using qt-gui-cpp instead of qt-build in the findpackage line of cmake.txt. I will edit my answer above and give you the full template once I have a bit more time. Cheers, PLC

Asked by plc66 on 2019-01-30 22:05:20 UTC

Hi, did you manage to solve the issue? I just moved to Ubuntu 18 and can't compile my QT packages.

Asked by LeonhardEuler337 on 2019-04-15 05:24:08 UTC

@plc66, would be really nice if you could share your template since there is still no example out there...

Asked by prex on 2019-11-07 03:56:50 UTC

@prex See my answer here, maybe it will help you

Asked by LeonhardEuler337 on 2019-11-07 04:09:50 UTC

I have create this template for ROS Melodic and Qt. Hope that will help. https://github.com/alexspirou/ROS_Melodic_Qt_GUI_Template

Asked by alexspi13 on 2021-03-22 14:56:40 UTC

Comments