Ask Your Question
0

[ROS Warning] Unable to locate package velodyne_test build file

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

RayROS gravatar image

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

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 -0600

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 imageRayROS ( 2019-12-16 12:26:01 -0600 )edit

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

stevemacenski gravatar imagestevemacenski ( 2019-12-16 12:38:36 -0600 )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 imageRayROS ( 2019-12-17 06:13:11 -0600 )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 imageRayROS ( 2019-12-17 06:57:41 -0600 )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 imageAbhishekpg ( 2019-12-19 09:41:00 -0600 )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 imageRayROS ( 2019-12-19 09:58:41 -0600 )edit

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

RayROS gravatar imageRayROS ( 2019-12-19 10:05:47 -0600 )edit

is your velodyne_simulator package under catkin_ws/src folder ??

Abhishekpg gravatar imageAbhishekpg ( 2019-12-19 10:35:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 30 times

Last updated: Dec 16 '19