[ROS Warning] Unable to locate package velodyne_test build file
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.
Asked by RayROS on 2019-12-16 12:23:10 UTC
Answers
Did you source /opt/ros/melodic/setup.bash
?
Asked by stevemacenski on 2019-12-16 13:19:06 UTC
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?
Asked by RayROS on 2019-12-16 13:26:01 UTC
You have to source that for every terminal you use in every session
Asked by stevemacenski on 2019-12-16 13:38:36 UTC
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.
Asked by RayROS on 2019-12-17 07:13:11 UTC
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
Asked by RayROS on 2019-12-17 07:57:41 UTC
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
Asked by Abhishekpg on 2019-12-19 10:41:00 UTC
@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?
Asked by RayROS on 2019-12-19 10:58:41 UTC
Could the executable be inside the devel
folder? Here is a print-screen if that could be helpful
Asked by RayROS on 2019-12-19 11:05:47 UTC
is your velodyne_simulator package under catkin_ws/src folder ??
Asked by Abhishekpg on 2019-12-19 11:35:26 UTC
yes it is as is possible to see. I can't find the executable and that is why Qt
is not building. Where could I find it?
Asked by RayROS on 2019-12-19 11:59:36 UTC
Try
sudo apt-get install ros-melodic-velodyne
Then combile
Asked by Abhishekpg on 2019-12-19 12:31:43 UTC
Comments