YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImplementJointBrake.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_IMPLEMENTJOINTBRAKE_H
7#define YARP_DEV_IMPLEMENTJOINTBRAKE_H
8
10#include <yarp/dev/api.h>
11
12namespace yarp::dev {
13class ImplementJointBrake;
14}
15
17{
18protected:
20 void *helper;
21
28 bool initialize (int size, const int *amap);
29
34 bool uninitialize ();
35
36public:
37 /* Constructor.
38 * @param y is the pointer to the class instance inheriting from this
39 * implementation.
40 */
42
46 virtual ~ImplementJointBrake();
47
48 virtual yarp::dev::ReturnValue isJointBraked(int j, bool& braked) const override;
49 virtual yarp::dev::ReturnValue setManualBrakeActive(int j, bool active) override;
50 virtual yarp::dev::ReturnValue setAutoBrakeEnabled(int j, bool enabled) override;
51 virtual yarp::dev::ReturnValue getAutoBrakeEnabled(int j, bool& enabled) const override;
52};
53
54#endif // YARP_DEV_IMPLEMENTJOINTFAULT_H
Interface for controlling a joint equipped with brakes (hardware or simulated).
Definition IJointBrake.h:70
Interface for controlling a joint equipped with brakes (hardware or simulated).
Definition IJointBrake.h:23
virtual yarp::dev::ReturnValue setManualBrakeActive(int j, bool active) override
Enables/Disables manually the joint brake.
virtual yarp::dev::ReturnValue isJointBraked(int j, bool &braked) const override
Check is the joint brake is currently active.
virtual ~ImplementJointBrake()
Destructor.
yarp::dev::IJointBrakeRaw * raw
bool uninitialize()
Clean up internal data and memory.
bool initialize(int size, const int *amap)
Initialize the internal data and alloc memory.
virtual yarp::dev::ReturnValue setAutoBrakeEnabled(int j, bool enabled) override
Enables/Disables the automatic joint brake.
virtual yarp::dev::ReturnValue getAutoBrakeEnabled(int j, bool &enabled) const override
checks if the automatic joint brake mode is enabled or disabled.
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