Flexiv TDK APIs 1.7
Loading...
Searching...
No Matches
gripper_remote_control.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include "data.hpp"
9#include <string>
10#include <memory>
11
12#include <flexiv/rdk/gripper.hpp>
13
14namespace flexiv {
15namespace tdk {
16
17using namespace rdk;
18
37{
38public:
54 const NetworkCfgPro& network_cfg_pro, bool verbose = true);
55
56 virtual ~GripperRemoteControl();
57
58 //========================================= ACCESSORS =========================================
67 bool fault(unsigned int idx) const;
68
81 GripperStates states(unsigned int idx);
82
92 GripperParams params(unsigned int idx);
93
94 //=================================== LEADER-ONLY LIFECYCLE ===================================
109 void Enable(unsigned int idx, const std::string& gripper_name);
110
122 void Disable(unsigned int idx);
123
136 void Init(unsigned int idx);
137
138 //================================== FOLLOWER-ONLY LIFECYCLE ==================================
154 void EnableLocal(unsigned int idx, const std::string& gripper_name);
155
156 //==================================== LEADER-ONLY CONTROL ====================================
173 void Move(unsigned int idx, double width, double velocity, double force_limit);
174
187 void Grasp(unsigned int idx, double force);
188
197 void Stop(unsigned int idx);
198
199 //======================================= SYSTEM CONTROL ======================================
207 std::shared_ptr<Robot> instance(unsigned int idx) const;
208
209private:
210 class Impl;
211 std::unique_ptr<Impl> pimpl_;
212};
213
214} // namespace tdk
215} // namespace flexiv
bool fault(unsigned int idx) const
[Non-blocking] Whether the robot of the current role in the specified robot pair is in fault state.
void Disable(unsigned int idx)
[Blocking] Remotely disable the gripper on the follower robot, issued via RPC with explicit acknowled...
void EnableLocal(unsigned int idx, const std::string &gripper_name)
[Blocking] Locally enable the named gripper on the follower robot, so that it becomes remotely contro...
std::shared_ptr< Robot > instance(unsigned int idx) const
[Non-blocking] Pointer to the underlying rdk::Robot instance of the current role, shared with the ref...
GripperStates states(unsigned int idx)
[Blocking on leader side] Latest gripper states. On the follower side the states are read directly fr...
void Enable(unsigned int idx, const std::string &gripper_name)
[Blocking] Remotely enable the named gripper on the follower robot, issued via RPC with explicit ackn...
void Init(unsigned int idx)
[Blocking] Remotely trigger the initialization of the enabled gripper on the follower robot,...
GripperRemoteControl(const TransparentCartesianTeleopWAN &teleop, const NetworkCfgPro &network_cfg_pro, bool verbose=true)
[Blocking] Create an instance using TDK Professional Edition networking via a TDK Server credential f...
void Move(unsigned int idx, double width, double velocity, double force_limit)
[Non-blocking] Remotely command the follower's gripper to move the fingers with position control....
GripperParams params(unsigned int idx)
[Blocking on leader side] Latest gripper params. Same data source as states().
void Grasp(unsigned int idx, double force)
[Non-blocking] Remotely command the follower's gripper to grasp with direct force control....
void Stop(unsigned int idx)
[Non-blocking] Remotely stop and hold the follower's gripper. The command is published to the followe...
Teleoperation control interface that represents leader or follower robots in transparent teleoperatio...
Header file containing various constant expressions, data structs, and enums.
Network configuration for TDK Professional Edition (credential file from TDK Server).
Definition data.hpp:101