|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_HAL_UNIVERSALROBOTSRTDE_H
28 #define RL_HAL_UNIVERSALROBOTSRTDE_H
31 #include <boost/optional.hpp>
214 ::std::int32_t
getJointMode(const ::std::size_t& i)
const;
371 ::std::uint32_t
major;
373 ::std::uint32_t
minor;
378 void send(::std::uint8_t* buffer, const ::std::size_t& size);
380 void send(const ::std::uint8_t& command);
382 void send(const ::std::uint8_t& command, const ::std::vector< ::std::string>& strings);
384 void send(const ::std::uint8_t& command, const ::std::uint16_t& word);
397 void serialize(T& t, ::std::uint8_t*& ptr)
400 ::std::memcpy(ptr, &t,
sizeof(t));
404 template<
typename T, ::std::
size_t N>
405 void serialize(T (&t)[N], ::std::uint8_t*& ptr)
407 for (::std::size_t i = 0; i < N; ++i)
416 ::std::memcpy(&t, ptr,
sizeof(t));
421 template<
typename T, ::std::
size_t N>
424 for (::std::size_t i = 0; i < N; ++i)
443 #endif // RL_HAL_UNIVERSALROBOTSRTDE_H
::std::uint32_t robotStatusBits
Definition: UniversalRobotsRtde.h:330
virtual ~UniversalRobotsRtde()
Definition: UniversalRobotsRtde.cpp:64
double actualQ[6]
Definition: UniversalRobotsRtde.h:304
@ JOINT_MODE_PART_D_CALIBRATION_ERROR
Definition: UniversalRobotsRtde.h:87
@ JOINT_MODE_POWER_OFF
Definition: UniversalRobotsRtde.h:83
@ COMMAND_CONTROL_PACKAGE_SETUP_INPUTS
Definition: UniversalRobotsRtde.h:260
::std::vector< ::rl::math::Unit > getAnalogOutputUnit() const
Definition: UniversalRobotsRtde.cpp:236
@ ROBOT_MODE_CONFIRM_SAFETY
Definition: UniversalRobotsRtde.h:98
::rl::math::Vector getJointVelocity() const
Definition: UniversalRobotsRtde.cpp:437
@ COMMAND_TEXT_MESSAGE
Definition: UniversalRobotsRtde.h:266
void step()
Definition: UniversalRobotsRtde.cpp:1193
@ COMMAND_DATA_PACKAGE
Definition: UniversalRobotsRtde.h:263
Definition: UniversalRobotsRtde.h:362
virtual void setDigitalOutput(const ::boost::dynamic_bitset<> &bitset)
Definition: DigitalOutputWriter.cpp:43
Definition: JointPositionSensor.h:39
@ SAFETY_MODE_REDUCED
Definition: UniversalRobotsRtde.h:129
Definition: AnalogOutputWriter.h:40
Definition: JointVelocitySensor.h:39
virtual ::std::vector< ::rl::math::Real > getAnalogOutput() const
Definition: AnalogOutputReader.cpp:43
RobotMode
Definition: UniversalRobotsRtde.h:96
Definition: AnalogOutputReader.h:40
@ JOINT_MODE_MOTOR_INITIALISATION
Definition: UniversalRobotsRtde.h:85
@ SAFETY_STATUS_STOPPED_DUE_TO_SAFETY
Definition: UniversalRobotsRtde.h:151
::Eigen::Transform< Real, 3, ::Eigen::Affine > Transform
Rigid transformation in 3D.
Definition: Transform.h:46
@ RUNTIME_STATE_RESUMING
Definition: UniversalRobotsRtde.h:123
::boost::dynamic_bitset getDigitalInput() const
Definition: UniversalRobotsRtde.cpp:357
::std::uint32_t runtimeState
Definition: UniversalRobotsRtde.h:332
@ SAFETY_STATUS_RECOVERY_MODE
Definition: UniversalRobotsRtde.h:144
Definition: JointAccelerationActuator.h:39
@ RUNTIME_STATE_PLAYING
Definition: UniversalRobotsRtde.h:120
JointMode
Definition: UniversalRobotsRtde.h:79
SafetyMode getSafetyMode() const
Definition: UniversalRobotsRtde.cpp:468
void stop()
Definition: UniversalRobotsRtde.cpp:1231
::std::uint64_t actualDigitalInputBits
Definition: UniversalRobotsRtde.h:300
void setJointVelocity(const ::rl::math::Vector &qd)
Definition: UniversalRobotsRtde.cpp:1141
::std::size_t getDigitalInputCount() const
Definition: UniversalRobotsRtde.cpp:369
void start()
Definition: UniversalRobotsRtde.cpp:1152
@ SAFETY_STATUS_EMERGENCY_STOPPED
Definition: UniversalRobotsRtde.h:148
@ JOINT_MODE_IDLE_MODE
Definition: UniversalRobotsRtde.h:92
::std::uint32_t toolAnalogInputTypes
Definition: UniversalRobotsRtde.h:354
::std::uint32_t analogIoTypes
Definition: UniversalRobotsRtde.h:314
::rl::math::MotionVector getCartesianVelocity() const
Definition: UniversalRobotsRtde.cpp:333
@ SAFETY_STATUS_NORMAL_MODE
Definition: UniversalRobotsRtde.h:141
@ SAFETY_MODE_SAFEGUARD_STOP
Definition: UniversalRobotsRtde.h:132
@ SAFETY_MODE_ROBOT_EMERGENCY_STOP
Definition: UniversalRobotsRtde.h:134
void unserialize(::std::uint8_t *&ptr, T &t)
Definition: UniversalRobotsRtde.h:410
::rl::math::Real getAnalogInputMaximum(const ::std::size_t &i) const
Definition: UniversalRobotsRtde.cpp:114
double standardAnalogInput0
Definition: UniversalRobotsRtde.h:338
@ COMMAND_CONTROL_PACKAGE_START
Definition: UniversalRobotsRtde.h:262
Definition: JointVelocityActuator.h:39
@ JOINT_MODE_BOOTLOADER
Definition: UniversalRobotsRtde.h:88
double actualTcpSpeed[6]
Definition: UniversalRobotsRtde.h:312
RobotStatus
Definition: UniversalRobotsRtde.h:109
double actualQd[6]
Definition: UniversalRobotsRtde.h:306
void sendDigitalOutputs()
Definition: UniversalRobotsRtde.cpp:918
@ ROBOT_STATUS_TEACH_BUTTON_PRESSED
Definition: UniversalRobotsRtde.h:112
@ SAFETY_STATUS_REDUCED_MODE
Definition: UniversalRobotsRtde.h:142
@ JOINT_MODE_PART_D_CALIBRATION
Definition: UniversalRobotsRtde.h:81
::std::uint32_t build
Definition: UniversalRobotsRtde.h:365
::std::int32_t getJointMode(const ::std::size_t &i) const
Definition: UniversalRobotsRtde.cpp:404
::rl::math::Vector getJointCurrent() const
Definition: UniversalRobotsRtde.cpp:391
@ COMMAND_GET_URCONTROL_VERSION
Definition: UniversalRobotsRtde.h:264
double toolOutputCurrent
Definition: UniversalRobotsRtde.h:356
::std::uint32_t minor
Definition: UniversalRobotsRtde.h:369
::rl::math::Vector getJointPosition() const
Definition: UniversalRobotsRtde.cpp:411
Definition: UniversalRobotsRtde.h:297
@ ROBOT_MODE_UPDATING_FIRMWARE
Definition: UniversalRobotsRtde.h:105
::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector
Definition: Vector.h:42
::boost::dynamic_bitset getDigitalOutput() const
Definition: UniversalRobotsRtde.cpp:373
Definition: CartesianForceSensor.h:39
::rl::math::Transform getCartesianPosition() const
Definition: UniversalRobotsRtde.cpp:285
double targetTcpSpeed[6]
Definition: UniversalRobotsRtde.h:348
@ JOINT_MODE_BOOTING
Definition: UniversalRobotsRtde.h:86
double outputDoubleRegister[24]
Definition: UniversalRobotsRtde.h:324
RuntimeState
Definition: UniversalRobotsRtde.h:117
void sendIntegerRegister()
Definition: UniversalRobotsRtde.cpp:966
::std::uint32_t safetyStatusBits
Definition: UniversalRobotsRtde.h:336
::std::vector< ::rl::math::Unit > getAnalogInputUnit() const
Definition: UniversalRobotsRtde.cpp:143
::std::uint64_t actualDigitalOutputBits
Definition: UniversalRobotsRtde.h:302
@ COMMAND_CONTROL_PACKAGE_PAUSE
Definition: UniversalRobotsRtde.h:259
@ SAFETY_MODE_FAULT
Definition: UniversalRobotsRtde.h:136
::std::uint32_t outputBitRegisters1
Definition: UniversalRobotsRtde.h:322
Command
Definition: UniversalRobotsRtde.h:258
void sendDoubleRegister()
Definition: UniversalRobotsRtde.cpp:942
Socket socket4
Definition: UniversalRobotsRtde.h:432
Definition: CyclicDevice.h:39
@ SAFETY_STATUS_SYSTEM_EMERGENCY_STOPPED
Definition: UniversalRobotsRtde.h:146
@ SAFETY_MODE_PROTECTIVE_STOP
Definition: UniversalRobotsRtde.h:130
virtual ::std::vector< ::rl::math::Real > getAnalogInput() const
Definition: AnalogInputReader.cpp:43
void serialize(T &t, ::std::uint8_t *&ptr)
Definition: UniversalRobotsRtde.h:393
::rl::math::Transform getCartesianPositionTarget() const
Definition: UniversalRobotsRtde.cpp:309
Socket socket2
Definition: UniversalRobotsRtde.h:430
@ JOINT_MODE_RUNNING
Definition: UniversalRobotsRtde.h:91
@ SAFETY_MODE_RECOVERY
Definition: UniversalRobotsRtde.h:131
double standardAnalogInput1
Definition: UniversalRobotsRtde.h:340
@ ROBOT_MODE_DISCONNECTED
Definition: UniversalRobotsRtde.h:97
SafetyStatus
Definition: UniversalRobotsRtde.h:140
UniversalRobotsRtde(const ::std::string &address)
Definition: UniversalRobotsRtde.cpp:38
@ JOINT_MODE_NOT_RESPONDING
Definition: UniversalRobotsRtde.h:84
Input input
Definition: UniversalRobotsRtde.h:426
::std::uint32_t bugfix
Definition: UniversalRobotsRtde.h:363
@ RUNTIME_STATE_PAUSING
Definition: UniversalRobotsRtde.h:121
::std::uint32_t getRobotStatusBits() const
Definition: UniversalRobotsRtde.cpp:456
@ ROBOT_STATUS_POWER_ON
Definition: UniversalRobotsRtde.h:110
@ RUNTIME_STATE_PAUSED
Definition: UniversalRobotsRtde.h:122
::std::uint32_t major
Definition: UniversalRobotsRtde.h:367
Universal Robots RTDE interface (3.3).
Definition: UniversalRobotsRtde.h:76
double actualCurrent[6]
Definition: UniversalRobotsRtde.h:298
@ SAFETY_STATUS_PROTECTIVE_STOPPED
Definition: UniversalRobotsRtde.h:143
static void hostToBig(::std::int8_t &character)
Definition: Endian.h:121
@ RUNTIME_STATE_STOPPING
Definition: UniversalRobotsRtde.h:118
::std::size_t getDigitalOutputCount() const
Definition: UniversalRobotsRtde.cpp:385
double toolAnalogInput1
Definition: UniversalRobotsRtde.h:352
Definition: DigitalOutputReader.h:39
@ ROBOT_MODE_BOOTING
Definition: UniversalRobotsRtde.h:99
void setJointAcceleration(const ::rl::math::Vector &qdd)
Definition: UniversalRobotsRtde.cpp:1122
@ ROBOT_MODE_BACKDRIVE
Definition: UniversalRobotsRtde.h:103
Output output
Definition: UniversalRobotsRtde.h:428
::std::int32_t robotMode
Definition: UniversalRobotsRtde.h:328
Definition: DigitalOutputWriter.h:39
Unit
Definition: Unit.h:162
static void bigToHost(::std::int8_t &character)
Definition: Endian.h:55
@ COMMAND_REQUEST_PROTOCOL_VERSION
Definition: UniversalRobotsRtde.h:265
virtual void setAnalogOutput(const ::std::vector< ::rl::math::Real > &values)
Definition: AnalogOutputWriter.cpp:43
::rl::math::MotionVector getCartesianVelocityTarget() const
Definition: UniversalRobotsRtde.cpp:346
@ SAFETY_STATUS_SAFEGUARD_STOPPED
Definition: UniversalRobotsRtde.h:145
@ ROBOT_MODE_RUNNING
Definition: UniversalRobotsRtde.h:104
void send(::std::uint8_t *buffer, const ::std::size_t &size)
Definition: UniversalRobotsRtde.cpp:787
double targetTcpPose[6]
Definition: UniversalRobotsRtde.h:346
@ SAFETY_STATUS_VIOLATION
Definition: UniversalRobotsRtde.h:149
double standardAnalogOutput0
Definition: UniversalRobotsRtde.h:342
@ SAFETY_STATUS_FAULT
Definition: UniversalRobotsRtde.h:150
Version version
Definition: UniversalRobotsRtde.h:434
::std::int32_t toolOutputVoltage
Definition: UniversalRobotsRtde.h:358
@ RUNTIME_STATE_STOPPED
Definition: UniversalRobotsRtde.h:119
@ JOINT_MODE_BACKDRIVE
Definition: UniversalRobotsRtde.h:82
double jointTemperatures[6]
Definition: UniversalRobotsRtde.h:318
@ COMMAND_CONTROL_PACKAGE_SETUP_OUTPUTS
Definition: UniversalRobotsRtde.h:261
::rl::math::Real getAnalogOutputMinimum(const ::std::size_t &i) const
Definition: UniversalRobotsRtde.cpp:230
@ JOINT_MODE_SHUTTING_DOWN
Definition: UniversalRobotsRtde.h:80
double actualTcpPose[6]
Definition: UniversalRobotsRtde.h:310
::std::int32_t safetyMode
Definition: UniversalRobotsRtde.h:334
Definition: CartesianPositionSensor.h:39
@ ROBOT_STATUS_POWER_BUTTON_PRESSED
Definition: UniversalRobotsRtde.h:113
void setJointPosition(const ::rl::math::Vector &q)
Definition: UniversalRobotsRtde.cpp:1130
void sendBitRegisters()
Definition: UniversalRobotsRtde.cpp:889
::rl::math::Real getAnalogInputMinimum(const ::std::size_t &i) const
Definition: UniversalRobotsRtde.cpp:137
::rl::math::Vector getJointTemperature() const
Definition: UniversalRobotsRtde.cpp:424
double actualTcpForce[6]
Definition: UniversalRobotsRtde.h:308
@ SAFETY_STATUS_ROBOT_EMERGENCY_STOPPED
Definition: UniversalRobotsRtde.h:147
@ SAFETY_MODE_VIOLATION
Definition: UniversalRobotsRtde.h:135
double toolAnalogInput0
Definition: UniversalRobotsRtde.h:350
Definition: CartesianVelocitySensor.h:39
::std::uint32_t getSafetyStatusBits() const
Definition: UniversalRobotsRtde.cpp:474
::std::size_t getAnalogInputCount() const
Definition: UniversalRobotsRtde.cpp:108
void close()
Definition: UniversalRobotsRtde.cpp:78
::rl::math::Real getAnalogOutputMaximum(const ::std::size_t &i) const
Definition: UniversalRobotsRtde.cpp:207
@ JOINT_MODE_FAULT
Definition: UniversalRobotsRtde.h:90
void recv()
Definition: UniversalRobotsRtde.cpp:635
::rl::math::ForceVector getCartesianForce() const
Definition: UniversalRobotsRtde.cpp:272
Force vector.
Definition: ForceVector.h:46
void sendAnalogOutputs()
Definition: UniversalRobotsRtde.cpp:865
::std::uint32_t outputBitRegisters0
Definition: UniversalRobotsRtde.h:320
Definition: JointCurrentSensor.h:39
@ ROBOT_MODE_IDLE
Definition: UniversalRobotsRtde.h:102
RobotMode getRobotMode() const
Definition: UniversalRobotsRtde.cpp:450
RuntimeState getRuntimeState() const
Definition: UniversalRobotsRtde.cpp:462
Definition: JointPositionActuator.h:39
double Real
Definition: Real.h:42
@ SAFETY_MODE_NORMAL
Definition: UniversalRobotsRtde.h:128
void doScript(const ::std::string &script)
void open()
Definition: UniversalRobotsRtde.cpp:480
Motion vector.
Definition: MotionVector.h:45
virtual void setAnalogOutput(const ::std::vector< ::rl::math::Real > &values)
Definition: AnalogOutputWriter.cpp:43
::std::size_t getAnalogOutputCount() const
Definition: UniversalRobotsRtde.cpp:201
SafetyMode
Definition: UniversalRobotsRtde.h:127
@ ROBOT_MODE_POWER_ON
Definition: UniversalRobotsRtde.h:101
virtual void setDigitalOutput(const ::boost::dynamic_bitset<> &bitset)
Definition: DigitalOutputWriter.cpp:43
::std::int32_t jointMode[6]
Definition: UniversalRobotsRtde.h:316
@ ROBOT_MODE_POWER_OFF
Definition: UniversalRobotsRtde.h:100
double standardAnalogOutput1
Definition: UniversalRobotsRtde.h:344
@ JOINT_MODE_CALIBRATION
Definition: UniversalRobotsRtde.h:89
@ SAFETY_MODE_SYSTEM_EMERGENCY_STOP
Definition: UniversalRobotsRtde.h:133
@ ROBOT_STATUS_PROGRAM_RUNNING
Definition: UniversalRobotsRtde.h:111
void setAnalogOutputUnit(const ::std::vector< ::rl::math::Unit > &values)
Definition: UniversalRobotsRtde.cpp:1023
virtual ::std::vector< ::rl::math::Real > getAnalogOutput() const
Definition: AnalogOutputReader.cpp:43
::std::int32_t outputIntRegister[24]
Definition: UniversalRobotsRtde.h:326
Robotics Library.
Definition: AnalogInput.cpp:30