YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImplementAxisInfo.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_IMPLEMENTAXISINFO_H
7#define YARP_DEV_IMPLEMENTAXISINFO_H
8
10
11namespace yarp::dev {
12class ImplementAxisInfo;
13}
14
16{
17protected:
18 IAxisInfoRaw* m_iraw=nullptr;
19 void* m_helper =nullptr;
20 std::vector<int> m_buffer_ints;
21 std::vector<double> m_buffer_doubles;
22 std::vector<double> m_buffer_doubles2;
23 std::mutex m_imp_mutex;
24
25
32 bool initialize (int size, const int *amap);
33
38 bool uninitialize ();
39
40public:
41 /* Constructor.
42 * @param y is the pointer to the class instance inheriting from this
43 * implementation.
44 */
46
47 virtual ~ImplementAxisInfo();
48
49 yarp::dev::ReturnValue getAxes(size_t& ax) override;
50 yarp::dev::ReturnValue getAxisName(int axis, std::string& name) override;
52};
53
54#endif // YARP_DEV_IMPLEMENTAXISINFO_H
define control board standard interfaces
Interface for getting information about specific axes, if available.
Definition IAxisInfo.h:73
Interface for getting information about specific axes, if available.
Definition IAxisInfo.h:37
std::vector< double > m_buffer_doubles
bool uninitialize()
Clean up internal data and memory.
std::vector< double > m_buffer_doubles2
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
yarp::dev::ReturnValue getAxisName(int axis, std::string &name) override
yarp::dev::ReturnValue getJointType(int axis, yarp::dev::JointTypeEnum &type) override
yarp::dev::ReturnValue getAxes(size_t &ax) override
Get the number of controlled axes.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18