Hello,
I have some problem. I made a custom package on ros kinetic (ubuntu 16.04) previously and is working fine. Recently I am trying to use it on a Raspberry Pi3 (Raspbian).
I have successfully installed ROS following official tutorial so actually I have a ros_catkin_ws directory with necessary sources compiled. I also manged to install a release package (p2os_driver) from github using ros-install, wstool, catkin_make_isolated.
So now I have my catkin package test (which contains launch and src directories with packgae.xml and CMake). On Ubuntu this folder was located in catkin_ws and all I had to do was catkin_make, source catkin_ws/devel/setup.bash.
So my question is, how can I import this package into my new installation on Raspbian ? I tried several things, copying it in ros_catkin_ws/src then catkin_make_isolated this specific package, tried to make an overlay catkin workspace (without amstering it at all so maybe I did it wrong) so I can use catkin_make (but this only get me a "can't find rosout" when doing "roslaunch test test.launch").
Maybe I got it wrong when using "source" also. Currently I have ROS_PACKAGE_PATH set to "/opt/ros/kinetic/share". Or I missed a catkin_init_workspace somehow.
Thanks for your help.
Edit :
Thanks for answering. Still in trouble though.
When running catkin_make
in my second worspace (catkin_ws
), I got this (after having sourced ros_catkin_ws/devel/setup.bash
):
+++ processing catkin package: 'test'
-- ==> add_subdirectory(test)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Error at /opt/ros/kinetic/share/p2os_driver/cmake/p2os_driverConfig.cmake:148 (message):
Project 'test' tried to find library 'p2os_driver'. The library is
neither a target nor built/installed properly. Did you compile project
'p2os_driver'? Did you find_package() it before the subdirectory containing
its code is included?
Call Stack (most recent call first):
/home/pi/ros_catkin_ws/devel/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
test/CMakeLists.txt:10 (find_package)
However p2os_driver
is, I think, properly built in main workspace (ros_catwin_ws
) since I got no error doing :
sudo ~/ros_catkin_ws/src/catkin/bin/catkin_make_isolated -j1 --install --install-space /opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release --pkg p2os_driver
Is there something I am doing wrong with dependencies ? I created "test" package in catkin_ws
doing
catkin_create_pkg test rospy p2os_driver nav_msgs tf
Originally posted by r00t8 on ROS Answers with karma: 15 on 2018-05-15
Post score: 0
Original comments
Comment by gvdhoorn on 2018-05-16:\
Project 'test' tried to find library 'p2os_driver'.
could you show the CMakeLists.txt
of the test
pkg that you created? Please omit all the boilerplate comments (lines starting with #
), they are not needed.
Comment by r00t8 on 2018-05-16:
project(test)
find_package(catkin REQUIRED COMPONENTS nav_msgs p2os_driver rospy tf )