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

loliveira's profile - activity

2014-02-16 02:13:39 -0500 received badge  Famous Question (source)
2014-01-28 06:36:10 -0500 commented answer Where should generated header files be generated to? How can I then export them with catkin?

Don't worry, all help is welcome even if it overlooks some part of the question ;)

2014-01-28 06:25:21 -0500 commented answer Where should generated header files be generated to? How can I then export them with catkin?

Perfect... that seems to be exactly what I'm looking for... unfortunately the good config breaks the compilation :) (my fault this time) ;) Only using catkin 0.5.79 so I'll use the first option.

2014-01-28 04:49:29 -0500 commented answer Where should generated header files be generated to? How can I then export them with catkin?

install(DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_INCLUDE_DESTINATION} DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION} FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp" PATTERN ".svn" EXCLUDE )

2014-01-28 04:49:26 -0500 commented answer Where should generated header files be generated to? How can I then export them with catkin?

So your suggestion is to place the generated header files in the src directory? I've thought about that but usualy compiletime generated files go to the build directory. The install step works fine, I install to *sorry next comment*

2014-01-28 04:39:10 -0500 received badge  Notable Question (source)
2014-01-28 02:27:27 -0500 received badge  Popular Question (source)
2014-01-28 02:20:54 -0500 received badge  Nice Question (source)
2014-01-28 01:18:00 -0500 commented answer Where should generated header files be generated to? How can I then export them with catkin?

Thanks for the answer. I put it on that folder for that reason. However, if devel is not sourced yet (because it doesn't exist) the header will not be seen by the packages. You have to: catkin_make; source devel/setup.bash; catkin_make It works, but it is not elegant ;)

2014-01-27 23:36:47 -0500 commented answer Installing hydro on archlinux

Sorry for the delay in replying. The problem was with packer, I changed to yaourt and everything worked perfectly.

2014-01-27 23:26:58 -0500 asked a question Where should generated header files be generated to? How can I then export them with catkin?

I have the following CMakeLists.txt

cmake_minimum_required(VERSION 2.8.3)
project(datatypes)

find_package(catkin REQUIRED)
catkin_package(
->INCLUDE_DIRS ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_INCLUDE_DESTINATION}
#  LIBRARIES rtdb_config
#  CATKIN_DEPENDS other_catkin_pkg
#  DEPENDS system_lib
)

file(MAKE_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_INCLUDE_DESTINATION})
FILE(GLOB DATATYPE_RAW ${PROJECT_SOURCE_DIR}/datatypes/*)
add_custom_target(${PROJECT_NAME}
    ALL
    COMMAND generate_some_header_files_to ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_INCLUDE_DESTINATION}
    SOURCES ${DATATYPE_RAW}
)

Where the custom command generates header files to be used by other packages in the dir ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_INCLUDE_DESTINATION}. (Not sure this dir should be used!!)

The problem seems to be that since this directory was still not created it fails to be exported by catkin_package:

catkin_package() include dir '/home/.../devel/include' is neither an absolute directory nor exists relative to '/home/.../src/rtdb/src/datatypes'

Now the question: Where should generated header files be generated to? How can I then export them with catkin?

Thanks in advance.

Luis

2014-01-17 01:38:12 -0500 commented answer Installing hydro on archlinux

Just installed using this (much better ;) ) method... However I ran insto some dependencies not being met: ros-comm cannot resolve genmsg, and genmsg does require catkin for building (and does not ask for the dependency). Edit: Wrote too soon, there are some "Could not resolve all dependencies".

2014-01-17 01:03:44 -0500 received badge  Scholar (source)
2014-01-17 01:00:58 -0500 received badge  Famous Question (source)
2014-01-16 04:31:56 -0500 received badge  Supporter (source)
2014-01-14 11:14:13 -0500 received badge  Notable Question (source)
2014-01-14 07:46:51 -0500 received badge  Popular Question (source)
2014-01-14 06:37:20 -0500 received badge  Nice Question (source)
2014-01-14 05:12:20 -0500 received badge  Editor (source)
2014-01-14 04:51:31 -0500 received badge  Student (source)
2014-01-14 04:49:03 -0500 asked a question Installing hydro on archlinux

This is more a "how did I do it" than a "how do you do it".

The following sequence worked for me. By mixing the instructions from the groovy setup with the instructions from Install from source this is what I did. Note that there are some missing steps (related to dependencies that are on the official reps).

Any comments on better ways to do this are welcome :)

sudo pacman -S python2 gcc boost cmake libyaml yaml-cpp python2-yaml python2-nose python2-paramiko python2-netifaces tinyxml lsb-release bzip2 python2-pip mercurial subversion git pkg-config jshon make

wget <a href="https://aur.archlinux.org/packages/pa/packer/packer.tar.gz">https://aur.archlinux.org/packages/pa/packer/packer.tar.gz</a>
tar -zxvf packer.tar.gz 
cd packer
makepkg PKGBUILD 
sudo pacman -U packer*.pkg.tar.xz

sudo packer -S python2-empy log4cxx gtest

sudo pip2 install -U rospkg rosdep rosinstall catkin-pkg wstool

sudo rosdep init
rosdep update

mkdir ~/ros_catkin_ws
cd ~/ros_catkin_ws

rosinstall_generator ros_comm --rosdistro hydro --deps --wet-only > hydro-ros_comm-wet.rosinstall
wstool init -j8 src hydro-ros_comm-wet.rosinstall

./src/catkin/bin/catkin_make_isolated -DPYTHON_EXECUTABLE=/usr/bin/python2 -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so --install --install-space /opt/ros/hydro