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

node outside catkin workspace

asked 2015-09-16 15:15:16 -0500

arennuit gravatar image

Hi everybody,

I have a complex application in which I would like to integrate ROS, so as to make a ros node out of it an be able to send messages, call services...

This application is complex and heavy and would not fit well in a catkin workspace (a silly refactoring would be needed). Actually ROS is not very central in this specific application and thus integrating ROS should not require a heavy reorganisation (such as putting the codebase in a catkin workspace).

Is there a way to integrate ROS in an application outside of the catkin workspace? I guess most complex software willing to integrate ROS have the same issue...

Thanks,

Antoine.

edit retag flag offensive close merge delete

Comments

Interesting... Can I generate the custom messages in a separate package inside catkin and use the generated msg from my complex application?

arennuit gravatar image arennuit  ( 2015-09-17 02:34:56 -0500 )edit

Probably yes. Putting messages into a separate package is the recommended practice, anyway. http://docs.ros.org/api/catkin/html/h... .

joq gravatar image joq  ( 2015-09-17 12:31:03 -0500 )edit

(moved to answer)

William gravatar image William  ( 2015-09-17 12:59:37 -0500 )edit

I converted my comments to an answer.

William gravatar image William  ( 2015-09-17 13:00:45 -0500 )edit

@arennuit can you please provide a sample listener which is outside of catkin workspace ?

babu gravatar image babu  ( 2017-03-13 13:43:15 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-09-16 15:35:43 -0500

William gravatar image

updated 2015-09-17 13:01:29 -0500

If it is a CMake project you can just find_package(roscpp REQUIRED), find_package(std_msgs REQUIRED), and so on. Then use the resulting _INCLUDE_DIRS and _LIBRARIES CMake variables to integrate it into your project. You'll start to have issues when you want to generate custom messages.

From @arennuit

Interesting... Can I generate the custom messages in a separate package inside catkin and use the generated msg from my complex application?

Sure. The reason the messages need to be generated within a catkin package is that the fully qualified name of messages includes the package they are from. Other than message, service, action, and dynamic reconfigure generation, the rest (I think) can be done outside of a catkin package.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-09-16 15:15:16 -0500

Seen: 1,363 times

Last updated: Sep 17 '15