KITProsthesisIceDriver.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package RobotAPI::::drivers::KITProsthesisIceDriver
17  * @author Julia Starke ( julia dot starke at kit dot edu )
18  * @date 2019
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <iostream>
26 #include <thread>
27 
28 #include <QCoreApplication>
29 
30 #include <Ice/Ice.h>
31 #include <Ice/Object.h>
32 
34 #include <RobotAPI/interface/units/KITProstheticHandInterface.h>
35 
36 [[maybe_unused]] static constexpr auto prosthesis = "CB:43:34:8F:3C:0A";
37 [[maybe_unused]] static constexpr auto prosthesis_old = "DF:70:E8:81:DB:D6";
38 
40 {
41 public:
42  KITProsthesisIceDriver(const std::string& mac = prosthesis_old) : iface{mac}
43  {
44  }
45 
46  // sender interface
47  void sendGrasp(Ice::Int, const Ice::Current& = Ice::emptyCurrent) override;
49  const ::Ice::Current& = ::Ice::emptyCurrent) override;
51  const ::Ice::Current& = ::Ice::emptyCurrent) override;
52 
53  KITProsthesis::ProsthesisSensorValues getSensorValues(const Ice::Current&) override;
54 
55 private:
57 };
KITProsthesis::KITProstheticHandInterface::getSensorValues
ProsthesisSensorValues getSensorValues()
KITProsthesisIceDriver::KITProsthesisIceDriver
KITProsthesisIceDriver(const std::string &mac=prosthesis_old)
Definition: KITProsthesisIceDriver.h:42
KITProsthesis::ProsthesisSensorValues
Definition: KITProstheticHandInterface.ice:55
KITProsthesisIceDriver::sendThumbPWM
void sendThumbPWM(const KITProsthesis::ProsthesisMotorValues &, const ::Ice::Current &=::Ice::emptyCurrent) override
Definition: KITProsthesisIceDriver.cpp:15
KITProsthesisIceDriver::sendGrasp
void sendGrasp(Ice::Int, const Ice::Current &=Ice::emptyCurrent) override
Definition: KITProsthesisIceDriver.cpp:9
KITProsthesis::ProsthesisMotorValues
Definition: KITProstheticHandInterface.ice:48
KITProsthesisIceDriver
Definition: KITProsthesisIceDriver.h:39
armarx::VariantType::Int
const VariantTypeId Int
Definition: Variant.h:917
BLEProthesisInterface
Definition: BLEProthesisInterface.h:10
BLEProthesisInterface.h
KITProsthesisIceDriver::sendFingerPWM
void sendFingerPWM(const KITProsthesis::ProsthesisMotorValues &, const ::Ice::Current &=::Ice::emptyCurrent) override
Definition: KITProsthesisIceDriver.cpp:21
KITProsthesis::KITProstheticHandInterface
Definition: KITProstheticHandInterface.ice:68