YARP
Yet Another Robot Platform
ImplementAxisInfo.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_DEV_IMPLEMENTAXISINFO_H
10 #define YARP_DEV_IMPLEMENTAXISINFO_H
11 
13 
14 namespace yarp {
15  namespace dev {
16  class ImplementAxisInfo;
17  }
18 }
19 
21 {
22 protected:
24  void *helper;
25  double *temp1;
26  double *temp2;
27 
28 
35  bool initialize (int size, const int *amap);
36 
41  bool uninitialize ();
42 
43 public:
44  /* Constructor.
45  * @param y is the pointer to the class instance inheriting from this
46  * implementation.
47  */
49 
50  virtual ~ImplementAxisInfo();
51 
52  bool getAxisName(int axis, std::string& name) override;
53  bool getJointType(int axis, yarp::dev::JointTypeEnum& type) override;
54 };
55 
56 #endif // YARP_DEV_IMPLEMENTAXISINFO_H
yarp::dev::ImplementAxisInfo::temp1
double * temp1
Definition: ImplementAxisInfo.h:25
yarp::dev::ImplementAxisInfo::helper
void * helper
Definition: ImplementAxisInfo.h:24
yarp::dev::ImplementAxisInfo::iinfo
IAxisInfoRaw * iinfo
Definition: ImplementAxisInfo.h:23
yarp::dev::ImplementAxisInfo::~ImplementAxisInfo
virtual ~ImplementAxisInfo()
Definition: ImplementAxisInfo.cpp:23
yarp::dev::ImplementAxisInfo::temp2
double * temp2
Definition: ImplementAxisInfo.h:26
yarp::dev::ImplementAxisInfo::initialize
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
Definition: ImplementAxisInfo.cpp:28
ControlBoardInterfaces.h
define control board standard interfaces
yarp::dev::ImplementAxisInfo
Definition: ImplementAxisInfo.h:21
yarp::dev::IAxisInfo
Interface for getting information about specific axes, if available.
Definition: IAxisInfo.h:43
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
yarp::dev::IAxisInfo::getJointType
virtual bool getJointType(int axis, yarp::dev::JointTypeEnum &type)
Definition: IAxisInfo.h:62
yarp::dev::IAxisInfoRaw
Interface for getting information about specific axes, if available.
Definition: IAxisInfo.h:69
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::ImplementAxisInfo::uninitialize
bool uninitialize()
Clean up internal data and memory.
Definition: ImplementAxisInfo.cpp:43
yarp::dev::IAxisInfo::getAxisName
virtual bool getAxisName(int axis, std::string &name)=0
yarp::dev::JointTypeEnum
JointTypeEnum
Definition: IAxisInfo.h:29
yarp::dev::ImplementAxisInfo::ImplementAxisInfo
ImplementAxisInfo(yarp::dev::IAxisInfoRaw *y)
Definition: ImplementAxisInfo.cpp:17