8 #ifndef APP_ANDROID_JNI_PROGRESSIONSTATUS_H_ 9 #define APP_ANDROID_JNI_PROGRESSIONSTATUS_H_ 32 registerToEventsManager();
66 virtual bool callback(
const std::string & msg)
const 88 jint
rs = jvm_->AttachCurrentThread(&env,
NULL);
89 if(rs == JNI_OK && env)
91 jclass clazz = env->GetObjectClass(rtabmap_);
94 jmethodID methodID = env->GetMethodID(clazz,
"updateProgressionCallback",
"(II)V" );
97 env->CallVoidMethod(rtabmap_, methodID,
104 jvm_->DetachCurrentThread();
108 UERROR(
"Failed to call rtabmap::updateProgressionCallback");
static void post(UEvent *event, bool async=true, const UEventsSender *sender=0)
ProgressEvent(int count=1)
virtual bool callback(const std::string &msg) const
virtual ~ProgressionStatus()
virtual std::string getClassName() const
virtual bool callback(const std::string &msg) const
virtual std::string getClassName() const =0
GLM_FUNC_DECL genType max(genType const &x, genType const &y)
void setJavaObjects(JavaVM *jvm, jobject rtabmap)
ULogger class and convenient macros.
virtual bool handleEvent(UEvent *event)
void increment(int count=1) const