Visual Servoing Platform  version 3.0.0
vpViper850.h
1 /****************************************************************************
2  *
3  * This file is part of the ViSP software.
4  * Copyright (C) 2005 - 2015 by Inria. All rights reserved.
5  *
6  * This software is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * ("GPL") version 2 as published by the Free Software Foundation.
9  * See the file LICENSE.txt at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using ViSP with software that can not be combined with the GNU
13  * GPL, please contact Inria about acquiring a ViSP Professional
14  * Edition License.
15  *
16  * See http://visp.inria.fr for more information.
17  *
18  * This software was developed at:
19  * Inria Rennes - Bretagne Atlantique
20  * Campus Universitaire de Beaulieu
21  * 35042 Rennes Cedex
22  * France
23  *
24  * If you have questions regarding the use of this file, please contact
25  * Inria at visp@inria.fr
26  *
27  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29  *
30  * Description:
31  * Interface for the ADEPT Viper 850 robot.
32  *
33  * Authors:
34  * Fabien Spindler
35  *
36  *****************************************************************************/
37 
38 #ifndef vpViper850_h
39 #define vpViper850_h
40 
59 #include <visp3/robot/vpViper.h>
60 
61 
62 class VISP_EXPORT vpViper850: public vpViper
63 {
64  public:
65 #ifdef VISP_HAVE_ACCESS_TO_NAS
66  static const char * const CONST_EMC_MARLIN_F033C_WITHOUT_DISTORTION_FILENAME;
75  static const char * const CONST_EMC_GENERIC_WITH_DISTORTION_FILENAME;
76  static const char * const CONST_CAMERA_FILENAME;
77 #endif
78 
81  static const char * const CONST_MARLIN_F033C_CAMERA_NAME;
82  static const char * const CONST_PTGREY_FLEA2_CAMERA_NAME;
83  static const char * const CONST_SCHUNK_GRIPPER_CAMERA_NAME;
84  static const char * const CONST_GENERIC_CAMERA_NAME;
85 
87  typedef enum {
91  TOOL_GENERIC_CAMERA
92  } vpToolType;
93 
95  static const vpToolType defaultTool;
96 
97  vpViper850();
98  virtual ~vpViper850() {};
99 
100  void init (void);
101 #ifdef VISP_HAVE_ACCESS_TO_NAS
102  void init(const char *camera_extrinsic_parameters);
103 #endif
104  void init (vpViper850::vpToolType tool,
107 
108 
111  return projModel;
112  };
113 
114  void getCameraParameters(vpCameraParameters &cam,
115  const unsigned int &image_width,
116  const unsigned int &image_height) const;
117  void getCameraParameters(vpCameraParameters &cam,
118  const vpImage<unsigned char> &I) const;
119  void getCameraParameters(vpCameraParameters &cam, const vpImage<vpRGBa> &I) const;
120 
123  return tool_current;
124  };
125 
126 #ifdef VISP_HAVE_ACCESS_TO_NAS
127  void parseConfigFile (const char * filename);
128 #endif
129 
130  protected:
133  tool_current = tool;
134  };
135 
136  protected:
138  vpToolType tool_current;
139  // Used projection model
141 
142 };
143 
144 /*
145  * Local variables:
146  * c-basic-offset: 2
147  * End:
148  */
149 
150 #endif
151 
static const char *const CONST_EMC_PTGREY_FLEA2_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:71
static const char *const CONST_CAMERA_FILENAME
Definition: vpViper850.h:76
Modelisation of the ADEPT Viper robot.
Definition: vpViper.h:107
Perspective projection without distortion model.
static const vpToolType defaultTool
Default tool attached to the robot end effector.
Definition: vpViper850.h:95
static const char *const CONST_EMC_MARLIN_F033C_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:69
static const char *const CONST_MARLIN_F033C_CAMERA_NAME
Definition: vpViper850.h:81
static const char *const CONST_SCHUNK_GRIPPER_CAMERA_NAME
Definition: vpViper850.h:83
void setToolType(vpViper850::vpToolType tool)
Set the current tool type.
Definition: vpViper850.h:132
static const char *const CONST_GENERIC_CAMERA_NAME
Definition: vpViper850.h:84
static const char *const CONST_EMC_SCHUNK_GRIPPER_WITHOUT_DISTORTION_FILENAME
Definition: vpViper850.h:72
vpToolType
List of possible tools that can be attached to the robot end-effector.
Definition: vpViper850.h:87
Generic class defining intrinsic camera parameters.
Modelisation of the ADEPT Viper 850 robot.
Definition: vpViper850.h:62
static const char *const CONST_EMC_SCHUNK_GRIPPER_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:73
vpToolType getToolType() const
Get the current tool type.
Definition: vpViper850.h:122
static const char *const CONST_EMC_GENERIC_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:75
static const char *const CONST_EMC_PTGREY_FLEA2_WITHOUT_DISTORTION_FILENAME
Definition: vpViper850.h:70
static const char *const CONST_EMC_GENERIC_WITHOUT_DISTORTION_FILENAME
Definition: vpViper850.h:74
virtual ~vpViper850()
Definition: vpViper850.h:98
vpCameraParameters::vpCameraParametersProjType getCameraParametersProjType() const
Get the current camera model projection type.
Definition: vpViper850.h:110
vpCameraParameters::vpCameraParametersProjType projModel
Definition: vpViper850.h:140
static const char *const CONST_PTGREY_FLEA2_CAMERA_NAME
Definition: vpViper850.h:82