Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to be a ROS-agnostic pure-CMake package #12

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

schornakj
Copy link
Contributor

@schornakj schornakj commented Sep 14, 2020

I've been using this package for a variety of ROS 2 projects. It ended up being fairly straightforward to convert the package to be a non-ROS pure-CMake package, which lets us use the package in both ROS and ROS 2 projects. I also modified it to follow "modern" CMake conventions, such as exporting a gl_depth_sim::gl_depth_sim target that downstream projects can conveniently link against.

The main thing that breaks is the camera_ros_example.cpp demo, since it fundamentally requires a ROS node. If we want to keep that demo we could create optional sub-packages that are conditionally built depending on the detected ROS version, like the ros_scxml project does for its demos.

@schornakj
Copy link
Contributor Author

Clearly I'll need to make some changes to help CI succeed.

@marip8
Copy link
Collaborator

marip8 commented Sep 14, 2020

Can I merge #11 before you complete this?

@schornakj
Copy link
Contributor Author

Can I merge #11 before you complete this?

I think that makes sense. There's certainly some overlap between the two PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants