11#include <flexiv/rdk/robot.hpp>
44 const std::vector<std::string>& network_interface_whitelist = {});
68 void Start(
const std::vector<std::shared_ptr<MotionControlCmds>>& cmds);
165 std::shared_ptr<Robot>
instance(
unsigned int idx)
const;
169 std::unique_ptr<Impl> pimpl_;
Teleoperation control interface to use device to teleop one or more robots connected to the same LAN.
void Start(const std::vector< std::shared_ptr< MotionControlCmds > > &cmds)
[Blocking] Start the teleoperation control loop.
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.
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.
DeviceTeleopLan(const std::vector< std::string > &robot_sn_vec, const std::vector< std::string > &network_interface_whitelist={})
[Blocking] Create an instance of the control interface. More than one pair of [device-robot] can be c...
void SetNullSpacePostures(unsigned int idx, const std::vector< double > &ref_positions)
[Blocking] Set reference joint positions used in the robot's null-space posture control module for th...
void SetRobotMaxContactWrench(unsigned int idx, 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.