What methods are there that I can use to run an ASP file from the main function of my C++ code?
I'm doing a project in which I am expected to control a simulated turtlebot using a C++ file, and use ASP code to construct an action plan that the robot can use to achieve a specified goal.
I'm using Ubuntu 14.04, SPARC (an ASP solver), ROS indigo, and gazebo.
Am I correct that SPARC is implemented in Java (this link)?
If this is the case, there are quite a few options:
Resume:
I would suggest you to try the last option. It's slightly more difficult than other 2 options, but it fits perfectly into ROS infrastructure.