ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2016-03-16 10:48:19 -0500 | commented question | goal status in Callback in actionserver in C++ Hi, I am having the same issue, do you have a lead? |
2016-03-13 23:34:28 -0500 | received badge | ● Famous Question (source) |
2016-03-13 05:55:29 -0500 | received badge | ● Notable Question (source) |
2016-03-13 05:55:29 -0500 | received badge | ● Popular Question (source) |
2016-03-13 05:55:14 -0500 | answered a question | Is jni supported in roscpp indigo? JNI is supported since my code is writen in C++. To get it to work I added to the CMakeLists: set(CMAKE_CXX_FLAGS "-L /usr/java/jdk1.7.0_79/jre/lib/amd64/server/ -I /usr/java/jdk1.7.0_79/include/ -I /usr/java/jdk1.7.0_79/include/linux/ -ljvm -std=c++0x") SET(CMAKE_CXX_COMPILER "/usr/bin/g++") set(JAVA_COMPILE "/usr/java/jdk1.7.0_79/bin") find_package(Java REQUIRED) find_package(JNI REQUIRED) if (JNI_FOUND) message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}") message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}") endif() include(UseJava) |
2016-02-10 04:23:18 -0500 | asked a question | Is jni supported in roscpp indigo? I am writing a node in C++ which communicates with Java code. I think the most elegant way to do this is by using JNI. Is jni supported in roscpp indego? Can anyone point me to a tutorial or example? Thanks! |