Go to the documentation of this file.
8 #ifndef APP_ANDROID_JNI_PROGRESSIONSTATUS_H_
9 #define APP_ANDROID_JNI_PROGRESSIONSTATUS_H_
34 , jvm_(0), rtabmap_(0)
43 void setJavaObjects(JavaVM * jvm, jobject
rtabmap)
81 virtual bool callback(
const std::string & msg)
const
104 jint
rs = jvm_->AttachCurrentThread(&
env,
NULL);
105 if(
rs == JNI_OK &&
env)
107 jclass clazz =
env->GetObjectClass(rtabmap_);
110 jmethodID methodID =
env->GetMethodID(clazz,
"updateProgressionCallback",
"(II)V" );
113 env->CallVoidMethod(rtabmap_, methodID,
120 jvm_->DetachCurrentThread();
125 std::function<void()> actualCallback = [&](){
134 UERROR(
"Failed to call rtabmap::updateProgressionCallback");
void(* swiftCallback)(void *, int, int)
void registerToEventsManager()
virtual ~ProgressionStatus()
void setCanceled(bool canceled)
virtual bool callback(const std::string &msg) const
void increment(int count=1) const
virtual std::string getClassName() const =0
GLM_FUNC_DECL genType max(genType const &x, genType const &y)
virtual std::string getClassName() const
ProgressEvent(int count=1)
virtual bool handleEvent(UEvent *event)
ULogger class and convenient macros.
void setSwiftCallback(void *classPtr, void(*callback)(void *, int, int))
static void post(UEvent *event, bool async=true, const UEventsSender *sender=0)
virtual bool callback(const std::string &msg) const
rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:14