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

Revision history [back]

click to hide/show revision 1
initial version

libsegwayrmp is not a catkin package. Therefore it does not require a pkg-config. There are find_package files provided by libsegwayrmp for depending projects to find and use it:

find_package(libsegwayrmp REQUIRED)

...

include_directories(${libsegwayrmp_INCLUDE_DIRS})

...

target_link_libraries(my_executable ${libsegwayrmp_LIBRARIES})

You can see the (simplistic) implementation file here:

https://github.com/segwayrmp/libsegwayrmp/blob/master/cmake/Findsegwayrmp.cmake

That being said it would be nice to have pkg-config files for libsegwayrmp.

libsegwayrmp is not a catkin package. Therefore it does not require a pkg-config. There are find_package files provided by libsegwayrmp for depending projects to find and use it:

find_package(libsegwayrmp REQUIRED)

...

include_directories(${libsegwayrmp_INCLUDE_DIRS})

...

target_link_libraries(my_executable ${libsegwayrmp_LIBRARIES})

You can see the (simplistic) implementation file here:

https://github.com/segwayrmp/libsegwayrmp/blob/master/cmake/Findsegwayrmp.cmake

That being said it would be nice to have pkg-config files for libsegwayrmp.

Update:

Yes, a rosbuild package can depend on a plain CMake project. You just have to treat libsegwayrmp like you would any other third party library (Boost, Eigen, VTK). You should not list libsegwayrmp as a ros package dependency, but rather as a rosdep dependency.

libsegwayrmp is not a catkin package. Therefore it does not require a pkg-config. There are find_package files provided by libsegwayrmp for depending projects to find and use it:

find_package(libsegwayrmp REQUIRED)

...

include_directories(${libsegwayrmp_INCLUDE_DIRS})

...

target_link_libraries(my_executable ${libsegwayrmp_LIBRARIES})

You can see the (simplistic) implementation file here:

https://github.com/segwayrmp/libsegwayrmp/blob/master/cmake/Findsegwayrmp.cmake

That being said it would be nice to have pkg-config files for libsegwayrmp.

Update:

Yes, a rosbuild package can depend on a plain CMake project. You just have to treat libsegwayrmp like you would any other third party library (Boost, Eigen, VTK). You should not list libsegwayrmp as a ros package dependency, but rather as a rosdep dependency.

Update2:

However, to remain backwards compatible (preventing a need to change segway_rmpx) would be to add pkg-config files to libsegwayrmp. I forgot until now that REP-0136 has a note about this:

http://ros.org/reps/rep-0136.html#backwards-compatibility