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

Revision history [back]

click to hide/show revision 1
initial version

Ok, i think this is the right way! Thank you. Now I have one last question (i know it could be the last because i tried it): To use prolog via code, first of all i need to initialize the prolog engine

PlEngine e("a.out")

passing it the "a.out" file produced by the swipl-ld compilation. Then, i can produce this file by compiling another project (oh yeah, another totally different from my ROS node), by putting this file in the ROS node directory and by using it to initialize the engine. This works (it seems, now i'm testing hard this solution), but... ...it is a non conventional solution. What i would like to have is the compilation of the ROS node producing the a.out file (or something similar...by compiling first the ROS node with swipl-ld - this rises a problem of resource linking).