44 #include <visp3/core/vpConfig.h>
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 #include <visp3/robot/vpMy.h>
48 #include <visp3/robot/vpArit.h>
49 #include <visp3/robot/vpView.h>
50 #include <visp3/robot/vpRfstack.h>
56 static int stack[STACKSIZE] = {vpDEFAULT_REMOVE};
57 static int *sp = stack;
67 fprintf_rfstack (FILE *fp)
72 if (*sp == IS_INSIDE) {
73 fprintf (fp,
"(null)\n");
80 fprintf (fp,
"above");
83 if (flg) fprintf (fp,
" ");
85 fprintf (fp,
"below");
88 if (flg) fprintf (fp,
" ");
90 fprintf (fp,
"right");
93 if (flg) fprintf (fp,
" ");
98 if (flg) fprintf (fp,
" ");
100 fprintf (fp,
"back");
102 if (*sp & IS_FRONT) {
105 fprintf (fp,
"front");
141 static char proc_name[] =
"pop_rfstack";
144 fprintf (stderr,
"%s: stack underflow\n", proc_name);
157 static char proc_name[] =
"push_rfstack";
159 if (sp == stack + STACKSIZE - 1) {
160 fprintf (stderr,
"%s: stack overflow\n", proc_name);
176 ip = (sp == stack) ? sp + 1 : sp - 1;