stage_internal.h File Reference
#include "stage.h"
#include "math.h"
Go to the source code of this file.
Data Structures | |
struct | gui_window_t |
struct | _stg_property |
struct | stg_property_callback_args_t |
struct | stg_property_toggle_args_t |
struct | _stg_model |
struct | stg_type_record_t |
struct | _stg_world |
struct | stg_rotrect_t |
struct | stg_cell |
struct | _stg_matrix |
struct | stg_line_t |
struct | itl_t |
Defines | |
#define | PRINT_ERR(m) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", __FILE__, __FUNCTION__) |
#define | PRINT_ERR1(m, a) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", a, __FILE__, __FUNCTION__) |
#define | PRINT_ERR2(m, a, b) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", a, b, __FILE__, __FUNCTION__) |
#define | PRINT_ERR3(m, a, b, c) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", a, b, c, __FILE__, __FUNCTION__) |
#define | PRINT_ERR4(m, a, b, c, d) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", a, b, c, d, __FILE__, __FUNCTION__) |
#define | PRINT_ERR5(m, a, b, c, d, e) fprintf( stderr, "\033[41merr\033[0m: "m" (%s %s)\n", a, b, c, d, e, __FILE__, __FUNCTION__) |
#define | PRINT_WARN(m) printf( "\033[44mwarn\033[0m: "m" (%s %s)\n", __FILE__, __FUNCTION__) |
#define | PRINT_WARN1(m, a) printf( "\033[44mwarn\033[0m: "m" (%s %s)\n", a, __FILE__, __FUNCTION__) |
#define | PRINT_WARN2(m, a, b) printf( "\033[44mwarn\033[0m: "m" (%s %s)\n", a, b, __FILE__, __FUNCTION__) |
#define | PRINT_WARN3(m, a, b, c) printf( "\033[44mwarn\033[0m: "m" (%s %s)\n", a, b, c, __FILE__, __FUNCTION__) |
#define | PRINT_WARN4(m, a, b, c, d) printf( "\033[44mwarn\033[0m: "m" (%s %s)\n", a, b, c, d, __FILE__, __FUNCTION__) |
#define | PRINT_WARN5(m, a, b, c, d, e) printf( "\033[44mwarn\033[0m: "m" (%s %s)\n", a, b, c, d, e, __FILE__, __FUNCTION__) |
#define | PRINT_MSG(m) printf( "stage: "m"\n" ) |
#define | PRINT_MSG1(m, a) printf( "stage: "m"\n", a) |
#define | PRINT_MSG2(m, a, b) printf( "stage: "m"\n,", a, b ) |
#define | PRINT_MSG3(m, a, b, c) printf( "stage: "m"\n", a, b, c ) |
#define | PRINT_MSG4(m, a, b, c, d) printf( "stage: "m"\n", a, b, c, d ) |
#define | PRINT_MSG5(m, a, b, c, d, e) printf( "stage: "m"\n", a, b, c, d, e ) |
#define | PRINT_DEBUG(m) |
#define | PRINT_DEBUG1(m, a) |
#define | PRINT_DEBUG2(m, a, b) |
#define | PRINT_DEBUG3(m, a, b, c) |
#define | PRINT_DEBUG4(m, a, b, c, d) |
#define | PRINT_DEBUG5(m, a, b, c, d, e) |
Typedefs | |
typedef int(* | func_update_t )(struct _stg_model *) |
typedef int(* | func_startup_t )(struct _stg_model *) |
typedef int(* | func_shutdown_t )(struct _stg_model *) |
typedef void(* | func_load_t )(struct _stg_model *) |
typedef void(* | func_save_t )(struct _stg_model *) |
typedef void(* | stg_property_storage_func_t )(struct _stg_property *prop, void *data, size_t len) |
typedef _stg_property | stg_property_t |
typedef stg_cell | stg_cell_t |
typedef _stg_matrix | stg_matrix_t |
typedef int(* | stg_itl_test_func_t )(stg_model_t *finder, stg_model_t *found) |
Enumerations | |
enum | itl_mode_t { PointToPoint = 0, PointToBearingRange } |
Functions | |
void | gui_startup (int *argc, char **argv[]) |
void | gui_poll (void) |
void | gui_shutdown (void) |
void | gui_load (gui_window_t *win, int section) |
void | gui_save (gui_window_t *win) |
gui_window_t * | gui_world_create (stg_world_t *world) |
void | gui_world_destroy (stg_world_t *world) |
int | gui_world_update (stg_world_t *world) |
void | stg_world_add_model (stg_world_t *world, stg_model_t *mod) |
void | gui_world_geom (stg_world_t *world) |
void | gui_model_create (stg_model_t *model) |
void | gui_model_destroy (stg_model_t *model) |
void | gui_model_display_pose (stg_model_t *mod, char *verb) |
void | gui_model_features (stg_model_t *mod) |
void | gui_model_geom (stg_model_t *model) |
void | gui_model_mouse (stg_rtk_fig_t *fig, int event, int mode) |
void | gui_model_move (stg_model_t *mod) |
void | gui_model_nose (stg_model_t *model) |
void | gui_model_polygons (stg_model_t *model) |
void | gui_model_render_command (stg_model_t *mod) |
void | gui_model_render_config (stg_model_t *mod) |
void | gui_model_render_data (stg_model_t *mod) |
void | gui_window_menus_create (gui_window_t *win) |
void | gui_window_menus_destroy (gui_window_t *win) |
void | gui_add_view_item (const gchar *name, const gchar *label, const gchar *tooltip, GCallback callback, gboolean is_active, void *userdata) |
int | _model_update (stg_model_t *mod) |
int | _model_startup (stg_model_t *mod) |
int | _model_shutdown (stg_model_t *mod) |
void | stg_model_update_velocity (stg_model_t *model) |
int | stg_model_update_pose (stg_model_t *model) |
void | stg_model_energy_consume (stg_model_t *mod, stg_watts_t rate) |
void | stg_model_map (stg_model_t *mod, gboolean render) |
void | stg_model_map_with_children (stg_model_t *mod, gboolean render) |
stg_rtk_fig_t * | stg_model_prop_fig_create (stg_model_t *mod, stg_rtk_fig_t *array[], stg_id_t propid, stg_rtk_fig_t *parent, int layer) |
void | stg_model_render_geom (stg_model_t *mod) |
void | stg_model_render_pose (stg_model_t *mod) |
void | stg_model_render_polygons (stg_model_t *mod) |
int | stg_fig_clear_cb (stg_model_t *mod, char *name, void *data, size_t len, void *userp) |
stg_rtk_fig_t * | stg_model_fig_create (stg_model_t *mod, const char *figname, const char *parentname, int layer) |
stg_rtk_fig_t * | stg_model_get_fig (stg_model_t *mod, const char *figname) |
void | stg_model_fig_clear (stg_model_t *mod, const char *figname) |
void | stg_property_refresh (stg_property_t *prop) |
void | stg_property_destroy (stg_property_t *prop) |
void | stg_model_set_property_ex (stg_model_t *mod, const char *prop, void *data, size_t len, stg_property_storage_func_t func) |
void | stg_rotrects_normalize (stg_rotrect_t *rects, int num) |
int | stg_rotrects_from_image_file (const char *filename, stg_rotrect_t **rects, int *rect_count, int *widthp, int *heightp) |
stg_polygon_t * | stg_polygons_from_rotrects (stg_rotrect_t *rects, size_t count) |
stg_cell_t * | stg_cell_locate (stg_cell_t *cell, double x, double y) |
void | stg_cell_unrender (stg_cell_t *cell) |
void | stg_cell_render (stg_cell_t *cell) |
void | stg_cell_render_tree (stg_cell_t *cell) |
void | stg_cell_unrender_tree (stg_cell_t *cell) |
stg_matrix_t * | stg_matrix_create (double ppm, double width, double height) |
void | stg_matrix_destroy (stg_matrix_t *matrix) |
void | stg_matrix_clear (stg_matrix_t *matrix) |
void * | stg_matrix_cell_get (stg_matrix_t *matrix, int r, double x, double y) |
void | stg_matrix_cell_append (stg_matrix_t *matrix, double x, double y, void *object) |
void | stg_matrix_remove_obect (stg_matrix_t *matrix, void *object) |
void | stg_matrix_cell_remove (stg_matrix_t *matrix, double x, double y, void *object) |
void | stg_matrix_rectangle (stg_matrix_t *matrix, double px, double py, double pth, double dx, double dy, void *object) |
void | stg_matrix_line (stg_matrix_t *matrix, double x1, double y1, double x2, double y2, void *object) |
void | stg_matrix_lines (stg_matrix_t *matrix, stg_line_t *lines, int num_lines, void *object) |
void | stg_matrix_polygons (stg_matrix_t *matrix, double x, double y, double a, stg_polygon_t *polys, int num_polys, void *object) |
void | stg_matrix_remove_object (stg_matrix_t *matrix, void *object) |
itl_t * | itl_create (double x, double y, double a, double b, stg_matrix_t *matrix, itl_mode_t pmode) |
void | itl_destroy (itl_t *itl) |
void | itl_raytrace (itl_t *itl) |
stg_model_t * | itl_first_matching (itl_t *itl, stg_itl_test_func_t func, stg_model_t *finder) |
int | wf_property_exists (int section, char *token) |
int | wf_read_int (int section, char *token, int def) |
double | wf_read_length (int section, char *token, double def) |
double | wf_read_angle (int section, char *token, double def) |
double | wf_read_float (int section, char *token, double def) |
const char * | wf_read_tuple_string (int section, char *token, int index, char *def) |
double | wf_read_tuple_float (int section, char *token, int index, double def) |
double | wf_read_tuple_length (int section, char *token, int index, double def) |
double | wf_read_tuple_angle (int section, char *token, int index, double def) |
const char * | wf_read_string (int section, char *token, char *def) |
void | wf_write_int (int section, char *token, int value) |
void | wf_write_length (int section, char *token, double value) |
void | wf_write_angle (int section, char *token, double value) |
void | wf_write_float (int section, char *token, double value) |
void | wf_write_tuple_string (int section, char *token, int index, char *value) |
void | wf_write_tuple_float (int section, char *token, int index, double value) |
void | wf_write_tuple_length (int section, char *token, int index, double value) |
void | wf_write_tuple_angle (int section, char *token, int index, double value) |
void | wf_write_string (int section, char *token, char *value) |
void | wf_save (void) |
void | wf_load (char *path) |
int | wf_section_count (void) |
const char * | wf_get_section_type (int section) |
int | wf_get_parent_section (int section) |
const char * | wf_get_filename (void) |
void | model_update_cb (gpointer key, gpointer value, gpointer user) |
void | model_print_cb (gpointer key, gpointer value, gpointer user) |
void | model_destroy_cb (gpointer mod) |
Generated on Thu Aug 11 13:08:10 2005 for Stage by 1.4.0