39 #include <phidget21.h>
43 #include <ros/package.h>
45 #include <boost/asio.hpp>
46 #include <boost/bind.hpp>
47 #include <boost/thread.hpp>
49 #include <boost/property_tree/ptree.hpp>
50 #include <boost/property_tree/xml_parser.hpp>
51 #include <boost/foreach.hpp>
52 #include <boost/shared_ptr.hpp>
64 #include "opencv2/core/core.hpp"
66 #include <sys/types.h>
71 #include <gdk/gdkkeysyms.h>
83 int ErrorHandler(CPhidgetHandle IFK,
int ErrorCode,
const char *unknown);
85 void irHandler(boost::system::error_code
const& cError);
140 extern "C" void callback_about(GtkWidget * window, gpointer data) ;
146 extern "C" void delete_event(GtkWidget * window, GdkEvent * event, gpointer data) ;
int readFSRSensors()
FSR FUNCTIONS.
int readLCSensors()
LC FUNCTIONS.
void callback_opendialog_open(GtkWidget *widget, gpointer user_data)
void callback_back_function(GtkWidget *window, gpointer data)
Function to return to main window.
boost::asio::deadline_timer ir_timer
void callback_about(GtkWidget *window, gpointer data)
Function to open the about window.
void callback_opendialog_cancel(GtkWidget *widget, gpointer user_data)
void callback_new_config(GtkWidget *widget, gpointer user_data)
Function to start a new calibration.
void callback_load_config(GtkWidget *widget, gpointer user_data)
Function to load an existent calibration.
int ErrorHandler(CPhidgetHandle IFK, int ErrorCode, const char *unknown)
void callback_opendialog_save(GtkWidget *widget, gpointer user_data)
void highRateHandler(boost::system::error_code const &cError)
LC/FSR Handler - High rate 100Hz.
void delete_event(GtkWidget *window, GdkEvent *event, gpointer data)
Function to detect that you are leaving main window.
void irHandler(boost::system::error_code const &cError)
IR Handler - Low rate 40Hz.
int readIRSensors()
IR Sensor FUNCTIONS.
void callback_set_data(GtkWidget *widget, gpointer user_data)
Function with the instructions for the configuration.
boost::asio::deadline_timer high_rate_timer
CPhidgetInterfaceKitHandle ifKit
void callback_open_new(GtkWidget *widget, gpointer user_data)
Function to open the new calibration dialog.
PhidgetClass(boost::asio::io_service &io_service)
int calibrateFSRSensors()
gboolean real_time_monitor(gpointer progressbar)
Function to get the values in realtime for new config.
int AttachHandler(CPhidgetHandle IFK)
void callback_IR_error(GtkWidget *widget, gpointer user_data)
int DetachHandler(CPhidgetHandle IFK)