C++ SDK Reference  12.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
diguyCharacterGuide.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 1992-2013 Boston Dynamics
4  * ALL RIGHTS RESERVED.
5  *
6  * These coded instructions, statements, and computer programs
7  * contain unpublished proprietary information of Boston Dynamics
8  * and are protected by Copyright Laws of the United States.
9  * They may not be used, duplicated, or disclosed in any form, in
10  * whole or in part, without the prior written consent from Boston
11  * Dynamics.
12  *
13  * RESTRICTED RIGHTS LEGEND
14  * Use, duplication, or disclosure by the government is subject
15  * to restrictions as set forth in FAR 52.227.19(c)(2) or
16  * subparagraph (c)(1)(ii) of the Rights in Technical Data and
17  * Computer Software clause at DFARS 252.227-7013 and/or in
18  * similar or successor clauses in the FAR, or the DOD or NASA
19  * FAR Supplement, or to subparagraphs (c)(1) and (c)(2) of the
20  * Commercial Computer Software--Restricted Rights at 48 CFR
21  * 52.227-19, as applicable. Unpublished-rights reserved under
22  * the Copyright Laws of the United States.
23  * Contractor/Manufacturer is:
24  * Boston Dynamics/78 Fourth Avenue/Waltham MA 02451.
25  */
26 
27 
28 /*********************************************************************
29  **
30  *t diguyCharacterGuide
31  **
32  */
33 
34 #ifndef __diguyCharacterGuide_H
35 #define __diguyCharacterGuide_H
36 
37 
38 #ifdef SWIG
39 %module diguyCharacterGuide
40 #else
41 #define CPLUSPLUS_ONLY
42 #endif
43 
44 #ifdef CPLUSPLUS_ONLY
45 class bdiScenarioCharacterGuide;
46 #endif
47 
48 
49 #include <declspec_diguy.h>
50 
51 /*****************************************************************************/
321 class BDI_DECLSPEC_diguy diguyCharacterGuide
322 {
323 
324 public:
325 
326 /*****************************************************************************/
336  /*l
337  *b Returns:
338  **
339  ** name of the guide
340  */
341  const char* get_name();
342 
343  /*l
344  *b Description:
345  **
346  ** This function sets the name of this object.
347  **
348  *b Returns:
349  **
350  ** 0 on success, -1 on failure
351  */
352  int set_name(const char* name);
353 
354  /*l
355  *b Description:
356  **
357  ** This function enables or disables this guide.
358  **
359  *b Arguments:
360  **
361  *a enabled - pass 1 to enable to guide, 0 to disable
362  **
363  *b Returns:
364  **
365  ** 0 on success, -1 on failure
366  */
367  int set_enabled(int enabled);
368 
369  /*l
370  *b Returns:
371  **
372  ** whether this guide is enabled; see set_enabled()
373  */
374  int get_enabled();
375 
376  /*l
377  *b Description:
378  **
379  ** This function returns whether the character controlled
380  ** by this guide has reached its desired position.
381  **
382  *b Returns:
383  **
384  ** 1 if position reached, 0 if not
385  */
386  int get_position_acquired();
387 
388  /*l
389  *b Description:
390  **
391  ** This function manually sets whether the character controlled
392  ** by this guide has reached its desired position. Normally
393  ** this is determined automatically by the guide.
394  **
395  ** Note that calling this function may trigger a callback of
396  ** diguyCharacter::CALLBACK_ID_GUIDE_POSITION_ACQUIRED or
397  ** diguyCharacter::CALLBACK_ID_GUIDE_POSITION_UNACQUIRED.
398  **
399  *b Arguments:
400  **
401  *a acquired - pass 1 to set the desired position as acquired,
402  *a 0 as unacquired
403  */
404  void set_position_acquired(int acquired);
405 
406  /*l
407  *b Description:
408  **
409  ** This function returns whether the character controlled
410  ** by this guide has reached its desired orientation.
411  **
412  *b Returns:
413  **
414  ** 1 if orientation reached, 0 if not
415  */
416  int get_orientation_acquired();
417 
418  /*l
419  *b Description:
420  **
421  ** Similar to set_position_acquired(), but for orientation.
422  **
423  *b Arguments:
424  **
425  *a acquired - pass 1 to set the desired orientation as acquired,
426  *a 0 as unacquired
427  */
428  void set_orientation_acquired(int acquired);
429 
430  /*l
431  *b Description:
432  **
433  ** This function sets a parameter for this guide's
434  ** guide algorithm.
435  **
436  *b Arguments:
437  **
438  *a parameter - name of the parameter to set
439  *a value - new value of the parameter
440  **
441  *b Returns:
442  **
443  ** 0 on success, -1 on failure
444  */
445  int set_guide_algorithm_float_parameter(const char* parameter,
446  float value);
447 
448  /*l
449  *b Description:
450  **
451  ** This function gets the current setting for a parameter of
452  ** this guide's guide algorithm.
453  **
454  *b Arguments:
455  **
456  *a parameter - name of the parameter to get
457  **
458  *b Returns:
459  **
460  ** current value of parameter
461  */
462  float get_guide_algorithm_float_parameter(const char* parameter);
463 
464  /*l
465  *b Description:
466  **
467  ** This function sets a parameter for this guide's
468  ** guide algorithm.
469  **
470  *b Arguments:
471  **
472  *a parameter - name of the parameter to set
473  *a value - new value of the parameter
474  **
475  *b Returns:
476  **
477  ** 0 on success, -1 on failure
478  */
479  int set_guide_algorithm_string_parameter(const char* parameter,
480  const char * value);
481 
482  /*l
483  *b Description:
484  **
485  ** This function gets the current setting for a parameter of
486  ** this guide's guide algorithm.
487  **
488  *b Arguments:
489  **
490  *a parameter - name of the parameter to get
491  **
492  *b Returns:
493  **
494  ** current value of parameter
495  */
496  const char * get_guide_algorithm_string_parameter(const char* parameter);
497 
502 #ifdef CPLUSPLUS_ONLY
503 
504  bdiScenarioCharacterGuide* get_scripted_object() {return m_scripted_object;}
505 
506 private:
507 
508  /*l
509  ** A private constructor.
510  */
511  diguyCharacterGuide(bdiScenarioCharacterGuide* scripted_object);
512 
513  /*l
514  ** A private destructor.
515  */
516  virtual ~diguyCharacterGuide();
517 
518  /*l
519  ** A pointer to internal data.
520  */
521  bdiScenarioCharacterGuide* m_scripted_object;
522 
523  friend class bdiScenarioCharacterGuide;
524 
525 #endif
526 
527 };
528 
529 
530 #endif /* __diguyCharacterGuide_H */
531 
532 
533 /*
534  * Copyright (C) 1992-2013 Boston Dynamics
535  * ALL RIGHTS RESERVED.
536  *
537  * These coded instructions, statements, and computer programs
538  * contain unpublished proprietary information of Boston Dynamics
539  * and are protected by Copyright Laws of the United States.
540  * They may not be used, duplicated, or disclosed in any form, in
541  * whole or in part, without the prior written consent from Boston
542  * Dynamics.
543  *
544  * RESTRICTED RIGHTS LEGEND
545  * Use, duplication, or disclosure by the government is subject
546  * to restrictions as set forth in FAR 52.227.19(c)(2) or
547  * subparagraph (c)(1)(ii) of the Rights in Technical Data and
548  * Computer Software clause at DFARS 252.227-7013 and/or in
549  * similar or successor clauses in the FAR, or the DOD or NASA
550  * FAR Supplement, or to subparagraphs (c)(1) and (c)(2) of the
551  * Commercial Computer Software--Restricted Rights at 48 CFR
552  * 52.227-19, as applicable. Unpublished-rights reserved under
553  * the Copyright Laws of the United States.
554  * Contractor/Manufacturer is:
555  * Boston Dynamics/78 Fourth Avenue/Waltham MA 02451.
556  */
557