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

Path of catkin workspace appears in install space

asked 2018-03-10 08:10:08 -0500

130s gravatar image

updated 2018-03-10 13:23:09 -0500

UPDATE 201803100806 I can provide a reproduce sample.

Workspace path is mixed in install space. This makes me worry that I might have done something wrong, but I'm not quite sure.

  • Q1. Is this supposed to be so?
  • Q2. If the built package distributed to another computer that doesn't have the same path, would it still work?

Issue

In install space I see many mentions of the absolute path of catkin workspace as some of them citead below. I do NOT though see the catkin ws path in setup.*sh, and also when I ran source /opt/ros/indigo/setup.bash I do not see the catkin ws path in any environment variables.

Commands to reproduce:

$ docker pull ros:indigo-ros-core-trusty
$ docker images
REPOSITORY                                         TAG                       IMAGE ID            CREATED             SIZE
ros                                                indigo-ros-core-trusty    e1b6d7a34b5b        3 days ago          875MB
$ docker run -it ros:indigo-ros-core-trusty
root@c5b3177c4ce9:~# mkdir -p cws_install_sample/src && cd cws_install_sample/src
root@c5b3177c4ce9:~/cws_install_sample/src# git clone https://github.com/ros-drivers/openni2_camera.git
# cd .. && rosdep update
# apt-get update && rosdep install -r -y --from-paths src --ignore-src
# source /opt/ros/indigo/setup.bash
# catkin_make -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo -DCMAKE_BUILD_TYPE=Release install
Base path: /root/cws_install_sample
Source space: /root/cws_install_sample/src
Build space: /root/cws_install_sample/build
Devel space: /root/cws_install_sample/devel
Install space: /opt/ros/indigo
Creating symlink "/root/cws_install_sample/src/CMakeLists.txt" pointing to "/opt/ros/indigo/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /root/cws_install_sample/src -DCMAKE_BUILD_TYPE=Release -DCATKIN_DEVEL_PREFIX=/root/cws_install_sample/devel -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo -G Unix Makefiles" in "/root/cws_install_sample/build"
####
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /root/cws_install_sample/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- 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: /root/cws_install_sample/build/test_results
:
-- Build files have been written to: /root/cws_install_sample/build
####
#### Running command: "make install -j8 -l8" in "/root/cws_install_sample/build"
:
[  5%] [ 10%] Building C object openni2_camera/openni2_camera/CMakeFiles/usb_reset.dir/src/usb_reset.c.o
Generating dynamic reconfigure files from cfg/OpenNI2.cfg: /root/cws_install_sample/devel/include/openni2_camera/OpenNI2Config.h /root/cws_install_sample/devel/lib/python2.7/dist-packages/openni2_camera/cfg/OpenNI2Config.py
:
Wrote header file in /root/cws_install_sample/devel/include/openni2_camera/OpenNI2Config.h
Linking C executable /root/cws_install_sample/devel/lib/openni2_camera/usb_reset
:
Linking CXX shared library /root/cws_install_sample/devel/lib/libopenni2_wrapper.so
:
Linking CXX executable /root/cws_install_sample/devel/lib/openni2_camera/list_devices
:
Linking CXX executable /root/cws_install_sample/devel/lib/openni2_camera/openni2_camera_node
Linking CXX shared library /root/cws_install_sample/devel/lib/libopenni2_camera_nodelet.so
:
Listing /root/cws_install_sample/devel ...
(more)
edit retag flag offensive close merge delete

Comments

Thanks @gvdhoorn. Indeed I didn't ask my questions :/. I updated my post.

130s gravatar image 130s  ( 2018-03-10 13:23:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-10 13:05:40 -0500

gvdhoorn gravatar image

I may have missed it, but what is your question exactly? Many of the occurences that you show are in if (..) .. else .. constructs, and the workspace path is not supposed to be used then, as those if statements check for which space they are actually in.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-03-10 08:10:08 -0500

Seen: 674 times

Last updated: Mar 10 '18