Visual Servoing Platform  version 3.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
vpViper850.h
1 /****************************************************************************
2  *
3  * This file is part of the ViSP software.
4  * Copyright (C) 2005 - 2017 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 
99 #include <visp3/core/vpConfig.h>
100 #include <visp3/robot/vpViper.h>
101 
102 
103 class VISP_EXPORT vpViper850: public vpViper
104 {
105  public:
106 #ifdef VISP_HAVE_VIPER850_DATA
107  static const std::string CONST_EMC_MARLIN_F033C_WITHOUT_DISTORTION_FILENAME;
117  static const std::string CONST_CAMERA_FILENAME;
118 #endif
119 
122  static const char * const CONST_MARLIN_F033C_CAMERA_NAME;
123  static const char * const CONST_PTGREY_FLEA2_CAMERA_NAME;
124  static const char * const CONST_SCHUNK_GRIPPER_CAMERA_NAME;
125  static const char * const CONST_GENERIC_CAMERA_NAME;
126 
128  typedef enum {
133  TOOL_CUSTOM
134  } vpToolType;
135 
137  static const vpToolType defaultTool;
138 
139  vpViper850();
140  virtual ~vpViper850() {};
141 
144  void init (void);
145  void init(const std::string &camera_extrinsic_parameters);
146  void init(vpViper850::vpToolType tool,
149  void init(vpViper850::vpToolType tool, const std::string &filename);
150  void init(vpViper850::vpToolType tool, const vpHomogeneousMatrix &eMc_);
151 
154  return projModel;
155  };
156 
157  void getCameraParameters(vpCameraParameters &cam,
158  const unsigned int &image_width,
159  const unsigned int &image_height) const;
160  void getCameraParameters(vpCameraParameters &cam,
161  const vpImage<unsigned char> &I) const;
162  void getCameraParameters(vpCameraParameters &cam, const vpImage<vpRGBa> &I) const;
163 
166  return tool_current;
167  };
168 
169  void parseConfigFile (const std::string &filename);
171 
172  protected:
175  void setToolType(vpViper850::vpToolType tool){
177  tool_current = tool;
178  };
180 
181  protected:
183  vpToolType tool_current;
184  // Used projection model
186 
187 };
188 
189 #endif
190 
Modelisation of the ADEPT Viper robot.
Definition: vpViper.h:112
static const std::string CONST_EMC_PTGREY_FLEA2_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:112
Perspective projection without distortion model.
static const vpToolType defaultTool
Default tool attached to the robot end effector.
Definition: vpViper850.h:137
static const std::string CONST_EMC_GENERIC_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:116
Implementation of an homogeneous matrix and operations on such kind of matrices.
static const std::string CONST_CAMERA_FILENAME
Definition: vpViper850.h:117
static const char *const CONST_MARLIN_F033C_CAMERA_NAME
Definition: vpViper850.h:122
static const char *const CONST_SCHUNK_GRIPPER_CAMERA_NAME
Definition: vpViper850.h:124
static const std::string CONST_EMC_MARLIN_F033C_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:110
static const char *const CONST_GENERIC_CAMERA_NAME
Definition: vpViper850.h:125
vpToolType
List of possible tools that can be attached to the robot end-effector.
Definition: vpViper850.h:128
static const std::string CONST_EMC_GENERIC_WITHOUT_DISTORTION_FILENAME
Definition: vpViper850.h:115
Generic class defining intrinsic camera parameters.
Modelisation of the ADEPT Viper 850 robot.
Definition: vpViper850.h:103
vpToolType getToolType() const
Get the current tool type.
Definition: vpViper850.h:165
static const std::string CONST_EMC_SCHUNK_GRIPPER_WITHOUT_DISTORTION_FILENAME
Definition: vpViper850.h:113
static const std::string CONST_EMC_PTGREY_FLEA2_WITHOUT_DISTORTION_FILENAME
Definition: vpViper850.h:111
virtual ~vpViper850()
Definition: vpViper850.h:140
vpCameraParameters::vpCameraParametersProjType getCameraParametersProjType() const
Get the current camera model projection type.
Definition: vpViper850.h:153
vpCameraParameters::vpCameraParametersProjType projModel
Definition: vpViper850.h:185
static const std::string CONST_EMC_SCHUNK_GRIPPER_WITH_DISTORTION_FILENAME
Definition: vpViper850.h:114
static const char *const CONST_PTGREY_FLEA2_CAMERA_NAME
Definition: vpViper850.h:123