Use ROS libraries in a non-ROS project
I have been working on a large project which uses OpenCV and Boost libraries (not using ROS). Now my manager asked me to include ROS libraries into the project. The only use for ROS will be to send and receive messages within a single robot. I will need to receive an operation code and send a respond. I was wondering if there is a way to configure a ROS project with only a "talker" and "listener" and then somehow include these in my main project and use them there? This could be the best way, another option is to compile my whole project using ROS (add all the libraries and dependencies) but I have tried this many times and I get multiple errors. Another way I thought would be creating a class inside my project which will use the terminal read/write from/to a topic.. Is the first option possible? Thanks!