ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Very stumped on Rviz and QT Problem

asked 2013-07-08 10:30:45 -0500

aespielberg gravatar image

updated 2014-01-28 17:17:10 -0500

ngrennan gravatar image

Hi all,

I'm very stumped regarding our migrating of a plugin from electric up to groovy. But, the problem seems to not be within our code, but within the ROS code. Either that, or we're no longer including something correctly.

There are two errors: First, in our init.cpp, we attempt to include rviz/plugin/type_registry.h , and there's: Fatal Error: rviz/plugin/type_registry.h: No such file or directory does this file no longer exist? Has it been replaced by something?

Second, in /opt/ros/groovy/include/rviz/properties/property.h there's: fatal error: QObject: No such file or directory.

But I believe QT is installed. Are we missing a dependency?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-07-08 14:27:17 -0500

dgossow gravatar image

updated 2013-07-09 17:21:56 -0500

RViz has been ported to Qt in ROS Fuerte, so you will need to port your plugins as well. There are two issues here:

edit flag offensive delete link more

Comments

Hi dgossow,

Thanks, I will look up the rviz plugin tuotrials to refactor our code. I'm still confused about the rviz problem though. I already have the newest version, but I'm still getting the QObject import problem. Do you have any idea what else could cause that problem?

aespielberg gravatar image aespielberg  ( 2013-07-09 04:04:01 -0500 )edit

Could you provide a link to your package.xml / CMakeLists.txt? Apart from that, it seems like RViz doesn't export it's dependencies correctly. As a workaround, you can put a find_package(Qt4 REQUIRED) etc. into your own CMakeLists.txt. I will see how to fix this in RViz.

dgossow gravatar image dgossow  ( 2013-07-09 05:27:18 -0500 )edit

EDIT: In any case, you will need to explicitly find_package Qt, since you need to run the moc generator on your plugin classes.

dgossow gravatar image dgossow  ( 2013-07-09 17:19:16 -0500 )edit

Question Tools

Stats

Asked: 2013-07-08 10:30:45 -0500

Seen: 1,775 times

Last updated: Jul 09 '13