00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00034 #ifndef __GTK_INTERFACE_H_
00035 #define __GTK_INTERFACE_H_
00036
00037 #include <gtk/gtk.h>
00038 #include <glib.h>
00039 #include <gdk/gdkkeysyms.h>
00040
00041 #include <stdlib.h>
00042 #include <stdio.h>
00043 #include <iostream>
00044 #include <time.h>
00045 #include <string.h>
00046 #include <math.h>
00047
00048
00049 #include <ros/package.h>
00050
00051 #include <boost/lexical_cast.hpp>
00052 #include <boost/format.hpp>
00053
00054 #include <humanoid_control_functions.h>
00055 #include <miscellaneous.h>
00056 #include <gtk_aux.h>
00057 #include <hd_hl_apis_callbacks.h>
00058
00059 #define STR_LEN 512
00060 #define BACK_FACING -1
00061 #define FRONT_FACING 1
00062
00063
00072 void on_application_exit(GtkObject *object, gpointer user_data);
00073
00083 void on_about_menu_item_activate(GtkObject *object, gpointer user_data);
00084
00094 void on_button_set_robot_home_pos_clicked(GtkWidget * widget, gpointer user_data);
00095
00105 void on_button_start_loop_clicked(GtkWidget * widget, gpointer user_data);
00106
00115 void on_page1_left_top_frame_combobox_changed_event(GtkWidget *widget, gpointer user_data);
00116
00125 void on_ajustament_hscale_value_changed_event(GtkAdjustment *adjustment, gpointer user_data);
00126
00136 void on_constant_speed_radio_checkbox_toggled(GtkWidget *widget, gpointer other_checkbox);
00137
00147 void on_controled_speed_radio_checkbox_toggled(GtkWidget *widget, gpointer other_checkbox);
00148
00157 void on_page2_select_id_combobox_for_position_changed_event(GtkWidget *widget, gpointer label_data);
00158
00168 void on_button_setpos_clicked(GtkWidget *widget, gpointer user_data);
00169
00178 void on_button_release_all_clicked(GtkWidget *widget, gpointer user_data);
00179
00189 void on_button_go_toggled(GtkWidget *widget, gpointer other_toggle_button);
00190
00200 void on_button_stop_toggled(GtkWidget *widget, gpointer other_toggle_button);
00201
00211 void on_button_set_pos_all_clicked(GtkWidget *widget, gpointer user_data);
00212
00221 void on_button_setspeed_clicked(GtkWidget *widget, gpointer user_data);
00222
00231 void on_button_vbuttonbox_update_robot_data_clicked(GtkWidget *widget, gpointer user_data);
00232
00241 void on_control_resolution_toggled(GtkWidget *widget, gpointer user_data);
00242
00251 void on_workspace_scaling_toggled(GtkWidget *widget, gpointer user_data);
00252
00261 void on_button_test_invkin_clicked(GtkWidget *widget, gpointer user_data);
00262
00272 void on_button_calibration_clicked(GtkWidget *widget, gpointer user_data);
00273
00284 void on_notebook_change_current_page(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, gpointer user_data);
00285
00294 void on_back_facing_menu_item_activate(GtkMenuItem *menuitem, gpointer user_data);
00295
00304 void on_front_facing_menu_item_activate(GtkMenuItem *menuitem, gpointer user_data);
00305
00314 void on_demo_checkboxes_toggled(GtkToggleButton *togglebutton, gpointer user_data);
00315
00324 void select_inv_kin_combobox_changed_event(GtkWidget *widget, gpointer user_data);
00325
00334 void on_user_path_demo_point_store_button_clicked(GtkWidget *widget, gpointer user_data);
00335
00344 void user_path_demo_run_checkbox_toggled(GtkToggleButton *togglebutton, gpointer user_data);
00345
00354 void on_user_path_demo_run_button_clicked(GtkWidget *widget, gpointer user_data);
00355
00364 void on_user_path_demo_clear_button_clicked(GtkWidget *widget, gpointer user_data);
00365
00373 gboolean update_watcher(gpointer data_struct);
00374
00375
00384 void *interface_init(void *dummy);
00385
00386 #endif
00387