|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_HAL_MITSUBISHIH7_H
28 #define RL_HAL_MITSUBISHIH7_H
66 const ::std::size_t&
dof,
69 const unsigned short int& portTcp = 10001,
70 const unsigned short int& portUdp = 10000,
93 ::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1>
getMotorPulse()
const;
97 void loadProgram(const ::std::string& name, const ::std::string& program);
107 void setInput(const ::std::uint16_t& bitTop);
113 void setMotorPulse(const ::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1>& p);
115 void setOutput(const ::std::uint16_t& bitTop, const ::std::uint16_t& bitMask, const ::std::uint16_t& ioData);
324 #endif // RL_HAL_MITSUBISHIH7_H
void stopProgram()
Definition: MitsubishiH7.cpp:488
Data dat
Position data.
Definition: MitsubishiH7.h:221
void shut()
Definition: MitsubishiH7.cpp:371
Definition: JointPositionSensor.h:39
void open()
Definition: MitsubishiH7.cpp:229
::std::uint32_t cCount
Counter for communication data.
Definition: MitsubishiH7.h:235
::std::uint16_t recvType
Reply data type designation.
Definition: MitsubishiH7.h:217
@ MODE_JOINT
Definition: MitsubishiH7.h:60
::std::uint16_t haltIoData
Definition: MitsubishiH7.h:305
::Eigen::Transform< Real, 3, ::Eigen::Affine > Transform
Rigid transformation in 3D.
Definition: Transform.h:46
float j4
J4 axis angle [rad].
Definition: MitsubishiH7.h:159
Mode
Definition: MitsubishiH7.h:59
::std::uint16_t sendIoType
Transmission input/output signal data designation.
Definition: MitsubishiH7.h:223
::std::uint32_t sflg2
Structural flag 2.
Definition: MitsubishiH7.h:176
static const ::std::uint16_t MXT_IO_OUT
Output signal.
Definition: MitsubishiH7.h:266
float j6
J6 axis angle [rad].
Definition: MitsubishiH7.h:163
::rl::math::Vector getJointPosition() const
Definition: MitsubishiH7.cpp:147
::std::uint16_t recvType3
Reply data type designation.
Definition: MitsubishiH7.h:249
Pose pos
XYZ type [mm or rad].
Definition: MitsubishiH7.h:204
float y
Y axis coordinate value [mm].
Definition: MitsubishiH7.h:135
MitsubishiH7(const ::std::size_t &dof, const ::std::string &addressServer, const ::std::string &addressClient, const unsigned short int &portTcp=10001, const unsigned short int &portUdp=10000, const Mode &mode=MODE_JOINT, const ::std::uint16_t &haltIoData=0x00AA, const ::std::uint16_t &releaseIoData=0x00A6, const ::std::uint16_t &shutIoData=0x000A9)
Definition: MitsubishiH7.cpp:38
Mode getMode() const
Definition: MitsubishiH7.cpp:177
void step()
Definition: MitsubishiH7.cpp:418
::std::int32_t p1
Motor 1 axis.
Definition: MitsubishiH7.h:182
float a
A axis coordinate value [rad].
Definition: MitsubishiH7.h:139
void setFilter(const ::std::size_t &filter)
Definition: MitsubishiH7.cpp:261
MitsubishiR3 r3
Definition: MitsubishiH7.h:313
void halt()
Definition: MitsubishiH7.cpp:213
World w
Definition: MitsubishiH7.h:172
Definition: MitsubishiH7.h:151
::rl::math::Transform getCartesianPosition() const
Definition: MitsubishiH7.cpp:86
::std::uint16_t reserve1
Reservation.
Definition: MitsubishiH7.h:239
::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector
Definition: Vector.h:42
static const ::std::uint16_t MXT_TYPE_POSE_FEEDBACK
XYZ data (encoder feedback value).
Definition: MitsubishiH7.h:285
Command in
Definition: MitsubishiH7.h:307
Definition: CartesianPositionActuator.h:39
float j7
Additional axis 1 (J7 axis angle) [mm or rad].
Definition: MitsubishiH7.h:165
static const ::std::uint16_t MXT_TYPE_NULL
No data.
Definition: MitsubishiH7.h:271
Definition: MitsubishiH7.h:180
static const ::std::uint16_t MXT_TYPE_PULSE_FEEDBACK
Motor pulse data (encoder feedback value).
Definition: MitsubishiH7.h:289
static const ::std::uint16_t MXT_TYPE_JOINT_FEEDBACK
Joint data (encoder feedback value).
Definition: MitsubishiH7.h:287
Command out
Definition: MitsubishiH7.h:311
Pulse pls
Motor pulse type [the pulse] or current type [%].
Definition: MitsubishiH7.h:208
static const ::std::uint16_t MXT_TYPE_PULSE
Motor pulse data.
Definition: MitsubishiH7.h:277
::std::uint16_t tCount
Timeout time counter.
Definition: MitsubishiH7.h:233
virtual ~MitsubishiH7()
Definition: MitsubishiH7.cpp:73
float j2
J2 axis angle [rad].
Definition: MitsubishiH7.h:155
Definition: CyclicDevice.h:39
Definition: MitsubishiH7.h:202
::std::int32_t p2
Motor 2 axis.
Definition: MitsubishiH7.h:184
::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1 > getMotorPulse() const
Definition: MitsubishiH7.cpp:183
::std::uint16_t reserve2
Reservation.
Definition: MitsubishiH7.h:245
::std::size_t dof
Degrees of freedom.
Definition: AxisController.h:52
::std::int32_t p3
Motor 3 axis.
Definition: MitsubishiH7.h:186
::std::int32_t p5
Motor 5 axis.
Definition: MitsubishiH7.h:190
static const ::std::uint16_t MXT_IO_NULL
No data.
Definition: MitsubishiH7.h:264
::std::uint16_t sendType
Transmission data type designation.
Definition: MitsubishiH7.h:215
float l2
Additional axis 2 [mm or rad].
Definition: MitsubishiH7.h:147
Socket socket
Definition: MitsubishiH7.h:319
::std::int32_t p7
Additional axis 1 (Motor 7 axis).
Definition: MitsubishiH7.h:194
void close()
Definition: MitsubishiH7.cpp:78
void setOutput(const ::std::uint16_t &bitTop, const ::std::uint16_t &bitMask, const ::std::uint16_t &ioData)
Definition: MitsubishiH7.cpp:361
::std::uint16_t shutIoData
Definition: MitsubishiH7.h:317
void startProgram(const ::std::string &name)
Definition: MitsubishiH7.cpp:409
::std::int32_t p4
Motor 4 axis.
Definition: MitsubishiH7.h:188
static const ::std::uint16_t MXT_TYPE_PULSE_FILTER
Motor pulse data (position after filter process).
Definition: MitsubishiH7.h:283
@ MODE_PULSE
Definition: MitsubishiH7.h:62
void setCartesianPosition(const ::rl::math::Transform &x)
Definition: MitsubishiH7.cpp:244
float c
C axis coordinate value [rad].
Definition: MitsubishiH7.h:143
::std::uint16_t recvIoType
Reply input/output signal data designation.
Definition: MitsubishiH7.h:225
void release()
Definition: MitsubishiH7.cpp:238
::std::string addressClient
Client ip address or hostname.
Definition: MitsubishiH7.h:297
static const ::std::uint16_t MXT_TYPE_JOINT_FILTER
Joint data (position after filter process).
Definition: MitsubishiH7.h:281
void start()
Definition: MitsubishiH7.cpp:377
@ MODE_POSE
Definition: MitsubishiH7.h:61
void stop()
Definition: MitsubishiH7.cpp:454
Data dat3
Position data.
Definition: MitsubishiH7.h:253
::std::uint16_t bitMask
Bit mask pattern designation (valid only for commanding) [0x0000-0xFFFF].
Definition: MitsubishiH7.h:229
::std::uint16_t reserve
Reservation.
Definition: MitsubishiH7.h:219
::std::int32_t lng[8]
Integer type [%% / non-unit].
Definition: MitsubishiH7.h:210
static const ::std::uint16_t MXT_TYPE_CURRENT_COMMAND
Current command [%].
Definition: MitsubishiH7.h:291
void loadProgram(const ::std::string &name, const ::std::string &program)
Definition: MitsubishiH7.cpp:219
Mitsubishi Electric R3 protocol.
Definition: MitsubishiR3.h:46
void setMode(const Mode &mode)
Definition: MitsubishiH7.cpp:315
::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1 > getCurrentFeedback() const
Definition: MitsubishiH7.cpp:105
Data dat1
Position data.
Definition: MitsubishiH7.h:241
float j3
J3 axis angle [rad].
Definition: MitsubishiH7.h:157
::std::uint16_t reserve3
Reservation.
Definition: MitsubishiH7.h:251
::std::size_t getFilter() const
Definition: MitsubishiH7.cpp:135
void setInput(const ::std::uint16_t &bitTop)
Definition: MitsubishiH7.cpp:267
Definition: MitsubishiH7.h:200
static const ::std::uint16_t MXT_TYPE_POSE
XYZ data.
Definition: MitsubishiH7.h:273
static const ::std::uint16_t MXT_TYPE_POSE_FILTER
XYZ data (position after filter process).
Definition: MitsubishiH7.h:279
static const ::std::uint16_t MXT_IO_IN
Input signal.
Definition: MitsubishiH7.h:268
Definition: CartesianPositionSensor.h:39
::std::uint16_t getIoData() const
Definition: MitsubishiH7.cpp:141
static const ::std::uint16_t MXT_COMMAND_NULL
Real-time external command invalid.
Definition: MitsubishiH7.h:257
void setJointPosition(const ::rl::math::Vector &q)
Definition: MitsubishiH7.cpp:275
Definition: MitsubishiH7.h:171
::std::uint16_t recvType2
Reply data type designation.
Definition: MitsubishiH7.h:243
static const ::std::uint16_t MXT_TYPE_CURRENT_FEEDBACK
Current feedback [%].
Definition: MitsubishiH7.h:293
::std::int32_t p8
Additional axis 2 (Motor 8 axis).
Definition: MitsubishiH7.h:196
::std::uint16_t releaseIoData
Definition: MitsubishiH7.h:315
float x
X axis coordinate value [mm].
Definition: MitsubishiH7.h:133
static const ::std::uint16_t MXT_COMMAND_END
Real-time external command end.
Definition: MitsubishiH7.h:261
::std::int32_t p6
Motor 6 axis.
Definition: MitsubishiH7.h:192
::std::size_t filter
Internal filter value.
Definition: MitsubishiH7.h:303
Definition: MitsubishiH7.h:131
::std::uint16_t command
Command.
Definition: MitsubishiH7.h:213
Mode mode
Definition: MitsubishiH7.h:309
float j8
Additional axis 2 (J8 axis angle) [mm or rad].
Definition: MitsubishiH7.h:167
Definition: JointPositionActuator.h:39
::std::uint16_t ioData
Input or output signal data value (for monitoring) [0x0000-0xFFFF].
Definition: MitsubishiH7.h:231
float b
B axis coordinate value [rad].
Definition: MitsubishiH7.h:141
::std::uint16_t recvType1
Reply data type designation.
Definition: MitsubishiH7.h:237
::std::uint16_t bitTop
Head bit no.
Definition: MitsubishiH7.h:227
Data dat2
Position data.
Definition: MitsubishiH7.h:247
static const ::std::uint16_t MXT_COMMAND_MOVE
Real-time external command valid.
Definition: MitsubishiH7.h:259
::std::uint32_t sflg1
Structural flag 1.
Definition: MitsubishiH7.h:174
float j5
J5 axis angle [rad].
Definition: MitsubishiH7.h:161
Mitsubishi Electric MELFA Ethernet interface (software version H7 or later).
Definition: MitsubishiH7.h:56
void setMotorPulse(const ::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1 > &p)
Definition: MitsubishiH7.cpp:321
float j1
J1 axis angle [rad].
Definition: MitsubishiH7.h:153
Joint jnt
Joint type [rad].
Definition: MitsubishiH7.h:206
float z
Z axis coordinate value [mm].
Definition: MitsubishiH7.h:137
float l1
Additional axis 1 [mm or rad].
Definition: MitsubishiH7.h:145
static const ::std::uint16_t MXT_TYPE_JOINT
Joint data.
Definition: MitsubishiH7.h:275
::std::string addressServer
Server ip address or hostname.
Definition: MitsubishiH7.h:300
Robotics Library.
Definition: AnalogInput.cpp:30