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

How to link against API package in ROS from a catkin package (as a user application)

asked 2014-12-02 19:39:52 -0500

A.M Dynamics gravatar image

updated 2014-12-04 14:45:08 -0500

Hello all,

I am working on KUKA youbot. To drive this robot I have to use an API package provided by Kuka. To use this APIs I need to make a ROS based user application (A ros package) which links against the API package.

The API package contains other packages and folders such as 'lib'(including libsoem.a , libYouBotDriver.a and libYouBotDriver.so ), 'config', 'build', 'bin', 'soem'... My problem is that I don't know how to link my user application (the main package) to this API package? I use catkin workspace for making the main package. Later I will expand my package by applying other packages such as kinect camera to receive some data and command the youbot from main package and APIs to control it.

At this step I would appreciate it if you tell how I can link a ros package (a user application) against a package contains some APIs which can control the movements of the robot.

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-12-02 21:32:43 -0500

ahendrix gravatar image

The manufacturer's documentation should describe how to link against their package.

If you're trying to link a catkin package against another catkin package, you can simply add that package as a dependency in your package.xml and add it as a component to find_package(catkin REQUIRED COMPONENTS ...) in your cmakelists.

If you're trying to link a catkin package against a system package, you should look into the cmake find_package() command.

It looks like there are already ROS wrappers for the youbot; you might want to check those out as well: http://wiki.ros.org/youbot_driver and http://wiki.ros.org/youbot_common

edit flag offensive delete link more

Comments

Thanks for your answer. Would you please tell me briefly what a system package is and how do I discriminate a system package with a catkin package? Dose a system package is the same as a repository

A.M Dynamics gravatar image A.M Dynamics  ( 2014-12-03 20:58:33 -0500 )edit
1

A system package is a package that is outside of the ROS ecosystem; boost and libsensors are both examples of system packages.

ahendrix gravatar image ahendrix  ( 2014-12-04 00:14:23 -0500 )edit

Thanks for helping me but I am facing with this error: [rosrun] Couldn't find executable named node_pkg/main.ccp. I explained my problem in this topic: http://answers.ros.org/question/19927...

A.M Dynamics gravatar image A.M Dynamics  ( 2014-12-12 13:59:37 -0500 )edit

unfortunately, The manufacturer's documentation does not describe how to link against their package.

A.M Dynamics gravatar image A.M Dynamics  ( 2014-12-12 14:00:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-12-02 19:39:52 -0500

Seen: 299 times

Last updated: Dec 04 '14