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

[ROS Warning] Unable to locate package velodyne_test build file

asked 2019-12-16 11:23:10 -0500

RayROS gravatar image

updated 2019-12-16 11:32:45 -0500

gvdhoorn gravatar image

I recently reinstalled ROS-Melodic on my Ubuntu 18.04. I am using Qt5 with the ROS plugins I downloaded from here.

I was trying out a sample project from here as I will have to practice using a Velodyne Puck 16 and thought that this could be a good training. The project is successfully parsed but when I compile it I receive the following output:

[ROS Warning] Unable to locate package velodyne_test build file: /home/emanuele/catkin_ws/build/velodyne_test/velodyne_test.cbp.
[ROS Debug] Sourced workspace: /home/emanuele/catkin_ws/devel/setup.bash.
[ROS Debug] Sourced workspace: /home/emanuele/catkin_ws/devel/setup.bash.
[ROS Debug] Sourced workspace: /home/emanuele/catkin_ws/devel/setup.bash.

The output of roscd is the following:

emanuele@pc:/opt/ros/melodic$

Thank you very much for pointing in the right direction.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-12-16 12:19:06 -0500

Did you source /opt/ros/melodic/setup.bash?

edit flag offensive delete link more

Comments

Yes, but I remember that before reinstalling it and running roscd the result was I believe /home/emanuele/catkin_ws/devel. Is it because I sourced it differently? How can I make the compiler find it then? Do I have to reinstall ROS again?

RayROS gravatar image RayROS  ( 2019-12-16 12:26:01 -0500 )edit

You have to source that for every terminal you use in every session

stevemacenski gravatar image stevemacenski  ( 2019-12-16 12:38:36 -0500 )edit

As of now what I do is: emanuele@pc:~/catkin_ws$ catkin_make and it works and compile correctly on terminal. But when I try to build in Qt5 it gives me the messages I posted on the question. I am not sure of what I should do to have Qt5 compiling and building it.

RayROS gravatar image RayROS  ( 2019-12-17 06:13:11 -0500 )edit

I mean if I try to do this emanuele@pc:/opt/ros/melodic$ catkin_make the terminal says:

Base path: /opt/ros/melodic

The specified source space "/opt/ros/melodic/src" does not exist

RayROS gravatar image RayROS  ( 2019-12-17 06:57:41 -0500 )edit

try opening .bashrc by gedit ~/.bashrc then add the below line at the bottom of the file opened source "/home/emanuele/catkin_ws/devel/setup.bash" then compile from catkin_ws

Abhishekpg gravatar image Abhishekpg  ( 2019-12-19 09:41:00 -0500 )edit

@Abhishekpg111, thank you for your comment. It partially worked! Now it compiles via terminal but I still Qt is not compiling. The problem that is left is that Qt it seems can't find the executable. Where can I find it? Is this and this useful to better understand?

RayROS gravatar image RayROS  ( 2019-12-19 09:58:41 -0500 )edit

Could the executable be inside the devel folder? Here is a print-screen if that could be helpful

RayROS gravatar image RayROS  ( 2019-12-19 10:05:47 -0500 )edit

is your velodyne_simulator package under catkin_ws/src folder ??

Abhishekpg gravatar image Abhishekpg  ( 2019-12-19 10:35:26 -0500 )edit

Question Tools

Stats

Asked: 2019-12-16 11:23:10 -0500

Seen: 499 times

Last updated: Dec 16 '19