Ask Your Question

Korken89's profile - activity

2017-10-02 07:09:28 -0500 received badge  Famous Question (source)
2016-10-12 22:04:51 -0500 received badge  Notable Question (source)
2016-10-12 22:04:51 -0500 received badge  Popular Question (source)
2016-07-28 05:37:13 -0500 received badge  Famous Question (source)
2016-07-28 05:37:12 -0500 received badge  Student (source)
2016-06-08 01:51:40 -0500 received badge  Popular Question (source)
2016-06-08 01:51:40 -0500 received badge  Famous Question (source)
2016-06-08 01:51:40 -0500 received badge  Notable Question (source)
2016-02-13 10:32:23 -0500 commented answer ROS Indigo in Arch, python3 compatibility problems - fixes?

Thank you for taking the time! I did try a lot and found what was missing, but in the end it was too much of a hassle to get it working correctly with Python 3. For now, until ROS 2 is ready, I will have to stay with Python 2.

2016-02-12 15:46:52 -0500 asked a question ROS Indigo in Arch, python3 compatibility problems - fixes?

Hi all!

I am running ROS on arch linux for a while by "breaking" their standard and forcing python2 to be the default (from python3), but now I have been trying to get ROS running with python3. I have, after some problems, gotten most stuff working but some things I cannot quite figure out how to fix in a good way.

One error I have when trying to start a ROS core is "ImportError: No module named rosmaster.master_api". This comes from ROS only setting the python path for python3 (/opt/ros/indigo/lib/python3.5/site-packages/), what is the recommended way to fix this as I'd like to not mix 2.7 and 3.5.

Is there a way to do this? As in ROS Indigo it should work with python3 ( http://wiki.ros.org/indigo/Migration ).

Thanks!

2016-02-03 08:24:32 -0500 asked a question No debug symbols for library used by package

Hi all,

I have a debug problem with ROS, my setup is like this: I have in my workspace: MyPackage and MyLibrary as 2 ros packages. MyPackage is dependent on MyLibrary and the library is linked to MyPackage correctly. When compiling with debug symbols (-DCMAKE_BUILD_TYPE=Debug) and launching the ROS node "MyPackage" in GDB, the symbols for MyPackage are loaded but not for MyLibrary, so I cannot break in any function that is in side the library.

So my question is, how can I get the debug symbols for the library to be loaded as well when my node is linked with the library? All files (.cpp / .h) are available in the "MyLibrary" so there are no "hidden" binaries.

Thanks for the assistance!

edit: More specifically, the shared library is not loaded by GDB, and the libraryfile cannot be found using the sharedlibrary command. Even when the search path to the specific directory with the library is specified.

2015-12-22 07:21:25 -0500 received badge  Supporter (source)
2015-12-22 07:21:20 -0500 received badge  Scholar (source)
2015-12-22 07:21:16 -0500 commented answer Library includes are not copied properly at compile

Thank you for explaining that! I am mostly only using CMake by itself and not with catkin as a build system, so the internal workings of the system is under learning. :) Thanks again for clearing this for me!

2015-12-21 11:23:38 -0500 commented answer Library includes are not copied properly at compile

I have added the error log. Hope it helps!

2015-12-21 11:23:16 -0500 received badge  Editor (source)
2015-12-21 09:51:52 -0500 received badge  Notable Question (source)
2015-12-21 06:09:01 -0500 commented answer Library includes are not copied properly at compile

I have updated the original question to describe the background problem. Thanks for the help!

2015-12-21 06:03:14 -0500 received badge  Popular Question (source)
2015-12-21 05:31:52 -0500 commented answer Library includes are not copied properly at compile

I have this impression as I am not trying to install, just compiling the package for local use to my workspace. As I understood it, which might not be correct, is the install is only used when installing to the ROS libraries for permanent usage. Am I completely of here?

2015-12-20 16:24:18 -0500 asked a question Library includes are not copied properly at compile

Hi all,

I have been compiling a library and made it ROS compatible - and everything works except that the includes are not copied to the devel/lib/PACKAGE folder.

I have added: include_directories(${catkin_INCLUDE_DIRS} include) and catkin_package( DEPENDS pthread INCLUDE_DIRS ${catkin_INCLUDE_DIRS} include LIBRARIES ${PROJECT_NAME} ... )

Which according to here should be enough: http://docs.ros.org/api/catkin/html/h...

What am I missing to get the includes copied to have them included?

Full CMake files here: https://gitlab.com/korken89/cppViconS...

Thanks for all help!

EDIT:

To give a better background to my problem, what problem I am having (and am trying to fix) is that the headers for my library are not found at compile time for the packages dependent on my library. And the catkin looks in the devel/lib/PKG folder for the .so file and the headers, but the headers are not there, hence the previous question.

Am I looking to this problem in the wrong way for using custom libraries as packages?

EDIT2:

As requested, the build logg. Hope it helps!

/home/emifre/Git/ros_ws/devel_ws/src/ros_viconstream/src/ros_viconstream_node.cpp:2:37: fatal error: viconstream/viconstream.h: No such file or directory
compilation terminated.
CMakeFiles/ros_viconstream_node.dir/build.make:62: recipe for target 'CMakeFiles/ros_viconstream_node.dir/src/ros_viconstream_node.cpp.o' failed
make[2]: *** [CMakeFiles/ros_viconstream_node.dir/src/ros_viconstream_node.cpp.o] Error 1
CMakeFiles/Makefile2:539: recipe for target 'CMakeFiles/ros_viconstream_node.dir/all' failed
make[1]: *** [CMakeFiles/ros_viconstream_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
[ros_viconstream] <== '/home/emifre/Git/ros_ws/devel_ws/build/ros_viconstream/build_env.sh /usr/bin/make --jobserver-fds=3,6 -j' failed with return code '2'

Failed   <== ros_viconstream [ 2.1 seconds ]                                                                                                                                                  
[build] There were '1' errors:                                                                                                                                                                

Failed to build package 'ros_viconstream' because the following command:

# Command to reproduce:
cd /home/emifre/Git/ros_ws/devel_ws/build/ros_viconstream && /home/emifre/Git/ros_ws/devel_ws/build/ros_viconstream/build_env.sh /usr/bin/make --jobserver-fds=3,6 -j; cd -

# Path to log:
cat /home/emifre/Git/ros_ws/devel_ws/build/build_logs/ros_viconstream.log

Exited with return code: 2