Open aaryswastaken opened 4 years ago
ROS packages are usually installed as ros-$DISTRO-$PACKAGE, like: ros-kinetic-sensor-msgs or ros-melodic-sensor-msgs
HTH, 'dillo
On Sun, Dec 1, 2019 at 9:35 AM SAHLER Vincent notifications@github.com wrote:
Hi, I bought a neato xv-11 last year and I now have time to interrest me on. So I tried some python scripts in order to make preliminary tests. And now I decided to implement it in ROS and on catkin_make I have troubles in the cmake with the ros-sensor-message : `#### Running command: "make cmake_check_build_system" in "/home/vsahler/catkin_ws/build"
-- Using CATKIN_DEVEL_PREFIX: /home/vsahler/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/vsahler/catkin_ws/devel -- This workspace overlays: /home/vsahler/catkin_ws/devel -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/vsahler/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- nosetests not found, Python tests can not be run (try installing package 'python-nose') -- catkin 0.7.8 -- BUILD_SHARED_LIBS is on --
~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - xv_11_laser_driver --~~~~~~~~~~~~~ -- +++ processing catkin package: 'xv_11_laser_driver' -- ==> add_subdirectory(xv_11_laser_driver) -- Could NOT find sensor_msgs (missing: sensor_msgs_DIR) -- Could not find the required component 'sensor_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:82 (find_package): Could not find a package configuration file provided by "sensor_msgs" with any of the following names:sensor_msgsConfig.cmake sensor_msgs-config.cmake
Add the installation prefix of "sensor_msgs" to CMAKE_PREFIX_PATH or set "sensor_msgs_DIR" to a directory containing one of the above files. If "sensor_msgs" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): xv_11_laser_driver/CMakeLists.txt:7 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/vsahler/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/vsahler/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:292: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed`
So I tried an sudo apt install ros-sensor-msgs and it didn't work.
I had a lot of troubles while Installing ROS because I'm on mint 19. I had installed ROS on a ubuntu last year and I had no troubles while playing with this type of message
Hope you can help me
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rohbotics/xv_11_laser_driver/issues/4?email_source=notifications&email_token=AAAHVC23TV4TAP25WJJRT7DQWPYXPA5CNFSM4JTMYYK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H5C3FLQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHVC6WBL4HMFCOZHKVYU3QWPYXPANCNFSM4JTMYYKQ .
You say you had "a lot of troubles", perhaps ROS isn't really installed? Did you complete the ROS installation? http://wiki.ros.org/melodic/Installation/Ubuntu
The TL;DR version is:
sudo apt install -y ros-melodic-desktop-full
sudo sh -c "rosdep init"
rosdep update
source /opt/ros/melodic/setup.bash
sudo apt install -y python-rosinstall python-rosinstall-generator python-wstool build-essential
Then for this source
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws/
catkin_make
source ~/catkin_ws/devel/setup.bash
rospack profile
git clone https://github.com/chrisl8/xv_11_laser_driver.git
cd ~/catkin_ws
catkin_make
source ~/catkin_ws/devel/setup.bash
rospack profile
Sorry to just repeat the basic instructions, but I thought it might help.
I think I'm gonna give up ...
The problem was that when I followed the steps, and there was "iterative unsolvable dependencies", when I run
sudo apt install ros-kinetic-desktop-full
I had 3 unmet dependencies. I think I have tried everything and nothing worked so I don't remember what I did but I managed to install the package called ros-desktop-full
which worked correctly (for the fast testable things like rviz, roscore and some test commands.
Now when I tried this node, the catkin compilation gets some troubles about the sensor-msgs
package, so with a apt-cache, I searched to package and the only thing I found was ros-sensor-msgs
, with no ros package specified (like when I installated the destop full) and the problem is the same ...
Maybe reinstalling the os for ubuntu will fix the problem but if I can't do it, it can be better ...
Hmmmm...I also did an apt-cache search and got similar results, but then I also looked at what packages I already have installed and got this:
(base) armadilo@yutyrannus:~$ dpkg --list|grep sensor-msgs ii ros-melodic-sensor-msgs 1.12.7-0bionic.20190320.161153 amd64 This package defines messages for commonly used sensors, including cameras and scanning laser rangefinders. ii ros-melodic-tf2-sensor-msgs 0.6.5-0bionic.20190808.195434 amd64 Small lib to transform sensor_msgs with tf. (base) armadilo@yutyrannus:~$
So it looks like there are multiple packages you need to install. Also be aware that running:
source /opt/ros/melodic/setup.bash
and
source ~/catkin_ws/devel/setup.bash
may yield different enough environments that the build might break(although it really shouldn't..).
If you're encountering multiple unresolvable dependencies, it might be better to do a clean re-install of the whole OS and then layer a *-desktop-full install overtop right after the OS install finishes.
HTH,
'dillo
On Mon, Dec 2, 2019 at 9:35 AM SAHLER Vincent notifications@github.com wrote:
I think I'm gonna give up ... The problem was that when I followed the steps, and there was "iterative unsolvable dependencies", when I run sudo apt install ros-kinetic-desktop-full I had 3 unmet dependencies. I think I have tried everything and nothing worked so I don't remember what I did but I managed to install the package called ros-desktop-full which worked correctly (for the fast testable things like rviz, roscore and some test commands.
Now when I tried this node, the catkin compilation gets some troubles about the sensor-msgs package, so with a apt-cache, I searched to package and the only thing I found was ros-sensor-msgs, with no ros package specified (like when I installated the destop full) and the problem is the same ...
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rohbotics/xv_11_laser_driver/issues/4?email_source=notifications&email_token=AAAHVCYVYTSEGDFBTAMNWHTQWVBNHA5CNFSM4JTMYYK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFUIRIA#issuecomment-560498848, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHVC7HHBNKBRQXXAMHATDQWVBNHANCNFSM4JTMYYKQ .
Hi, I bought a neato xv-11 last year and I now have time to interrest me on. So I tried some python scripts in order to make preliminary tests. And now I decided to implement it in ROS and on catkin_make I have troubles in the cmake with the ros-sensor-message :
So I tried an
sudo apt install ros-sensor-msgs
and it didn't work.I had a lot of troubles while Installing ROS because I'm on mint 19. I had installed ROS on a ubuntu last year and I had no troubles while playing with this type of message
Hope you can help me