Maintainer/Author/Contibutor:
- and much, much more...
Willow Garage
Email: <tfoote AT SPAMFREE willowgarage DOT com>
ROS Answers: Open Source Q&A Forum - Individual question feed
Open source question and answer forum written in Python and Django
Open source question and answer forum written in Python and Django
http://answers.ros.org
Extending bash completion for a command in rosbash (with catkin_add_env_hooks)
Wed, 22 May 2013 11:38:46 -0500
I plan to extend bash completion features for a common ros command (roslaunch) that already has completion defined in rosbash.
My first approach was to modify rosbash, which is quite generic and load my completion from there using rospack.
Now, I found [this commit](https://github.com/ros/catkin/commit/7247e4ea033e450c53102258c0811bb62932f816) using catkin_add_env_hooks to load completion scripts, which seems way more elegant.
First I am assuming this should work in any environment independent if catkin is used, correct?
The problem is that I am adding completion features instead of providing new completion. What is the correct way to do this?
I need to override the rosbash version here. rosbash is from 15.rosbash.bash, so I named my file 20.xxx and this seems to work, although I can't find any guarantees, especially about rosbash staying at 15. Maybe in the longrun the completion should be fully moved out of rosbash anyways and stay in the package that is completed?
http://answers.ros.org/question/63228/extending-bash-completion-for-a-command-in-rosbash-with-catkin_add_env_hooks/
Using ExternalProject_Add with catkin
Wed, 22 May 2013 14:03:25 -0500
I've been trying to add an external project to catkin using the ExternalProject_Add feature in CMake. My CMakeLists.txt files looks something like follows:
cmake_minimum_required(VERSION 2.8.3)
include(ExternalProject)
ExternalProject_Add( foreignproject
PREFIX foreignprojectlib
GIT_REPOSITORY foreignproject.git
BUILD_IN_SOURCE
BUILD_COMMAND cmake --build .
INSTALL_COMMAND ""
)
project(rosproject)
catkin_package(
INCLUDE_DIRS include ${DIRECTORY_TO_FOREIGN_PROJECT_HEADERS}
LIBRARIES rosproject foreignproject
CATKIN_DEPENDS opencv2 roscpp tf
DEPENDS system_lib
)
include_directories(include
${catkin_INCLUDE_DIRS}
)
add_executable(rosnode src/rosnode.cpp)
The problem I am coming across is that the header file from the external project is not being found. In fact, I'm finding that catkin_make (-j1) tries to build rosnode before it builds the external library. Could someone explain the proper way of using ExternalProject_Add or post an example of a CMakeLists.txt file that successfully uses ExternalProject_Add?
http://answers.ros.org/question/63259/using-externalproject_add-with-catkin/
how do I use download_test_data()?
Tue, 21 May 2013 23:32:40 -0500
I am trying to migrate a rosbuild [package](https://github.com/ros-drivers/velodyne/tree/master/velodyne_driver) to catkin. It has unit tests which require moderately large data files stored on **pr.willowgarage.com**. The rosbuild version did it like this:
rosbuild_download_test_data(
http://pr.willowgarage.com/data/velodyne/32e.pcap
tests/32e.pcap
e41d02aac34f0967c03a5597e1d554a9
)
So, I changed that to invoke `download_test_data()` with identical parameters.
But, my tests can't find the data. Formerly they did it this way:
Now it fails:
[FATAL] [1369196347.360283641]: Error opening Velodyne socket dump file.
I finally discovered a `download_data_tests_32e.pcap` make target. Invoking it explicitly reads the file into the build tree, and similarly for another test file.
Several related questions:
1. Where is `download_test_data()` documented?
1. How do it get the the unit test build targets to depend on the download targets?
1. What do I use instead of `$(find velodyne_driver)/tests/32e.pcap` to resolve the path name?
**UPDATE**: The download command puts the data here in the build tree: `~/ros/wet/hydro/build/velodyne/velodyne_driver/tests/32e.pcap`, which seems reasonable.
But, rospack resolves to the source tree:
$ rospack find velodyne_driver
/home/joq/ros/wet/hydro/src/velodyne/velodyne_driver
Is that why `$(find velodyne_driver)/tests/32e.pcap` does not work?
Also, experiment reveals an answer to question 2: the `tests` and `run_tests` build targets *do* depend on the download targets, but the more specific `run_tests_velodyne_driver` target does not.
http://answers.ros.org/question/63189/how-do-i-use-download_test_data/
Best practice for incorporating catkin into larger CMake project?
Mon, 29 Apr 2013 15:16:58 -0500
I would like to incorporate a few catkin-based ROS groovy packages into a larger CMake project that does not use ROS or catkin.
Catkin requires that the top-level directory from which you invoke catkin_make (e.g. the catkin workspace) does not contain a CMakeLists.txt file.
I have a conceptual out a hack to invoke the catkin_make from above without including a CMakeLists.txt in the workspace, and use an external variable definition to pass information into catkin_make, but would assume others have better solutions.
Can anyone share any best practices for incorporating ROS into larger non-ROS projects?
http://answers.ros.org/question/61774/best-practice-for-incorporating-catkin-into-larger-cmake-project/
should catkin_make_isolated generate some initial setup.* files without packages in src?
Thu, 16 May 2013 12:05:30 -0500
I am trying to write an automated script to setup a catkin isolated workspace chained with a rosbuild workspace (to be used by freshmen students here). Since there are no packages to begin with, no setup files are generated by catkin_make_isolated.
Any thoughts on how this can be achieved?
http://answers.ros.org/question/62901/should-catkin_make_isolated-generate-some-initial-setup-files-without-packages-in-src/
catkin_make started failing to generate .h from .msg
Fri, 03 May 2013 22:07:52 -0500
I have a `C++` pkg that used to build successfully by `cakin_make`. But recently building starts to fail often, not always, with an error message:
~/catkinws_prv:$ rm -fR build/ devel/
~/catkinws_prv:$ catkin_make -j2
:
~/catkinws_prv/src/rqt_common_plugins/rqt_marble/src/rqt_marble/bridge_ros_marble.cpp:39:33: fatal error: rqt_marble/RouteGps.h: No such file or directory
compilation terminated.
Scanning dependencies of target rqt_marble_gencpp
[ 55%] Generating C++ code from rqt_marble/RouteGps.msg
[ 55%] Built target rqt_marble_gencpp
Scanning dependencies of target rqt_marble_genlisp
[ 61%] Generating Lisp code from rqt_marble/RouteGps.msg
[ 61%] Built target rqt_marble_genlisp
Scanning dependencies of target rqt_marble_genpy
[ 66%] Generating Python from MSG rqt_marble/RouteGps
[ 72%] Generating Python msg __init__.py for rqt_marble
[ 72%] Built target rqt_marble_genpy
[ 77%] Building CXX object rqt_common_plugins/rqt_marble/CMakeFiles/rqt_marble.dir/include/rqt_marble/moc_bridge_ros_marble.cxx.o
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [rqt_common_plugins/rqt_marble/CMakeFiles/rqt_marble.dir/src/rqt_marble/bridge_ros_marble.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [rqt_common_plugins/rqt_marble/CMakeFiles/rqt_marble.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
Direct cause of the problem is clear: `RouteGps.h` is not generated from `RouteGps.msg`. But why?
System dependency should be correctly installed (as I said, `catkin_make` sometimes passes).
Because of this line in the error message above,
The bug is not reproducible, so it is likely a hardware or OS problem.
I thought my machine may have an issue, but as I cite later, the similar error occurs on `buildfarm`.
I first suspected my recent commits do something wrong, but even the commit that built well [like this initial commit](https://github.com/ros-visualization/rqt_common_plugins/commit/e581d7714b49ca95b672f12e6b2a465f5439ffc6#rqt_marble) fails with the same error.
Anything wrong?
$ dpkg -p ros-groovy-catkin
Version: 0.5.65-3quantal-20130325-0722-+0000
$ dpkg -p python-catkin-pkg
Version: 0.1.11-1
----
And although I'm not sure the correlation, `Jenkins` has also started [returning similar error](http://jenkins.willowgarage.com:8080/job/devel-groovy-rqt_common_plugins/ARCH_PARAM=amd64,UBUNTU_PARAM=precise,label=devel/4/console) (with my latest commit):
In file included from /tmp/test_repositories/src_repository/rqt_common_plugins/rqt_marble/include/rqt_marble/marble_plugin.h:42:0,
from /tmp/test_repositories/src_repository/rqt_common_plugins/rqt_marble/src/rqt_marble/marble_plugin.cpp:48:
/tmp/test_repositories/src_repository/rqt_common_plugins/rqt_marble/include/rqt_marble/bridge_ros_marble.h:12:33: fatal error: rqt_marble/RouteGps.h: No such file or directory
----
Update 5/7/2013) After adding `add_dependencies` I still saw the same issue. Eventually I moved a `.msg` file to another pkg and so far it builds nicely. [The link](http://answers.ros.org/question/52744/how-to-specify-dependencies-with-foo_msgs-catkin-packages/) that @Chad Rockey shared helped.
----
Update 5/14/13) Have been built fine locally, but `jenkins` has kept failing for the last 2 weeks, complaining the `.h` file from `.msg` is not found, although the console output implies it is built. I opened up a [new question](http://answers.ros.org/question/62707/jenkins-fails-to-generage-h-from-msg/) for this.
http://answers.ros.org/question/62092/catkin_make-started-failing-to-generate-h-from-msg/
catkin generating lib packages instead of bin packages
Wed, 15 May 2013 05:01:40 -0500
Hello all;
I am starting with ROS, groovy version.
I have managed to compile some code in a package using catkin, but the executables generated are placed ~/catkin_ws/devel/lib/package_name.
In my CmakeLists.txt I have used "add_executable" and "target_link_libraries"
I think the executables should be in ~/catkin_ws/devel/bin/package_name., instead under lib directory.
Is this correct? Where could I have the error?
Thank you all in advance,
Best Regards,
http://answers.ros.org/question/62766/catkin-generating-lib-packages-instead-of-bin-packages/
Integrate ROS Groovy and QtCreator.
Sun, 12 May 2013 05:18:24 -0500
I have successfully integrated the code ROS with QT libraries. To do
this I created the project with catkin_create_pkg and then I added all
the necessary (cpp file, ui, wrappers, etc.) in the file CMakeList.txt.
I am then able to successfully compile my project through catkin.
My question now is this: how do I continue
my work through the environment QtCreator? I know very well that the
QtCreator is capable of interpreted file from CMake, but not
by catkin.
My system is Ubuntu 12.04 and ROS Groovy Galapagos.
Thanks to all.
http://answers.ros.org/question/62572/integrate-ros-groovy-and-qtcreator/
audio_common not catkinized?
Mon, 13 May 2013 19:13:50 -0500
Trying to migrate to catkin.
I have packages that depend on things in audio_common.
Is audio_common going to be migrated or deprecated?
Are there any good alternatives?
Any information would be appreciated.
Thanks,
Ryan
http://answers.ros.org/question/62648/audio_common-not-catkinized/
How do I only run tests for only one package?
Sun, 12 May 2013 15:31:12 -0500
`catkin_make run_tests --pkg costmap_2d` seems a likely candidate but doesn't work.
http://answers.ros.org/question/62583/how-do-i-only-run-tests-for-only-one-package/
Multiple Cores running in rostest
Fri, 10 May 2013 22:15:26 -0500
I'm running tests in the latest navigation branch, but keep getting errors when I run
catkin_make run_tests
The errors claim that there is already a roscore instance open on that port. Full output of the command is seen [here](http://www.cse.wustl.edu/~dvl1/stuff/output.log) but the relevant bit is...
-- run_tests.py: execute commands
/opt/ros/groovy/bin/rostest --pkgdir=/home/dlu/catkin/src/navigation/costmap_2d --package=costmap_2d --results-filename test_simple_driving_test.xml /home/dlu/catkin/src/navigation/costmap_2d/test/simple_driving_test.xml
... logging to /home/dlu/.ros/log/rostest-serenity-8918.log
[ROSUNIT] Outputting test results to /home/dlu/catkin/build/test_results/costmap_2d/rostest-test_simple_driving_test.xml
[ WARN] [1368241605.099039962]: Message from [/rosbag] has a non-fully-qualified frame_id [base_laser]. Resolved locally to [/base_laser]. This is will likely not work in multi-robot systems. This message will only print once.
[ WARN] [1368241605.108304546, 19.527194170]: No laser scan received (and thus no pose updates have been published) for 19.527194 seconds. Verify that data is being published on the /base_scan topic.
testsimple_driving_test ... ERROR!
ERROR: roscore cannot run as another roscore/master is already running.
Please kill other roscore/master processes before relaunching.
The ROS_MASTER_URI is http://serenity:22422/
File "/usr/lib/python2.7/unittest/case.py", line 332, in run
testMethod()
File "/opt/ros/groovy/lib/python2.7/dist-packages/rostest/runner.py", line 121, in fn
succeeded, failed = self.test_parent.launch()
File "/opt/ros/groovy/lib/python2.7/dist-packages/rostest/rostest_parent.py", line 81, in launch
return self.runner.launch()
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/launch.py", line 644, in launch
self._setup()
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/launch.py", line 620, in _setup
self._launch_master()
File "/opt/ros/groovy/lib/python2.7/dist-packages/roslaunch/launch.py", line 381, in _launch_master
raise RLException("roscore cannot run as another roscore/master is already running. \nPlease kill other roscore/master processes before relaunching.\nThe ROS_MASTER_URI is %s"%(m.uri))
--------------------------------------------------------------------------------
However running the tests with the individual command works just fine.
/opt/ros/groovy/bin/rostest --pkgdir=/home/dlu/catkin/src/navigation/costmap_2d --package=costmap_2d --results-filename test_simple_driving_test.xml /home/dlu/catkin/src/navigation/costmap_2d/test/simple_driving_test.xml
The CMake command for the above listed test is...
add_rostest(test/simple_driving_test.xml)
catkin_add_gtest(module_tests test/module_tests.cpp)
In the words of "David after Dentist," "WHY IS THIS HAPPENING? IS THIS GOING TO BE FOREVER?"
http://answers.ros.org/question/62553/multiple-cores-running-in-rostest/
unclear instruction in groovy install from source
Tue, 07 May 2013 19:58:19 -0500
After finishing section 2.1 (Building Catkin Packages) and sourcing the catkin workspace section 2.2 (Build Rosbuild Packages) starts with mkdir ros_ws.
What I would like clarified is where to put the ros_ws directory. After finishing 2.1 the system is still in the ros_catkin_ws so to follow the instructions exactly will place the ros_ws inside the ros_catkin_ws.
So, should ros_ws be inside the ros_catkin_ws?
http://answers.ros.org/question/62359/unclear-instruction-in-groovy-install-from-source/
Qt Creator cannot find moveit headers
Tue, 07 May 2013 10:28:41 -0500
My computer's OS is Ubuntu 12.04 with Groovy and I am working with the source installation of ros moveit. To modify one of the moveit packages I tried to open a package in qtcreator (execute qt creator from console --> 'open project' --> op Cmakelists) to benefit from code completion etc. However, I am facing two issues:
1) running cmake on package pr2_moveit_tutorials fails and I am receiving the following errors:
CMake Error at CMakeLists.txt:3 (install):
install TARGETS given no RUNTIME DESTINATION for executable target
"planning_scene_tutorial".
So far I circumvent this issue commenting out the 'target_link_library' lines in the Cmakelists. Perhaps cmake fails due to the catkin_make build system?
2) some headers cannot be found. The file 'motion_planning_interface_tutorial.cpp' contains the following headers:
include moveit/robot_model_loader/robot_model_loader.h
include moveit/planning_pipeline/planning_pipeline.h
include moveit/planning_interface/planning_interface.h
include moveit/kinematic_constraints/utils.h
include moveit_msgs/DisplayTrajectory.h
include moveit_msgs/PlanningScene.h
QT creator only finds the last two headers. In contrast to moveit_msgs, 'moveit', is not really a package and that is probably the reason why QT creator cannot find the headers. Adding the following line to Cmakelists does not solve the issue...
include_directories(~/ros/workspace/moveit/src)
Any idea how to point QT Creator to the headers?
Thanks!
http://answers.ros.org/question/62313/qt-creator-cannot-find-moveit-headers/
Trouble with winros installation
Thu, 18 Apr 2013 04:13:59 -0500
Hello guys,
I'm trying to install winros on Windows 7 (64 Bit) and have some trouble with the step "winros sdk configure" like described in http://www.ros.org/wiki/win_ros/Msvc%20Build%20Environment%20-%20Fuerte.
This is my console output:
"Configuring the build"
-- +++ catkin
-- Using CATKIN_DEVEL_PREFIX: C:/work/build_sdk/devel
-- Using CMAKE_PREFIX_PATH: C:/work/build_sdk;C:/work/build_sdk/cmake
CMake Warning at catkin/cmake/test/gtest.cmake:99 (message):
gtest not found, C++ tests can not be built. You can run 'svn checkout
http://googletest.googlecode.com/svn/tags/release-1.6.0 gtest' in the root
of your workspace
Call Stack (most recent call first):
catkin/cmake/all.cmake:133 (include)
catkin/CMakeLists.txt:8 (include)
-- Using CATKIN_TEST_RESULTS_DIR: C:/work/build_sdk/test_results
-- catkin 0.5.65
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 32 packages in topological order:
-- ~~ - ros_comm (metapackage)
-- ~~ - rosconsole
-- ~~ - rosgraph
-- ~~ - rosgraph_msgs
-- ~~ - roslaunch
-- ~~ - rosmaster
-- ~~ - rosmsg
-- ~~ - rospack
-- ~~ - rosparam
-- ~~ - rospy
-- ~~ - rosservice
-- ~~ - rostest
-- ~~ - std_srvs
-- ~~ - test_roslib_comm
-- ~~ - xmlrpcpp
-- ~~ - roscpp
-- ~~ - rosout
-- ~~ - actionlib
-- ~~ - message_filters
-- ~~ - rosnode
-- ~~ - rostopic
-- ~~ - roswtf
-- ~~ - test_roscpp
-- ~~ - test_rosgraph
-- ~~ - test_roslaunch
-- ~~ - test_rosmaster
-- ~~ - test_rosparam
-- ~~ - test_rospy
-- ~~ - test_rosservice
-- ~~ - topic_tools
-- ~~ - rosbag
-- ~~ - test_rosbag
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'ros_comm'
-- ==> add_subdirectory(ros_comm/ros_comm)
CMake Error at ros_comm/ros_comm/CMakeLists.txt:3 (find_package):
Could not find module Findcatkin.cmake or a configuration file for package
catkin.
Adjust CMAKE_MODULE_PATH to find Findcatkin.cmake or set catkin_DIR to the
directory containing a CMake configuration file for catkin. The file will
have one of the following names:
catkinConfig.cmake
catkin-config.cmake
-- +++ processing catkin package: 'rosconsole'
-- ==> add_subdirectory(ros_comm/tools/rosconsole)
CMake Error at ros_comm/tools/rosconsole/CMakeLists.txt:4 (find_package):
Could not find module Findcatkin.cmake or a configuration file for package
catkin.
Adjust CMAKE_MODULE_PATH to find Findcatkin.cmake or set catkin_DIR to the
directory containing a CMake configuration file for catkin. The file will
have one of the following names:
catkinConfig.cmake
catkin-config.cmake
CMake Error at ros_comm/tools/rosconsole/CMakeLists.txt:12 (message):
Couldn't find log4cxx library
-- Configuring incomplete, errors occurred!
"You may now proceed with 'winros sdk build'"
The Problem is that there is only a "catkinConfig.cmake" in directory C:\work\build_sdk\catkin\catkin_generated\installspace but I'm guessing that this is not the right one because that file will be created by the build process which is started with "winros sdk configure". The advise to adjust CMAKE_MODULE_PATH to find Findcatkin.cmake is also not working for me because there exists no Findcatkin.cmake.
Has somebody experience with that problem?
Thanks
http://answers.ros.org/question/61016/trouble-with-winros-installation/
Error building catkin on Pandaboard ES (Groovy)
Fri, 03 May 2013 17:52:28 -0500
Hi, I'm fairly new to Linux and ROS. I'm trying to install Groovy onto my Pandaboard ES running Ubuntu 12.04. Upon building the catkin packages I get the following errors. I have followed both of the instructions in the links below with no success yet .
Thanks in advance!
<== Finished processing package [89 of 147]: 'sensor_msgs'
==> Processing catkin package: 'camera_calibration_parsers'
==> Building with env: '/opt/ros/groovy/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/opt/ros/groovy/ros_catkin_ws/build_isolated/camera_calibration_parsers'
==> make -j2 -l2 in '/opt/ros/groovy/ros_catkin_ws/build_isolated/camera_calibration_parsers'
[ 25%] Building CXX object CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.cpp.o
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp: In function ‘void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)’:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:87:19: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) const [with Key = char [5]]((*"rows")) >> rows’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:87:19: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘int’ to ‘camera_calibration_parsers::SimpleMatrix&’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:89:19: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) const [with Key = char [5]]((*"cols")) >> cols’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:89:19: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘int’ to ‘camera_calibration_parsers::SimpleMatrix&’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:93:24: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) const [with Key = int]((*(const int*)(& i))) >> *(m.camera_calibration_parsers::SimpleMatrix::data + ((unsigned int)(((unsigned int)i) * 8u)))’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:93:24: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘double’ to ‘camera_calibration_parsers::SimpleMatrix&’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp: In function ‘bool camera_calibration_parsers::readCalibrationYml(std::istream&, std::string&, sensor_msgs::CameraInfo&)’:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:153:12: error: ‘class YAML::Parser’ has no member named ‘GetNextDocument’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:155:43: error: ‘class YAML::Node’ has no member named ‘FindValue’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:156:21: error: no match for ‘operator>>’ in ‘* name_node >> camera_name’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:156:21: note: candidates are:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘std::string {aka std::basic_string}’ to ‘camera_calibration_parsers::SimpleMatrix&’
/usr/include/c++/4.6/complex:488:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_Tp>&)
/usr/include/c++/4.6/iomanip:229:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setw)
/usr/include/c++/4.6/iomanip:199:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setprecision)
/usr/include/c++/4.6/iomanip:169:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setfill<_CharT>)
/usr/include/c++/4.6/iomanip:131:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setbase)
/usr/include/c++/4.6/iomanip:100:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setiosflags)
/usr/include/c++/4.6/iomanip:70:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Resetiosflags)
/usr/include/c++/4.6/istream:761:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, signed char*)
/usr/include/c++/4.6/istream:756:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, unsigned char*)
/usr/include/c++/4.6/istream:714:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, signed char&)
/usr/include/c++/4.6/istream:709:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, unsigned char&)
/usr/include/c++/4.6/bits/istream.tcc:925:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
/usr/include/c++/4.6/bits/istream.tcc:957:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
/usr/include/c++/4.6/bits/basic_string.tcc:998:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:160:37: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) [with Key = char [12]]((* & camera_calibration_parsers::WIDTH_YML_NAME)) >> cam_info.sensor_msgs::CameraInfo_ >::width’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:160:37: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘sensor_msgs::CameraInfo_ >::_width_type {aka unsigned int}’ to ‘camera_calibration_parsers::SimpleMatrix&’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:161:38: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) [with Key = char [13]]((* & camera_calibration_parsers::HEIGHT_YML_NAME)) >> cam_info.sensor_msgs::CameraInfo_ >::height’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:161:38: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘sensor_msgs::CameraInfo_ >::_height_type {aka unsigned int}’ to ‘camera_calibration_parsers::SimpleMatrix&’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:172:44: error: ‘class YAML::Node’ has no member named ‘FindValue’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:173:31: error: no match for ‘operator>>’ in ‘* model_node >> cam_info.sensor_msgs::CameraInfo_ >::distortion_model’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:173:31: note: candidates are:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘sensor_msgs::CameraInfo_ >::_distortion_model_type {aka std::basic_string}’ to ‘camera_calibration_parsers::SimpleMatrix&’
/usr/include/c++/4.6/complex:488:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_Tp>&)
/usr/include/c++/4.6/iomanip:229:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setw)
/usr/include/c++/4.6/iomanip:199:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setprecision)
/usr/include/c++/4.6/iomanip:169:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setfill<_CharT>)
/usr/include/c++/4.6/iomanip:131:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setbase)
/usr/include/c++/4.6/iomanip:100:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setiosflags)
/usr/include/c++/4.6/iomanip:70:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Resetiosflags)
/usr/include/c++/4.6/istream:761:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, signed char*)
/usr/include/c++/4.6/istream:756:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, unsigned char*)
/usr/include/c++/4.6/istream:714:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, signed char&)
/usr/include/c++/4.6/istream:709:5: note: template std::basic_istream& std::operator>>(std::basic_istream&, unsigned char&)
/usr/include/c++/4.6/bits/istream.tcc:925:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
/usr/include/c++/4.6/bits/istream.tcc:957:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
/usr/include/c++/4.6/bits/basic_string.tcc:998:5: note: template std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:182:23: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) const [with Key = char [5]]((*"rows")) >> D_rows’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:182:23: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘int’ to ‘camera_calibration_parsers::SimpleMatrix&’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:183:23: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) const [with Key = char [5]]((*"cols")) >> D_cols’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:183:23: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘int’ to ‘camera_calibration_parsers::SimpleMatrix&’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:187:32: error: no match for ‘operator>>’ in ‘YAML::Node::operator[](const Key&) const [with Key = int]((*(const int*)(& i))) >> cam_info.sensor_msgs::CameraInfo_ >::D.std::vector<_Tp, _Alloc>::operator[] [with _Tp = double, _Alloc = std::allocator, std::vector<_Tp, _Alloc>::reference = double&, std::vector<_Tp, _Alloc>::size_type = unsigned int](((unsigned int)i))’
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:187:32: note: candidate is:
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: void camera_calibration_parsers::operator>>(const YAML::Node&, camera_calibration_parsers::SimpleMatrix&)
/opt/ros/groovy/ros_catkin_ws/src/camera_calibration_parsers/src/parse_yml.cpp:84:6: note: no known conversion for argument 2 from ‘double’ to ‘camera_calibration_parsers::SimpleMatrix&’
make[2]: *** [CMakeFiles/camera_calibration_parsers.dir/src/parse_yml.cpp.o] Error 1
make[1]: *** [CMakeFiles/camera_calibration_parsers.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "./src/catkin/bin/../python/catkin/builder.py", line 658, in build_workspace_isolated
number=index + 1, of=len(ordered_packages)
File "./src/catkin/bin/../python/catkin/builder.py", line 443, in build_package
install, jobs, force_cmake, quiet, last_env, cmake_args, make_args
File "./src/catkin/bin/../python/catkin/builder.py", line 297, in build_catkin_package
run_command(make_cmd, build_dir, quiet)
File "./src/catkin/bin/../python/catkin/builder.py", line 186, in run_command
raise subprocess.CalledProcessError(proc.returncode, ' '.join(cmd))
CalledProcessError: Command '/opt/ros/groovy/env.sh make -j2 -l2' returned non-zero exit status 2
<== Failed to process package 'camera_calibration_parsers':
Command '/opt/ros/groovy/env.sh make -j2 -l2' returned non-zero exit status 2
Reproduce this error by running:
==> /opt/ros/groovy/env.sh make -j2 -l2
http://answers.ros.org/question/62083/error-building-catkin-on-pandaboard-es-groovy/
Problems with Catkin Metapackages
Sun, 05 May 2013 20:30:32 -0500
I've been hashing through a build of Groovy on a BeagleBone. I've finally figured out there are issues with some of the metapackages that are causing my builds to fail.
WARNING: Metapackage "driver_common" must build_tool depend on catkin
WARNING: Metapackage "geometry" must build_tool depend on catkin
What do I need to do to correct this issue and get these metapackages to make? (and why are these packages faulty and not corrected at the source??)
http://answers.ros.org/question/62150/problems-with-catkin-metapackages/
Add additional packages to catkin_ws?
Sun, 05 May 2013 16:48:16 -0500
I've been working on getting ROS Groovy on a BeagleBone. Following the instructions on installing Groovy from source (http://www.ros.org/wiki/groovy/Installation/Source) (there are a few errors in this) I can build the catkin workspace with different variants just fine.
As I only need the BeagleBone for interfacing sensors remotely to my ROS PC I'm working mainly with the bare bones variant (ROS-Comm). I tried the Robot variant as it has the additional packages I need but there are erros with collada (and I don't need collada and several other packages that come with Robot so I'm starting with ROS-Comm).
Now my question: After the catkin workspace is built, how do you build new packages into the existing catkin ws?
http://answers.ros.org/question/62143/add-additional-packages-to-catkin_ws/
Using Git with ROS Groovy/rosws?
Wed, 01 May 2013 19:10:06 -0500
Is there something new/different about using git within rosws in ROS Groovy? It looks like I'm getting the stacks checked out but when I use rosmake it reports 0 of 0 stacks created.
Does the catkin workspace effect this?
http://answers.ros.org/question/61947/using-git-with-ros-groovyrosws/
catkin src/* vcs update
Thu, 02 May 2013 15:46:54 -0500
Hey everyone,
I'm probably missing something here...
Is there/What is the equivalent of rosbuild's `rosws update` for catkin
in the sense of updating all repository checkouts in the source folder simultaneously?
http://answers.ros.org/question/62022/catkin-src-vcs-update/
Is Jenkins running package tests as root?
Wed, 27 Mar 2013 23:10:53 -0500
I recently converted a package to catkin. The unit tests work on my machine, but one of them fails on Jenkins.
The test tries to write calibration information to a non-writable file and directory, which should fail. On my machine running as me, it does. On Jenkins the write succeeds (which it should not).
The simplest explanation is if Jenkins is running the unit tests as root.
Is that being done?
It seems wrong. Can it be changed?
Those tests worked fine on Hudson before the catkin migration.
http://answers.ros.org/question/59431/is-jenkins-running-package-tests-as-root/
Tf roslaunch issue, Package Path not set up properly?
Tue, 30 Apr 2013 15:04:44 -0500
I've been trying to launch the learning_tf package from the tf tutorials, and seem unable to find it, no matter how much I change my env variables. The command is "roslaunch learning_tf start_demo.launch" but it's also failing on other commands.
The workspace I'm using is ~/catkin_ws/src
I'm operating on groovy.
I'm convinced that the problem has to do with what I should set my ROS_PACKAGE_PATH to, but I don't know what it should be. I've tried several different options, and can normally locate things in /opt/ros/groovy/stacks, but not packages in catkin_ws.
http://answers.ros.org/question/61877/tf-roslaunch-issue-package-path-not-set-up-properly/
How is the info in the package.xml of a metapackage used?
Tue, 30 Apr 2013 13:15:12 -0500
My guess is that one of the usage is to let buildfarm know which pkgs in the given metapkg to be built.
----
From here is just fyi of what makes me wonder about this.
I know 1 of the pkgs in my metapkg that I'm trying to release into `hydro` doesn't build yet since one of the dependent pkgs is not yet available in the buildfarm. Actually `bloom-release`ing doesn't proceed at its internal `rosdep` call. In an attempt to tell the buildfarm not to build this single pkg "A-a" that depends on not-yet-available pkg, I commented out a `run_depend` entry of "A-a" in `package.xml` of the metapkg. But `bloom` still doesn't let me push it [0].
Am I doing something wrong with `package.xml`? What is the recommended usage of ROS tools (eg. `bloom`, `package.xml` etc) to release a metapkg that some of its components don't build?
I know I can make a temporary branch on my `vcs` tool locally but particularly I want to know how the information in `package.xml` in metapkg is used. Thanks!
----
[0] Upon `bloom-release`ing a metapkg, I get:
Could not resolve rosdep key 'foo'
Resolve problem with rosdep and then continue to try again.
Continue [Y/n]? Y
Running 'rosdep update'...
Could not resolve rosdep key 'foo'
Resolve problem with rosdep and then continue to try again.
Continue [Y/n]? n
[1] the depended pkg is not available yet:
$ rosdep --rosdistro hydro resolve foo
ERROR: no rosdep rule for 'foo'
Btw, `foo` here is `tf2_ros`. I'm trying to generalize the issue.
http://answers.ros.org/question/61870/how-is-the-info-in-the-packagexml-of-a-metapackage-used/
Do plain cmake packages need to handle pkg-config file generation?
Fri, 26 Apr 2013 13:34:40 -0500
@joq and I are working on improving the current [libsegwayrmp release](https://github.com/segwayrmp/libsegwayrmp-release/tree/release/groovy/libsegwayrmp) from @William.
It seems like the current release does not generate a pkg-config file. Consequently, any dependency on this package fails. On the other hand, the [libfreenect release](https://github.com/ros-drivers-gbp/libfreenect-release/tree/release/groovy/libfreenect) works fine, as pkg-config file generation was already handled upstream. This worked out of the box while building the package with catkin_make_isolated.
Should I setup libsegwayrmp to do something similar? Or is there an alternative I am not aware about?
Thanks!!
**Edit #1**
Based on @William's answer, here's a second question. Can a rosbuild package depend on a plain-cmake package? If yes, then can it use find_package or only pkg-config is supported? This is the error I get trying to build segway_rmpX (currently dry) with the current libsegwayrmp wet release.
Failed to invoke /opt/ros/groovy/bin/rospack cflags-only-I;--deps-only segway_rmpX
Package libsegwayrmp was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsegwayrmp.pc'
to the PKG_CONFIG_PATH environment variable
http://answers.ros.org/question/61623/do-plain-cmake-packages-need-to-handle-pkg-config-file-generation/
'roscd package' for catkin packages moves to nearly empty directory
Sat, 27 Apr 2013 20:03:53 -0500
Hello,
I'm running ROS Groovy (Debian install) under Ubuntu 12.04. I noticed that when using 'roscd' to move into a catkin package that is installed in the system directories, I am taken to a nearly empty directory /opt/ros/groovy/share/package with (usually) just a package.xml file and cmake directory. The binaries and scripts for such packages typically live under /opt/ros/groovy/lib/package. I find this behavior somewhat odd and counter productive since in the good old days, I could use 'roscd package' to explore the files in a package. Here's an example:
$ roscd kobuki_driver
$ ls
cmake package.xml
The actual driver files are in /opt/ros/groovy/lib/kobuki_driver:
$ cd /opt/ros/groovy/lib/kobuki_driver
$ ls
demo_kobuki_initialisation demo_kobuki_simple_loop version_info
demo_kobuki_sigslots kobuki_velocity_commands
Do I have something wrong with my ROS setup? Running the startup command:
source /opt/ros/groovy/setup.bash
sets my ROS_PACKAGE_PATH to:
/opt/ros/groovy/share:/opt/ros/groovy/stacks
which does not include /opt/ros/groovy/lib but when I add it, it does not fix the problem.
I really hope this is not the expected behavior for catkin packages going forward.
Thanks!
patrick
http://answers.ros.org/question/61677/roscd-package-for-catkin-packages-moves-to-nearly-empty-directory/
Running catkin over fuerte
Thu, 25 Apr 2013 03:10:44 -0500
I am using Fuerte over Ubuntu 12.04. I have been building my packages with Rosbuild but now I have to use Catkin as some of the packages that I need are only released for Groovy.
Inside opt/ros/fuerte/share I have a folder named catkin. Do I need to build this package? I have tried but it doesn't have a Makefile.
As I didn't succeeded in building this package I got Catkin source code from GitHub (release for Fuerte) and tried to build it with Rosbuild but It doesn't have a Makefile either.
I have also followed several tutorials for using Catkin in Fuerte but it is not clear to me how to create a Catkin workspace and if this is the origin of my problems. I have tried to follow the instructions at: ros.org/wiki/catkin/Tutorials/create_a_workspace, but I get an error when executing catkin_init_workspace. The system doesn't recognize the command.
Thank you very much in advance.
http://answers.ros.org/question/61534/running-catkin-over-fuerte/
How to build a custom 'stageros' using catkin?
Wed, 24 Apr 2013 11:05:16 -0500
Hi,
Due to stageros does not fit all my requirements, I need to do some modifications to source code. My questions are:
What files should I add to my package?
How should I modify CMakelists.txt in my new package for build the modified stageros.cpp?
Do I have to add libstage library to my package?
I'm using ROS Groovy on Ubuntu 12.04.
Thanks,
Gustavo.
http://answers.ros.org/question/61493/how-to-build-a-custom-stageros-using-catkin/
No executables generated by building unit test cpp with catkin
Sat, 20 Apr 2013 14:03:53 -0500
I'm trying to build by using `catkin` my `gtest` testsuite.
`catkin_add_gtest` replaces `rosbuild_add_gtest` according to [migrating_from_rosbuild wiki page](http://www.ros.org/wiki/catkin/migrating_from_rosbuild#Differences_in_CMakeLists.txt_for_rosbuild_and_catkin). `rosbuild_add_gtest` generates executable for `gtest` according to [this page](http://www.ros.org/wiki/rosbuild/CMakeLists/Examples#Building_a_C.2BAC8-C.2B-.2B-_unit_test_.28gtest.29). Therefore I expects that `catkin_add_gtest` also generates executable for my test cases. However, no executable is found in my catkin workspace after `catkin_make`ing.
Part of my CMakeLists.txt:
include_directories(${mypkg_INCLUDE_DIRECTORIES} ${catkin_INCLUDE_DIRS} ${MYDEPENDLIB_INCLUDE_DIR})
add_library(${PROJECT_NAME} ${mypkg_SRCS} ${mypkg_MOCS} ${mypkg_UIS_H})
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${MYDEPENDLIB_LIBRARIES})
## Setting Unit Test
catkin_add_gtest(testsuite_mypkg test/test_marble.cpp)
target_link_libraries(testsuite_mypkg ${PROJECT_NAME})
(A library file specified by `${PROJECT_NAME}` is generated successfully).
Result of `find`:
~/catkin_ws$ find . -iname '*test*mypkg*'
./src/mypkg/test/test_mypkg.cpp
./build/mypkg/CMakeFiles/_run_tests_mypkg.dir
./build/mypkg/CMakeFiles/testsuite_mypkg.dir
./build/mypkg/CMakeFiles/_run_tests_mypkg_gtest.dir
./build/mypkg/CMakeFiles/run_tests_mypkg.dir
./build/mypkg/CMakeFiles/_run_tests_mypkg_gtest_testsuite_mypkg.dir
./build/mypkg/CMakeFiles/run_tests_mypkg_gtest.dir
./build/mypkg/CMakeFiles/run_tests_mypkg_gtest_testsuite_mypkg.dir
What is missing/wrong?
Also I searched an example that uses the same `catkin_add_gtest` to generate executable, and I found [test_rosbag](https://github.com/ros/ros_comm/blob/1bd748ccdb5d19ae266c40f811051df792006c92/test/test_rosbag/CMakeLists.txt). But `catkin_make`ing it hasn't produced any executables either as far as I've tried.
Thanks!
http://answers.ros.org/question/61209/no-executables-generated-by-building-unit-test-cpp-with-catkin/
{PKG_NAME}_generate_messages_cpp vs {PKG_NAME}_gencpp
Wed, 17 Apr 2013 23:38:54 -0500
Hi there, using catkin in groovy I have seen two ways to specify dependencies to build msgs and srvs:
add_dependencies(my_bin {PKG_NAME}_generate_messages_cpp)
and
add_dependencies(my_bin {PKG_NAME}_gencpp)
Which one is correct?
None of them though seem to build services that my_bin depends on.
D.
http://answers.ros.org/question/60994/pkg_name_generate_messages_cpp-vs-pkg_name_gencpp/
catkin_make fails
Thu, 18 Apr 2013 07:09:14 -0500
Hi,
I get an
ImportError: "from catkin_pkg.package import parse_package" failed: No module named workspaces Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
The same package compiles on another computer. The suggestions from [0] didn't work for me, any ideas?
PYTHONPATH: /opt/ros/groovy/lib/python2.7/dist-packages
$ dpkg -L python-catkin-pkg
/.
/usr
/usr/bin
/usr/bin/catkin_create_pkg
/usr/share
/usr/share/python-support
/usr/share/python-support/python-catkin-pkg.public
/usr/share/pyshared
/usr/share/pyshared/catkin_pkg
/usr/share/pyshared/catkin_pkg/package.py
/usr/share/pyshared/catkin_pkg/packages.py
/usr/share/pyshared/catkin_pkg/package_templates.py
/usr/share/pyshared/catkin_pkg/__init__.py
/usr/share/pyshared/catkin_pkg/topological_order.py
/usr/share/pyshared/catkin_pkg-0.1.4.egg-info
/usr/share/doc
/usr/share/doc/python-catkin-pkg
/usr/share/doc/python-catkin-pkg/changelog.Debian.gz
$ python -c 'import catkin_pkg; print(catkin_pkg.__file__)'
/usr/lib/pymodules/python2.7/catkin_pkg/__init__.pyc
Many thanks!
[0] http://answers.ros.org/question/56873/problem-with-catkin_make/
http://answers.ros.org/question/61027/catkin_make-fails/
ros_desktop OS X Build Issue
Tue, 16 Apr 2013 08:22:08 -0500
I would like to build everything required to run rviz on my OS 10.8.3 machine. I followed the instructions here: [http://www.ros.org/wiki/groovy/Installation/OSX/MacPorts/Source](http://www.ros.org/wiki/groovy/Installation/OSX/MacPorts/Source) ...except that I changed *ros_comm* to *desktop* in the *wstool* command. When I run the prescribed *cmake* command, I get this output:
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/groovy -DSETUPTOOLS_DEB_LAYOUT=OFF -- Using CATKIN_DEVEL_PREFIX: /Users/ayrton/ros_catkin_ws/src/build/devel -- Using CMAKE_PREFIX_PATH: -- Found gtest: gtests will be built CMake Warning at catkin/cmake/test/nosetests.cmake:90 (message): nosetests not found, Python tests can not be run (try installing package 'python-nose') Call Stack (most recent call first): catkin/cmake/all.cmake:133 (include) CMakeLists.txt:12 (include) -- Using CATKIN_TEST_RESULTS_DIR: /Users/ayrton/ros_catkin_ws/src/build/test_results -- catkin 0.5.65 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 156 packages in topological order: -- ~~ - angles -- ~~ - bond_core (metapackage) WARNING: The metapackage 'bond_core' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/bond_core/CMakeLists.txt -- ~~ - common_msgs (metapackage) WARNING: The metapackage 'common_msgs' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/common_msgs/CMakeLists.txt -- ~~ - console_bridge -- ~~ - class_loader -- ~~ - convex_decomposition -- ~~ - cpp_common -- ~~ - diagnostics (metapackage) WARNING: The metapackage 'diagnostics' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/diagnostics/CMakeLists.txt -- ~~ - driver_common (metapackage) WARNING: The metapackage 'driver_common' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/driver_common/CMakeLists.txt -- ~~ - genmsg -- ~~ - gencpp -- ~~ - genlisp -- ~~ - genpy -- ~~ - geometry (metapackage) WARNING: The metapackage 'geometry' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/geometry/CMakeLists.txt -- ~~ - geometry_experimental (metapackage) WARNING: The metapackage 'geometry_experimental' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/geometry_experimental/CMakeLists.txt -- ~~ - image_common (metapackage) WARNING: The metapackage 'image_common' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/image_common/CMakeLists.txt -- ~~ - ivcon -- ~~ - kdl (metapackage) WARNING: The metapackage 'kdl' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/kdl/CMakeLists.txt -- ~~ - message_generation -- ~~ - message_runtime -- ~~ - mk -- ~~ - nodelet_core (metapackage) WARNING: The metapackage 'nodelet_core' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/nodelet_core/CMakeLists.txt -- ~~ - opencv2 (plain cmake) -- ~~ - orocos_kdl -- ~~ - orocos_kinematics_dynamics (metapackage) WARNING: The metapackage 'orocos_kinematics_dynamics' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/orocos_kinematics_dynamics/CMakeLists.txt -- ~~ - python_orocos_kdl -- ~~ - qt_dotgraph -- ~~ - qt_gui -- ~~ - qt_gui_app -- ~~ - qt_gui_core (metapackage) -- ~~ - qt_gui_py_common -- ~~ - ros (metapackage) -- ~~ - ros_comm (metapackage) -- ~~ - ros_tutorials (metapackage) -- ~~ - rosbash -- ~~ - rosboost_cfg -- ~~ - rosbuild -- ~~ - rosclean -- ~~ - roscpp_traits -- ~~ - roscreate -- ~~ - rosgraph -- ~~ - roslang -- ~~ - roslaunch -- ~~ - rosmake -- ~~ - rosmaster -- ~~ - rosmsg -- ~~ - rospack -- ~~ - roslib -- ~~ - rosparam -- ~~ - rospy -- ~~ - rosservice -- ~~ - rostime -- ~~ - roscpp_serialization -- ~~ - python_qt_binding -- ~~ - rosunit -- ~~ - rosconsole -- ~~ - pluginlib -- ~~ - qt_gui_cpp -- ~~ - resource_retriever -- ~~ - rosconsole_bridge -- ~~ - rostest -- ~~ - rqt_action -- ~~ - rqt_bag -- ~~ - rqt_bag_plugins -- ~~ - rqt_common_plugins (metapackage) -- ~~ - rqt_console -- ~~ - rqt_dep -- ~~ - rqt_graph -- ~~ - rqt_gui -- ~~ - rqt_logger_level -- ~~ - rqt_msg -- ~~ - rqt_plot -- ~~ - rqt_publisher -- ~~ - rqt_py_common -- ~~ - rqt_py_console -- ~~ - rqt_reconfigure -- ~~ - rqt_service_caller -- ~~ - rqt_shell -- ~~ - rqt_srv -- ~~ - rqt_topic -- ~~ - rqt_web -- ~~ - smclib -- ~~ - std_msgs -- ~~ - actionlib_msgs -- ~~ - bond -- ~~ - diagnostic_msgs -- ~~ - geometry_msgs -- ~~ - eigen_conversions -- ~~ - kdl_conversions -- ~~ - nav_msgs -- ~~ - rosgraph_msgs -- ~~ - bondpy -- ~~ - diagnostic_common_diagnostics -- ~~ - rqt_gui_py -- ~~ - sensor_msgs -- ~~ - camera_calibration_parsers -- ~~ - cv_bridge -- ~~ - image_geometry -- ~~ - shape_msgs -- ~~ - std_srvs -- ~~ - stereo_msgs -- ~~ - tf2_msgs -- ~~ - trajectory_msgs -- ~~ - urdfdom_headers -- ~~ - srdfdom -- ~~ - srdf -- ~~ - urdfdom -- ~~ - urdf_interface -- ~~ - urdf_parser -- ~~ - vision_opencv (metapackage) WARNING: The metapackage 'vision_opencv' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/vision_opencv/CMakeLists.txt -- ~~ - visualization_msgs -- ~~ - xmlrpcpp -- ~~ - roscpp -- ~~ - bondcpp -- ~~ - collada_parser -- ~~ - dynamic_reconfigure -- ~~ - nodelet -- ~~ - roscpp_tutorials -- ~~ - rosout -- ~~ - actionlib -- ~~ - diagnostic_aggregator -- ~~ - diagnostic_updater -- ~~ - message_filters -- ~~ - image_transport -- ~~ - camera_info_manager -- ~~ - polled_camera -- ~~ - rosnode -- ~~ - rospy_tutorials -- ~~ - rostopic -- ~~ - roswtf -- ~~ - rqt_gui_cpp -- ~~ - rqt_image_view -- ~~ - self_test -- ~~ - tf -- ~~ - laser_geometry -- ~~ - tf2 -- ~~ - tf2_ros -- ~~ - tf2_geometry_msgs -- ~~ - tf2_kdl -- ~~ - tf2_tools -- ~~ - tf_conversions -- ~~ - timestamp_tools -- ~~ - topic_tools -- ~~ - rosbag -- ~~ - diagnostic_analysis -- ~~ - driver_base -- ~~ - interactive_markers -- ~~ - nodelet_topic_tools -- ~~ - rqt_launch -- ~~ - turtlesim -- ~~ - urdf -- ~~ - collada_urdf -- ~~ - kdl_parser -- ~~ - robot_model (metapackage) WARNING: The metapackage 'robot_model' has no CMakeLists.txt. Please add one to the package source. You can use the following file: /Users/ayrton/ros_catkin_ws/src/build/catkin_generated/metapackages/robot_model/CMakeLists.txt -- ~~ - robot_state_publisher -- ~~ - rviz -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CMake Error at catkin/cmake/catkin_workspace.cmake:88 (message): This workspace contains non-catkin packages in it, and catkin cannot build a non-homogeneous workspace without isolation. Call Stack (most recent call first): CMakeLists.txt:48 (catkin_workspace)My questions are: 1. Is it the case that there are non-catkin ported packages in groovy? 2. If so, which ones? Can I exclude them from the build? 3. If I instead follow the tutorial exactly and only pull down ros_comm, what can I do to merge in only those packages that I need to build rviz?






