YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImplementJointFault.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_IMPLEMENTJOINTFAULT_H
7#define YARP_DEV_IMPLEMENTJOINTFAULT_H
8
10#include <yarp/dev/api.h>
11#include <vector>
12
13namespace yarp::dev {
14class ImplementJointFault;
15}
16
18{
19protected:
21 void* m_helper=nullptr;
22 std::mutex m_imp_mutex;
23 std::vector<int> m_buffer_ints;
24 std::vector<double> m_buffer_doubles;
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
50 virtual ~ImplementJointFault();
51
52 yarp::dev::ReturnValue getLastJointFault(int j, int& fault, std::string& message) override;
53
54};
55
56#endif // YARP_DEV_IMPLEMENTJOINTFAULT_H
Interface for getting info about the fault which may occur on a robot.
Definition IJointFault.h:36
Interface for getting info about the fault which may occur on a robot.
Definition IJointFault.h:24
std::vector< double > m_buffer_doubles
virtual ~ImplementJointFault()
Destructor.
bool uninitialize()
Clean up internal data and memory.
yarp::dev::ReturnValue getLastJointFault(int j, int &fault, std::string &message) override
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
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