gtk_aux.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
34 #ifndef _GTK_AUX_H_
35 #define _GTK_AUX_H_
36 
37 #include <gtk/gtk.h>
38 #include <glib.h>
39 #include <phua_haptic/types.h>
40 #include <boost/format.hpp>
41 #include <ros/package.h>
42 #include <iostream>
43 
44 #include <armadillo>
45 
47 
48 #define POINTS_FILE_NAME_STRING "demo_user_path_points.txt"
49 
50 #define RIGHT_ARM_SAVE_STRING "ARM_RIGHT "
51 #define LEFT_ARM_SAVE_STRING "ARM_LEFT "
52 #define BOTH_ARMS_SAVE_STRING "ARM_BOTH "
53 #define LEFT_D_LEG_SAVE_STRING "D_LEG_LEFT "
54 #define RIGHT_D_LEG_SAVE_STRING "D_LEG_RIGHT "
55 
63 void UpdateLabels(shared_vars_t*RobotVars);
64 
72 void UpdateForceBars(shared_vars_t*RobotVars);
73 
81 void UpdateStatusBar(shared_vars_t*RobotVars);
82 
89 template <typename Type>
90 Type AvoidMinusZero(Type value)
91 {
92  return (value == (Type)0 ? 0 : value);
93 }
94 
95 #endif
96 
types.h file for this module. Contains types and structures used by the application.
void UpdateStatusBar(shared_vars_t *RobotVars)
Function to update the status bar.
Definition: gtk_aux.cpp:468
Shared struture that holds robot/device information.
Definition: types.h:279
Type AvoidMinusZero(Type value)
Function to remove minus signal from float, double or long double variables.
Definition: gtk_aux.h:90
void UpdateLabels(shared_vars_t *RobotVars)
Function to update the main page joint value labels.
Definition: gtk_aux.cpp:36
void UpdateForceBars(shared_vars_t *RobotVars)
Function to update the main page force value bars.
Definition: gtk_aux.cpp:413
humanoid_control_functions.h file for this module. Contains includes and prototypes.


phua_haptic
Author(s): Pedro Cruz
autogenerated on Mon Mar 2 2015 01:32:36