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

can ament package depend on catkin package

asked 2018-01-09 10:47:27 -0500

jlack gravatar image

Is there any clean way of having an ament package depend on a catkin package if, say, their workspaces are different but maybe the ament workspace is an overlay on the catkin workspace? The main problem I think we're seeing is if the catkin package has system dependencies(on for example Boost), the ament package can't properly link all the libraries exported from the catkin package that would normally be available in ${catkin_LIBRARIES}

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-09 10:52:31 -0500

William gravatar image

I haven't tried it, but in theory, yes. ament is just a kind of cmake project, and there are examples of how to use ROS 1 (and therefore catkin) from plain cmake and/or with make:

https://github.com/gerkey/ros1_extern...

If you apply these principles, you should be able to build an ament package on top of a catkin workspace, though it's not a "supported" use case and the tools/documentation don't cover this case at all, at least that I am aware of.

edit flag offensive delete link more

Comments

Yeah I was just wondering about how to keep from manually having to link my dependencies dependencies libraries without depending on ${catkin_LIBRARIES}. I'm thinking maybe from the ament package I could use, ${catkin_pkg_name_LIBRARIES} and those should contain the correct libraries

jlack gravatar image jlack  ( 2018-01-09 10:59:08 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2018-01-09 10:47:27 -0500

Seen: 341 times

Last updated: Jan 09 '18