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

jensenb's profile - activity

2020-11-22 03:01:51 -0500 received badge  Nice Answer (source)
2015-12-11 08:56:39 -0500 received badge  Nice Answer (source)
2014-08-05 09:04:17 -0500 commented answer Building ROS on OSX 10.9 (solution)

Should I make another edit of the post for clarity?

2014-07-17 15:33:42 -0500 answered a question Problem with robotino_node (state_publisher & URDF)

The issue was resolved, turns out there was another robotino_node package on the path that was resolved first, and this incorrect robotino_node package had an incorrect launch file. Take away lesson: always check the ROS_PACKAGE_PATH.

2014-04-08 21:34:50 -0500 commented answer Building ROS on OSX 10.9 (solution)

Just out of curiosity, can you run "python -c 'import sipconfig' " from the command line and check if you also get an error? In general looks like you have PYTHONPATH issues. I also suggest you open a new question for the issue, since it's not intrinsic to OS X 10.9 support

2014-04-08 11:22:57 -0500 commented answer Building ROS on OSX 10.9 (solution)

@JetForMe your pastebin links are invalid, can you update them?

2014-03-16 22:56:22 -0500 commented answer Building ROS on OSX 10.9 (solution)

@demmeln, @Artem: You are right after all, I had not updated my rosinstall_generator for a while and so I didn't see the package regrouping, my mistake. I have updated the answer accordingly.

2014-03-12 11:26:55 -0500 commented answer Building ROS on OSX 10.9 (solution)

You can also do the same thing for the WS_DIR/src/robot_model directory. If all else fails, simply create a new separate ROS workspace and follow the current Hydro installation instructions again, and the steps above should cover all the current build issues.

2014-03-12 11:22:00 -0500 commented answer Building ROS on OSX 10.9 (solution)

The warning means you already applied the first change, meaning you have the orocos_kdl upstream version per the previous instructions. If you delete this directory from WS_DIR/src and do 'wstool update -t WD_DIR/src', you should get a clean copy and so that you can apply the steps from the answer.

2014-03-12 05:37:14 -0500 commented answer Building ROS on OSX 10.9 (solution)

Take a look at the patch files in your browser and you will see what I mean.

2014-03-12 05:36:42 -0500 commented answer Building ROS on OSX 10.9 (solution)

No I am pretty sure the instructions are correct. The pull request patches are relative to the host repository, and since both orocos_kdl and robot_model are split so that each subdir becomes a new repository root, the patches have to be applied to WS_DIR/src and not one level deeper.

2014-02-25 08:02:41 -0500 commented answer Building ROS on OSX 10.9 (solution)

@William I Understand, my mistake. But in general if you follow the installation guide on the wiki wstool will checkout git repositories released using bloom, right?

2014-02-24 20:07:32 -0500 commented answer Building ROS on OSX 10.9 (solution)

How did you create your hydro workspace? The error message indicates orocos_kdl was not checked out from source with wstool.

2014-02-03 21:30:24 -0500 received badge  Enthusiast
2014-02-03 10:13:50 -0500 received badge  Student (source)
2014-02-03 10:13:45 -0500 received badge  Self-Learner (source)
2014-01-29 19:07:45 -0500 received badge  Guru (source)
2014-01-29 19:07:45 -0500 received badge  Great Answer (source)
2014-01-28 17:29:50 -0500 marked best answer Groovy RVIZ build fails on OS X

I am having a problem building groovy from source on OS X 10.8.3 using homebrew. The RVIZ catkiin package fails to build the python bindings with the following error message:

==> Processing catkin package: 'rviz'
==> Building with env: '/Users/brian/ros_catkin_ws/install_isolated/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/Users/brian/ros_catkin_ws/build_isolated/rviz'
==> make -j2 -l2 in '/Users/brian/ros_catkin_ws/build_isolated/rviz'
Linking CXX shared library /Users/brian/ros_catkin_ws/devel_isolated/rviz/lib/librviz.dylib
[ 60%] Built target rviz
Linking CXX executable /Users/brian/ros_catkin_ws/devel_isolated/rviz/lib/rviz/rviz
[ 61%] Built target executable
Linking CXX shared library /Users/brian/ros_catkin_ws/devel_isolated/rviz/lib/libdefault_plugin.dylib
[ 93%] Built target default_plugin 
Linking CXX executable /Users/brian/ros_catkin_ws/devel_isolated/rviz/lib/rviz/image_view
[ 94%] Built target rviz_image_view
[ 94%] Running Shiboken generator for librviz Python bindings...
./QtCore.framework/Headers/QtCore
/Users/brian/ros_catkin_ws/src/rviz/src/QtCore.framework/Headers/QtCore
....
    enum 'QRegExp::CaretMode' is specified in typesystem, but not declared
type 'QFileOpenEvent' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
type 'QPyTextObject' is specified in typesystem, but not defined. This could potentially lead to compilation errors.
enum 'QDateTimeEdit::Section' is specified in typesystem, but not declared

Could not find a minimal constructor for type 'QPixmap'. This will result in a compilation error.

/bin/sh: line 1:  8180 Abort trap: 6           /usr/local/Cellar/shiboken/1.1.2/bin/shiboken --  generatorSet=shiboken --include-paths=/Users/brian/ros_catkin_ws/src/rviz/src::/usr/include:/Library/Frameworks/QtCore.framework --typesystem-paths=/usr/local/Cellar/pyside/1.1.2/share/PySide/typesystems --output-directory=/Users/brian/ros_catkin_ws/build_isolated/rviz/src/python_bindings/shiboken global.h typesystem.xml
make[2]: *** [src/python_bindings/shiboken/librviz_shiboken/librviz_shiboken_module_wrapper.cpp]    Error 134
make[1]: *** [src/python_bindings/shiboken/CMakeFiles/rviz_shiboken.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 3 jobserver tokens available; should be 2!

<== Failed to process package 'rviz': 
Command '/Users/brian/ros_catkin_ws/install_isolated/env.sh make -j2 -l2' returned non-zero exit status 2

Could this be a problem with my installed shiboken / pyside version (1.1.2)? Any other suggestion or idea what might be causing the problem?

2013-12-31 23:46:58 -0500 received badge  Commentator
2013-12-31 23:46:58 -0500 commented answer link c code with c++ ROS code

Please do not answers to your question that are not answers but further questions. Instead either edit your original question, or post a comment to my answer. You should delete this post.

2013-12-31 04:30:31 -0500 answered a question link c code with c++ ROS code

To answer your last question, you do not necessarily need to compile your standalone (in the sense of ROS independent) c code within catkin. It is pretty straight forward to compile your c code as a shared or static library, and then link your ROS node to it using the standard CMake syntax (by adding your c library to target_link_libraries(...) for example).

To address your linker errors. You are not missing header files, you are improperly specify the libraries to link to and the library search paths. Remember that "-L" specifies the search path, and the "-l" specifies the library name (preferably without path and without ending). For object files ".o" you do not need the "-l" flag prefix. you are missing lots of opencv libraries in command, you can try adding "-lopencv_core" and "-lcv_bridge -limage_transport" to take care of the missing OpenCV and OpenCV binding symbols.

But I highly recommend you use the cakin for building and integrating your ROS code, and not to build things by hand.

EDIT: Responding to your further comments, you are using the CMake commands incorrectly. To create your library and link to it in CMake you should use:

add_library(upd_to_ros SHARED src/upd_to_ros3.cpp) #add the source files for your "external" library code here
add_executable(imageconv_node src/ros_cpp.cpp )
target_link_libraries(imageconv_node 
    upd_to_ros
    ${catkin_LIBRARIES} 
)

Note that your ROS node imageconv_node declared in your CMakeLists.txt will need a typical main function, and it is bad practice to hard code full paths in a CMakeLists.txt.

2013-12-27 20:59:45 -0500 commented answer Error compiling eigen_msg on OSX 10.9

I have not had a problem similar to that, sounds like something related to the image transport is broken.

2013-12-26 19:50:48 -0500 received badge  Nice Answer (source)
2013-12-25 07:45:06 -0500 received badge  Nice Answer (source)
2013-12-24 21:00:13 -0500 answered a question Error compiling eigen_msg on OSX 10.9

The issue you are seeing is caused by a problem in the roscpp_core upstream package and has been disused and fixed in https://github.com/ros/roscpp_core/pull/15. Unfortunately an updated release of this package has not been created for hydro, so you will have to make the change to package by hand.

cd <path to="" ros="" workspace="">/src/roscpp_traits/include/ros curl https://raw.github.com/ros/roscpp_core/8292898d4a90ecc8cf3d42c5ce4e51e14b02a8db/roscpp_traits/include/ros/message_forward.h -o message_forward.h

Here <path to="" ros="" workspace=""> is the path of your ros workspace.

2013-12-24 20:26:36 -0500 answered a question Installing pyqwt on Mavericks

The current release version of PyQt (4.10.3) has some issues with libc++/clang build settings necessary for Mavericks. Basically PyQt incorrectly parses the QMake build settings that were used to build Qt, resulting in incorrect build flags being generated for PyQt interoperable projects. There is a fix proposed for homebrew here: https://github.com/Homebrew/homebrew/pull/25225 and for PyQt here: http://www.riverbankcomputing.com/pipermail/pyqt/2013-December/033537.html

brew install <a href="https://raw.github.com/jensenb/homebrew/76e8bf65dccdeeb785ca2f296ac2458460ba2fde/Library/Formula/pyqt.rb">https://raw.github.com/jensenb/homebrew/76e8bf65dccdeeb785ca2f296ac2458460ba2fde/Library/Formula/pyqt.rb</a>
2013-12-21 06:33:36 -0500 commented answer Current recommended installation for MacBook Pro? (OS X 10.9)

I also agree with Hansg91. While most of the issues with hydro on OS X have been resolved, not all have been released (so you will still need to patch the packages by hand), and some packages like Orocos KDL have no immediate solution in sight.

2013-12-03 23:29:04 -0500 commented answer Building ROS on OSX 10.9 (solution)

libc++ is used by default, but c++11 support is only active is your set the flag, not be default.

2013-12-02 01:39:19 -0500 commented answer rqt_reconfigure runtime error osx

To clarify I would the dynamic_reconfigure currently requires the source directory, from which it was installed, to persist even after it is installed. Upon starting dynamic reconfigure reads file its source directory, and not just from its installation location.

2013-11-29 09:38:00 -0500 commented question error when ./src/catkin/bin/catkin_make_isolated --install on OSX

So what exactly are you asking here?

2013-11-25 09:50:34 -0500 answered a question Uninstall ROS fully on OS X

You can use the following shell code to print out the commands that will remove all the known system dependencies installed for ROS packages:

rosdep db | awk '{if ($3) print $3}' | { while read package; do [ "$package" == "->" ] || (brew info $package &> /dev/null && echo "brew remove $package") || (pip list | grep $package &> /dev/null  && echo "pip uninstall $package") || echo "# $package is neither brew formula or a python package"; done; }

This will print out one line for each system dependency needed by ROS with the appropriate command for its removal. This does not actually remove the packages as I think this is unwise. Many system dependencies needed by ROS are likely also needed by other software on your system, so you need to evaluate on an individual package basis, what should be uninstalled.

The ROS python tools can be uninstall with:

pip uninstall wstool rosdep rosinstall rosinstall_generator rospkg catkin-pkg

Other than this your ROS installation should be self contained under your ROS workspace directory, or where ever you have placed your ROS installation.

2013-11-25 09:48:46 -0500 commented question error when ./src/catkin/bin/catkin_make_isolated --install on OSX

What version of OS X are you using? And can you post a gist of the full build log, not just the last snippet?

2013-11-24 04:05:43 -0500 received badge  Good Answer (source)
2013-11-24 04:05:43 -0500 received badge  Enlightened (source)
2013-11-20 20:49:48 -0500 commented answer Hydro from Mac OS X Homebrew: sudo pip install -U empy fails
2013-11-20 20:49:34 -0500 commented answer Hydro from Mac OS X Homebrew: sudo pip install -U empy fails

I should correct my previous statement. The easy_install command completed successfully, but it built and installed an egg package, which apparently is supported by catkin.

2013-11-14 21:10:56 -0500 received badge  Nice Answer (source)
2013-11-14 08:29:19 -0500 received badge  Editor (source)
2013-11-14 08:29:19 -0500 edited answer Building ROS on OSX 10.9 (solution)

Edit 5: These workarounds are no longer required. They are kept here purely for reference.

Some of the workarounds listed in this answer are no longer required as the changes have been merged into hydro. Below are the current workarounds still required to get ROS hydro working on Mavericks, suitable to both git and tar based rosinstall distributions.

OROCOS KDL Fix

There is a problem with OROCOS KDL API that is incompatible with libc++ and clang, discussed in more detail in PR 4 and PR 19. You will need to patch KDL source using both of these pull requests.

cd <ROS WORKSPACE DIR>/src/orocos_kinematics_dynamics
curl https://github.com/orocos/orocos_kinematics_dynamics/pull/4.patch | patch -p1
curl https://github.com/orocos/orocos_kinematics_dynamics/pull/19.patch | patch -p1
# it is not a problem if the following step fails
cd .. && rm -r build_isolated/orocos_kdl

You will also need to patch several dependent ROS packages. For the necessary robot model changes:

cd <ROS WORKSPACE DIR>/src/robot_model
curl https://github.com/ros/robot_model/pull/43.patch | patch -p1
# it is not a problem if the following step fails
cd .. && rm -r build_isolated/kdl_parser

for the necessary robot_state_publisher changes:

cd <ROS WORKSPACE DIR>/src/robot_state_publisher
curl https://github.com/ros/robot_state_publisher/pull/5.patch | patch -p1
# it is not a problem if the following step fails
cd ../.. && rm -r build_isolated /robot_state_publisher

OpenCV and Cuda

Currently OpenCV has issues when building with Cuda enabled, so you will have to disable it:

cd build_isolated/opencv/install
ccmake
# turn off the 'WITH_CUDA' flag and generate

Outdated workarounds no longer necessary

These workarounds are no longer necessary but I am keeping them here for historical reasons in case someone has an older workspace and doesn't want to update.

Prerequisite for any of the following steps is understanding how to checkout Github pull requests locally. The rest of these fixes are currently involve API breaking changes and are under review. I make no guarantees about their correctness, only that they should at least build on Mavericks. For all of the commands below I always your current working directory is your ROS workspace root (NOT src subdirectory).

Octomap Fix

For this particular octomap problem there is a fix committed upstream that should allow compilation with libc++ with Mavericks: https://github.com/OctoMap/octomap/pu... . Due to the way ROS packages things, mergeing this change in to the ROS octomap source in your hydro workspace involves a bit of hand work on the command line:

cd <path to your hydro workspace>/src/octomap
git remote upstream git@github.com:OctoMap/octomap.git
git fetch upstream
git checkout release/hydro/octomap/1.6.1-0
git cherry-pick b7aec9182e102da32f0f210197a55b827e0ae894
git cherry-pick 8a9722d0f479dcde680dc689e0d071e48bb32e99

Rebuild your catkin workspace and the octomap errors should go away.

ROSCPP Message Traits

There is a problem with the roscpp message forward declarations that is discussed in more detail here. The workaround:

cd src/roscpp_traits
curl -o include/ros/message_forward.h https://raw.github.com/ros/roscpp_core/e4dff32c8847f7e9e16b3aecebbbbaf7d84daf5a/roscpp_traits/include ...
(more)