Unable to find package

asked 2018-11-14 00:21:07 -0500

Thornfist gravatar image

updated 2018-11-20 11:07:10 -0500

I have just finished building ROS-full (Melodic Melorian) on Raspian (debian:9.4:stretch). The basic components seem to work (e.g. roscore, rosnode, rostopic), but elements that require a GUI fail.

For example rqt produces:

terminate called after throwing an instance of 'pluginlib::ClassLoaderException'
  what():  Unable to find package: qt_gui
Aborted

And rviz produces:

qt5ct: using qt5ct plugin
[ INFO] [1542173819.312609894]: rviz version 1.13.1
[ INFO] [1542173819.312952236]: compiled against Qt version 5.7.1
[ INFO] [1542173819.313012288]: compiled against OGRE version 1.9.0 (Ghadamon)
terminate called after throwing an instance of 'pluginlib::ClassLoaderException'
  what():  Unable to find package: rviz
Aborted

The environment variables look OK.

env | grep ROS
ROS_ETC_DIR=/home/pi/ros_catkin_ws/install_isolated/etc/ros
ROS_ROOT=/home/pi/ros_catkin_ws/install_isolated/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/home/pi/ros_catkin_ws/install_isolated/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=melodic

In the directory pointed to by ROS_PACKAGE_PATH there are directories for qt_gui and rviz, both with package.xml files which I assume is what is being sought.

Running:

catkin_find qt_gui

produces:

/home/pi/ros_catkin_ws/install_isolated/share/qt_gui

Any ideas on how to solve this problem?

edit retag flag offensive close merge delete

Comments

did you try source your setup.bash file?

Hui Zhang gravatar image Hui Zhang  ( 2018-11-14 01:08:48 -0500 )edit

Yes. Mostly I use "./env.sh /bin/bash," but I tried sourcing setup.bash too.

Thornfist gravatar image Thornfist  ( 2018-11-14 20:31:04 -0500 )edit

I met this once before, there are two setup.bash files, one is /opt/ros/kinetic/setup.bash and one is devel/setup.bash, have you source both of them?

Hui Zhang gravatar image Hui Zhang  ( 2018-11-15 13:57:12 -0500 )edit

I tried your suggestion. but there is no change.

Thornfist gravatar image Thornfist  ( 2018-11-20 10:54:22 -0500 )edit