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>
|
|
|
|
|
#include "rtabmap/RtabmapInfo.h"
|
|
|
|
|
#include "rtabmap/RtabmapInfoEx.h"
|
|
|
|
|
#include "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:
|
|
|
|
|
void infoReceivedCallback(const rtabmap::RtabmapInfoConstPtr & infoMsg);
|
2012-06-24 17:19:34 +00:00
|
|
|
void velocityReceivedCallback(const geometry_msgs::TwistStampedConstPtr & msg);
|
2011-06-20 16:49:22 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
ros::Subscriber infoTopic_;
|
2012-03-03 01:46:30 +00:00
|
|
|
ros::Subscriber velocity_sub_;
|
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_ */
|