Flexiv TDK APIs 2.1
Loading...
Searching...
No Matches
device_teleop_lan.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include "data.hpp"
8#include <string>
9#include <memory>
10
11#include <flexiv/rdk/robot.hpp>
12namespace flexiv {
13namespace tdk {
14
15using namespace rdk;
16
22{
23public:
39 DeviceTeleopLan(const std::vector<std::string>& robot_sn_vec);
40 virtual ~DeviceTeleopLan();
41
51 void Init(ZeroFTSensor zero_ft_sensor = ZeroFTSensor::Enable);
52
63 void Start(const std::vector<std::shared_ptr<MotionControlCmds>>& cmds);
64
70 void Stop();
71
87 unsigned int idx, JointGroup group, const std::array<double, kCartDoF>& max_wrench);
88
112 unsigned int idx, JointGroup group, const std::vector<double>& ref_positions);
113
122 bool fault(unsigned int idx) const;
123
128 bool any_fault(void) const;
129
145 std::vector<bool> ClearFault(unsigned int timeout_sec = 30);
146
156 const std::array<bool, kIOPorts> digital_inputs(unsigned int idx) const;
157
164 std::shared_ptr<Robot> instance(unsigned int idx) const;
165
166private:
167 class Impl;
168 std::unique_ptr<Impl> pimpl_;
169};
170
171} // namespace tdk
172} // namespace flexiv
void Start(const std::vector< std::shared_ptr< MotionControlCmds > > &cmds)
[Blocking] Start the teleoperation control loop.
DeviceTeleopLan(const std::vector< std::string > &robot_sn_vec)
[Blocking] Create an instance of the control interface. More than one pair of [device-robot] can be c...
std::vector< bool > ClearFault(unsigned int timeout_sec=30)
[Blocking] Try to clear minor or critical fault of the robot without a power cycle.
const std::array< bool, kIOPorts > digital_inputs(unsigned int idx) const
[Non-blocking] Current reading from all digital input ports (16 on the control box + 2 inside the wri...
void Stop()
[Blocking] Stop the teleoperation control loop and make all robots hold their pose.
void Init(ZeroFTSensor zero_ft_sensor=ZeroFTSensor::Enable)
[Blocking] Get all robots ready for teleoperation. The following actions will happen in sequence: a) ...
std::shared_ptr< Robot > instance(unsigned int idx) const
[Non-blocking] Pointer to the underlying rdk::Robot instances of the robot.
void SetNullSpacePostures(unsigned int idx, JointGroup group, const std::vector< double > &ref_positions)
[Blocking] Set reference joint positions used in the robot's null-space posture control module for th...
bool fault(unsigned int idx) const
[Non-blocking] Fault state of the specified robot.
bool any_fault(void) const
[Non-blocking] Whether any of the connected robots is in fault state.
void SetRobotMaxContactWrench(unsigned int idx, JointGroup group, const std::array< double, kCartDoF > &max_wrench)
[Non-blocking] Set maximum contact wrench for the specified robot. The controller will regulate its o...
Header file containing various constant expressions, data structs, and enums.
ZeroFTSensor
Sensor calibration options.
Definition data.hpp:248