2011-06-20 16:49:22 +00:00
|
|
|
/*
|
|
|
|
|
* GuiWrapper.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 4 févr. 2010
|
|
|
|
|
* Author: labm2414
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef GUIWRAPPER_H_
|
|
|
|
|
#define GUIWRAPPER_H_
|
|
|
|
|
|
|
|
|
|
#include <ros/ros.h>
|
2012-12-11 18:05:05 +00:00
|
|
|
#include "rtabmap/InfoEx.h"
|
2013-04-30 20:25:52 +00:00
|
|
|
#include "rtabmap/utilite/UEventsHandler.h"
|
2012-06-24 17:19:34 +00:00
|
|
|
#include <geometry_msgs/TwistStamped.h>
|
2011-06-20 16:49:22 +00:00
|
|
|
|
|
|
|
|
namespace rtabmap
|
|
|
|
|
{
|
|
|
|
|
class MainWindow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class QApplication;
|
|
|
|
|
|
|
|
|
|
class GuiWrapper : public UEventsHandler
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
GuiWrapper(int & argc, char** argv);
|
|
|
|
|
virtual ~GuiWrapper();
|
|
|
|
|
|
|
|
|
|
int exec();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
virtual void handleEvent(UEvent * anEvent);
|
|
|
|
|
|
|
|
|
|
private:
|
2012-12-11 18:05:05 +00:00
|
|
|
void infoExReceivedCallback(const rtabmap::InfoExConstPtr & infoMsg);
|
2011-06-20 16:49:22 +00:00
|
|
|
|
|
|
|
|
private:
|
2012-12-11 18:05:05 +00:00
|
|
|
ros::Subscriber infoExTopic_;
|
2011-06-20 16:49:22 +00:00
|
|
|
QApplication * app_;
|
|
|
|
|
rtabmap::MainWindow * mainWindow_;
|
|
|
|
|
|
|
|
|
|
ros::ServiceClient resetMemoryClient_;
|
|
|
|
|
ros::ServiceClient dumpMemoryClient_;
|
|
|
|
|
ros::ServiceClient changeCameraImgRateClient_;
|
|
|
|
|
ros::ServiceClient deleteMemoryClient_;
|
|
|
|
|
ros::ServiceClient dumpPredictionClient_;
|
|
|
|
|
|
|
|
|
|
ros::Publisher parametersUpdatedPub_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* GUIWRAPPER_H_ */
|