Robotics Library  0.6.2
MitsubishiH7.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2009, Markus Rickert
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 //
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright notice,
11 // this list of conditions and the following disclaimer in the documentation
12 // and/or other materials provided with the distribution.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 // POSSIBILITY OF SUCH DAMAGE.
25 //
26 
27 #ifndef _RL_HAL_MITSUBISHIH7_H_
28 #define _RL_HAL_MITSUBISHIH7_H_
29 
30 #include <string>
31 #include <rl/math/Transform.h>
32 
35 #include "Gripper.h"
36 #include "JointPositionActuator.h"
37 #include "JointPositionSensor.h"
38 #include "types.h"
39 
40 namespace rl
41 {
42  namespace hal
43  {
44  class TcpSocket;
45  class UdpSocket;
46 
48  {
49  public:
50  enum Mode
51  {
53  MODE_POSE = 0,
54  MODE_PULSE = 2
55  };
56 
57  enum HandSts
58  {
63  HANDSTS_CLOSED = 2
64  };
65 
66  enum HandType
67  {
72  HANDTYPE_DOUBLE = 1
73  };
74 
75  enum TaskCond
76  {
83  };
84 
85  struct EditSts
86  {
88  bool isEditing;
90  bool isRunning;
92  bool isChanged;
93  };
94 
95  struct Hand
96  {
98  int outputNo;
103  };
104 
106  typedef bool MechInfo[3];
107 
108  struct RunSts
109  {
111  bool isRepeat;
115  bool isMlockOn;
117  bool isTeach;
121  bool isServoOn;
123  bool isRun;
126  };
127 
128  struct StopSts
129  {
131  bool isEmgStop;
133  bool isStop;
135  bool isWait;
141  bool isReserve;
144  };
145 
146  struct CalibState
147  {
149  bool isDefined;
151  bool isAxis[8];
152  };
153 
154  typedef Hand HandState[8];
155 
156  struct RunState
157  {
159  char programName[256];
161  int lineNo;
163  int override;
171  int errorNo;
173  int stepNo;
177  char taskPrgName[256];
183  int taskPri;
185  int mechNo;
186  };
187 
189  {
191  bool isTb;
193  bool isPc;
195  bool isIo;
197  bool isOp;
199  bool isIoEmg;
201  bool isOpEmg;
203  bool isTbEmg;
204  };
205 
206  struct StopState
207  {
213  int errorNo;
215  int stepNo;
217  int mechNo;
218  };
219 
220  MitsubishiH7(
221  const ::std::size_t& dof,
222  const ::std::string& server,
223  const ::std::string& client,
224  const unsigned short int& tcp = 10001,
225  const unsigned short int& udp = 10000,
226  const Mode& mode = MODE_JOINT,
227  const uint16_t& haltIoData = 0x00AA,
228  const uint16_t& releaseIoData = 0x00A6,
229  const uint16_t& shutIoData = 0x000A9
230  );
231 
232  virtual ~MitsubishiH7();
233 
238  void calibCmd(CalibState& state) const;
239 
240  void close();
241 
248  void cntlCmd(const bool& doOn) const;
249 
260  void datinstCmd(const ::std::string& j1, const ::std::string& j2, const ::std::string& j3, const ::std::string& j4, const ::std::string& j5, const ::std::string& j6, const ::std::string& checksum) const;
261 
274  void datinstCmd(const ::std::string& j1, const ::std::string& j2, const ::std::string& j3, const ::std::string& j4, const ::std::string& j5, const ::std::string& j6, const ::std::string& j7, const ::std::string& j8, const ::std::string& checksum) const;
275 
280  void dstateCmd(StopState& state) const;
281 
286  void eclrCmd() const;
287 
293  void emdatCmd(const ::std::string& program) const;
294 
300  ::std::string errormesCmd(const int& errorNo) const;
301 
306  void execCmd(const ::std::string& instruction) const;
307 
308  void getCartesianPosition(::rl::math::Transform& x) const;
309 
310  void getCurrentFeedback(::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 >& c) const;
311 
312  ::std::size_t getFilter() const;
313 
314  uint16_t getIoData() const;
315 
316  void getJointPosition(::rl::math::Vector& q) const;
317 
318  Mode getMode() const;
319 
320  void getMotorPulse(::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 >& p) const;
321 
322  void halt();
323 
329  void hndCmd(const bool& doOpen, const int& handNo) const;
330 
335  void hndstsCmd(HandState& state) const;
336 
342  void inEqualsCmd(const ::std::size_t& inNo, const ::std::string& inVal) const;
343 
348  void loadCmd(const ::std::string& programName) const;
349 
350  void loadProgram(const ::std::string& name, const ::std::string& program) const;
351 
355  void newCmd() const;
356 
357  void open();
358 
364  void outEqualsCmd(const ::std::size_t& outNo, const ::std::string& outVal) const;
365 
366  void release();
367 
371  void rstalrmCmd() const;
372 
376  void rstpwrCmd() const;
377 
383  void runCmd(const ::std::string& programName, const bool& doModeCycle = false) const;
384 
388  void saveCmd() const;
389 
391 
392  void setFilter(const ::std::size_t& filter);
393 
394  void setInput(const uint16_t& bitTop);
395 
397 
398  void setMode(const Mode& mode);
399 
400  void setMotorPulse(const ::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 >& p);
401 
402  void setOutput(const uint16_t& bitTop, const uint16_t& bitMask, const uint16_t& ioData);
403 
404  void shut();
405 
409  void slotinitCmd() const;
410 
415  void srvCmd(const bool& doOn) const;
416 
417  void start();
418 
419  void startProgram(const ::std::string& name) const;
420 
425  void stateCmd(RunState& state) const;
426 
427  void step();
428 
432  void stopCmd() const;
433 
434  void stop();
435 
436  void stopProgram() const;
437 
442  void stpsigCmd(StopSignalState& state) const;
443 
444  protected:
445  struct MxtWorld
446  {
448  float x;
450  float y;
452  float z;
454  float a;
456  float b;
458  float c;
460  float l1;
462  float l2;
463  };
464 
465  struct MxtJoint
466  {
468  float j1;
470  float j2;
472  float j3;
474  float j4;
476  float j5;
478  float j6;
480  float j7;
482  float j8;
483  };
484 
485  struct MxtPose
486  {
489  uint32_t sflg1;
491  uint32_t sflg2;
492  };
493 
494  struct MxtPulse
495  {
497  int32_t p1;
499  int32_t p2;
501  int32_t p3;
503  int32_t p4;
505  int32_t p5;
507  int32_t p6;
509  int32_t p7;
511  int32_t p8;
512  };
513 
514  struct MxtCommand
515  {
516  union MxtData
517  {
525  int32_t lng[8];
526  };
528  uint16_t command;
530  uint16_t sendType;
532  uint16_t recvType;
534  uint16_t reserve;
538  uint16_t sendIoType;
540  uint16_t recvIoType;
542  uint16_t bitTop;
544  uint16_t bitMask;
546  uint16_t ioData;
548  uint16_t tCount;
550  uint32_t cCount;
552  uint16_t recvType1;
554  uint16_t reserve1;
558  uint16_t recvType2;
560  uint16_t reserve2;
564  uint16_t recvType3;
566  uint16_t reserve3;
569  };
570 
571  private:
573  ::std::string client;
574 
576  ::std::size_t filter;
577 
578  uint16_t haltIoData;
579 
581 
583 
585 
586  uint16_t releaseIoData;
587 
589  ::std::string server;
590 
591  uint16_t shutIoData;
592 
594 
596  };
597  }
598 }
599 
600 #endif // _RL_HAL_MITSUBISHIH7_H_
rl::hal::MitsubishiH7::MxtCommand::recvType3
uint16_t recvType3
Reply data type designation.
Definition: MitsubishiH7.h:564
rl::hal::MitsubishiH7::MxtWorld::c
float c
C axis coordinate value [rad].
Definition: MitsubishiH7.h:458
rl::hal::MitsubishiH7::shut
void shut()
Definition: MitsubishiH7.cpp:998
rl::hal::MitsubishiH7::StopSts::isPseudoInput
bool isPseudoInput
Pseudo input.
Definition: MitsubishiH7.h:143
rl::hal::MitsubishiH7::setMotorPulse
void setMotorPulse(const ::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 > &p)
Definition: MitsubishiH7.cpp:948
rl::hal::MitsubishiH7::StopSignalState::isTb
bool isTb
T/B (RS-422).
Definition: MitsubishiH7.h:191
rl::hal::MitsubishiH7::MxtJoint::j6
float j6
J6 axis angle [rad].
Definition: MitsubishiH7.h:478
rl::hal::MitsubishiH7::calibCmd
void calibCmd(CalibState &state) const
The install status is read.
Definition: MitsubishiH7.cpp:144
rl::hal::MitsubishiH7::RunSts::isServoOn
bool isServoOn
Servo OFF / Servo ON.
Definition: MitsubishiH7.h:121
rl::hal::JointPositionSensor
Definition: JointPositionSensor.h:39
rl::hal::MitsubishiH7::open
void open()
Definition: MitsubishiH7.cpp:776
rl::hal::MitsubishiH7::MxtCommand::command
uint16_t command
Command.
Definition: MitsubishiH7.h:528
rl::hal::MitsubishiH7::StopSts
Definition: MitsubishiH7.h:129
rl::hal::MitsubishiH7::StopSts::isStop
bool isStop
STOP.
Definition: MitsubishiH7.h:133
rl::hal::MitsubishiH7::MODE_JOINT
@ MODE_JOINT
Definition: MitsubishiH7.h:52
rl::hal::MitsubishiH7::StopSignalState::isIo
bool isIo
I/O.
Definition: MitsubishiH7.h:195
rl::hal::MitsubishiH7::outEqualsCmd
void outEqualsCmd(const ::std::size_t &outNo, const ::std::string &outVal) const
The output signal is compelling output.
Definition: MitsubishiH7.cpp:784
rl::hal::MitsubishiH7::Mode
Mode
Definition: MitsubishiH7.h:51
rl::hal::MitsubishiH7::StopSignalState
Definition: MitsubishiH7.h:189
rl::hal::MitsubishiH7::RunState::runSts
RunSts runSts
Run status.
Definition: MitsubishiH7.h:167
rl::hal::MitsubishiH7::StopState
Definition: MitsubishiH7.h:207
rl::hal::MitsubishiH7::MxtCommand::recvType1
uint16_t recvType1
Reply data type designation.
Definition: MitsubishiH7.h:552
rl::hal::MitsubishiH7::MxtJoint::j1
float j1
J1 axis angle [rad].
Definition: MitsubishiH7.h:468
types.h
rl::hal::MitsubishiH7::HANDSTS_NOTUSED
@ HANDSTS_NOTUSED
Definition: MitsubishiH7.h:59
rl::hal::MitsubishiH7::RunSts::isMlockOn
bool isMlockOn
MLOCK OFF / MLOCK ON.
Definition: MitsubishiH7.h:115
rl::hal::MitsubishiH7::startProgram
void startProgram(const ::std::string &name) const
Definition: MitsubishiH7.cpp:1074
rl::hal::MitsubishiH7::HANDSTS_OPEN
@ HANDSTS_OPEN
Hand open.
Definition: MitsubishiH7.h:61
rl::hal::MitsubishiH7::haltIoData
uint16_t haltIoData
Definition: MitsubishiH7.h:578
rl::hal::MitsubishiH7::MxtCommand::reserve2
uint16_t reserve2
Reservation.
Definition: MitsubishiH7.h:560
rl::hal::MitsubishiH7::MxtPulse
Definition: MitsubishiH7.h:495
rl::hal::MitsubishiH7::MxtCommand::cCount
uint32_t cCount
Counter for communication data.
Definition: MitsubishiH7.h:550
rl::hal::MitsubishiH7::HANDTYPE_NOTUSED
@ HANDTYPE_NOTUSED
Definition: MitsubishiH7.h:68
rl::hal::MitsubishiH7::getMode
Mode getMode() const
Definition: MitsubishiH7.cpp:571
rl::hal::MitsubishiH7::EditSts
Definition: MitsubishiH7.h:86
rl::hal::MitsubishiH7::HandState
Hand HandState[8]
Definition: MitsubishiH7.h:154
rl::hal::MitsubishiH7::runCmd
void runCmd(const ::std::string &programName, const bool &doModeCycle=false) const
The program is started.
Definition: MitsubishiH7.cpp:838
rl::hal::MitsubishiH7::getJointPosition
void getJointPosition(::rl::math::Vector &q) const
Definition: MitsubishiH7.cpp:543
rl::hal::MitsubishiH7::step
void step()
Definition: MitsubishiH7.cpp:1255
rl::hal::MitsubishiH7::dstateCmd
void dstateCmd(StopState &state) const
The stop state is read.
Definition: MitsubishiH7.cpp:253
rl::hal::MitsubishiH7::StopSts::isWait
bool isWait
WAIT.
Definition: MitsubishiH7.h:135
rl::hal::MitsubishiH7::MxtJoint::j7
float j7
Additional axis 1 (J7 axis angle) [mm or rad].
Definition: MitsubishiH7.h:480
rl::hal::MitsubishiH7::stopCmd
void stopCmd() const
The start is stopped.
Definition: MitsubishiH7.cpp:1327
rl::hal::MitsubishiH7::StopSts::isEmgStop
bool isEmgStop
EMG STOP.
Definition: MitsubishiH7.h:131
rl::hal::MitsubishiH7::MxtCommand::bitTop
uint16_t bitTop
Head bit no.
Definition: MitsubishiH7.h:542
rl::hal::MitsubishiH7::HandSts
HandSts
Definition: MitsubishiH7.h:58
rl::hal::MitsubishiH7::stateCmd
void stateCmd(RunState &state) const
The run state is read.
Definition: MitsubishiH7.cpp:1083
rl::hal::MitsubishiH7::hndCmd
void hndCmd(const bool &doOpen, const int &handNo) const
The hand is openend and closed.
Definition: MitsubishiH7.cpp:611
rl::hal::MitsubishiH7::out
MxtCommand out
Definition: MitsubishiH7.h:584
rl::hal::MitsubishiH7::MxtJoint::j3
float j3
J3 axis angle [rad].
Definition: MitsubishiH7.h:472
rl::hal::MitsubishiH7::setFilter
void setFilter(const ::std::size_t &filter)
Definition: MitsubishiH7.cpp:888
rl::hal::MitsubishiH7::halt
void halt()
Definition: MitsubishiH7.cpp:605
rl::hal::MitsubishiH7::saveCmd
void saveCmd() const
The content of the edit is preserved and the program is closed.
Definition: MitsubishiH7.cpp:856
rl::hal::MitsubishiH7::StopSignalState::isPc
bool isPc
P/C (RS-232C).
Definition: MitsubishiH7.h:193
rl::hal::MitsubishiH7::RunState::mechInfo
MechInfo mechInfo
Mech info.
Definition: MitsubishiH7.h:175
rl::hal::MitsubishiH7::CalibState::isDefined
bool isDefined
Install status.
Definition: MitsubishiH7.h:149
rl::hal::MitsubishiH7::EditSts::isRunning
bool isRunning
Running.
Definition: MitsubishiH7.h:90
rl::hal::MitsubishiH7::udp
UdpSocket * udp
Definition: MitsubishiH7.h:595
rl::hal::MitsubishiH7::EditSts::isChanged
bool isChanged
Changed.
Definition: MitsubishiH7.h:92
rl::hal::MitsubishiH7::errormesCmd
::std::string errormesCmd(const int &errorNo) const
The content of the error is read.
Definition: MitsubishiH7.cpp:451
rl::hal::MitsubishiH7::RunState::errorNo
int errorNo
Error number (0: no error).
Definition: MitsubishiH7.h:171
rl::hal::MitsubishiH7::TaskCond
TaskCond
Definition: MitsubishiH7.h:76
rl::hal::MitsubishiH7::RunState::stopSts
StopSts stopSts
Stop status.
Definition: MitsubishiH7.h:169
rl::hal::MitsubishiH7::MxtPulse::p8
int32_t p8
Additional axis 2 (Motor 8 axis).
Definition: MitsubishiH7.h:511
rl::hal::MitsubishiH7::stpsigCmd
void stpsigCmd(StopSignalState &state) const
The state of the stop signal is read.
Definition: MitsubishiH7.cpp:1348
rl::hal::MitsubishiH7::newCmd
void newCmd() const
The program is closed annulling the content of the edit.
Definition: MitsubishiH7.cpp:761
rl::hal::MitsubishiH7::MxtPose
Definition: MitsubishiH7.h:486
rl::hal::CartesianPositionActuator
Definition: CartesianPositionActuator.h:39
rl::hal::MitsubishiH7::MxtCommand::dat
MxtData dat
Position data.
Definition: MitsubishiH7.h:536
rl::hal::MitsubishiH7::StopSts::isProgramSelectEnable
bool isProgramSelectEnable
Program select enable.
Definition: MitsubishiH7.h:139
rl::hal::MitsubishiH7::MxtWorld::l2
float l2
Additional axis 2 [mm or rad].
Definition: MitsubishiH7.h:462
rl::hal::MitsubishiH7::getCartesianPosition
void getCartesianPosition(::rl::math::Transform &x) const
Definition: MitsubishiH7.cpp:489
rl::hal::MitsubishiH7::hndstsCmd
void hndstsCmd(HandState &state) const
The setting and the output of the hand are read.
Definition: MitsubishiH7.cpp:631
rl::hal::MitsubishiH7::MxtPulse::p4
int32_t p4
Motor 4 axis.
Definition: MitsubishiH7.h:503
rl::hal::MitsubishiH7::RunSts::isOperationEnable
bool isOperationEnable
Operation disable / Operation enable.
Definition: MitsubishiH7.h:125
rl::hal::MitsubishiH7::~MitsubishiH7
virtual ~MitsubishiH7()
Definition: MitsubishiH7.cpp:137
rl::hal::MitsubishiH7::MxtCommand::MxtData::jnt
MxtJoint jnt
Joint type [rad].
Definition: MitsubishiH7.h:521
rl::hal::MitsubishiH7::MxtCommand::dat3
MxtData dat3
Position data.
Definition: MitsubishiH7.h:568
rl::hal::MitsubishiH7::StopState::errorNo
int errorNo
Error number (0: no error).
Definition: MitsubishiH7.h:213
rl::hal::MitsubishiH7::CalibState
Definition: MitsubishiH7.h:147
rl::hal::MitsubishiH7::MxtPulse::p1
int32_t p1
Motor 1 axis.
Definition: MitsubishiH7.h:497
rl::hal::MitsubishiH7::MxtCommand::recvType2
uint16_t recvType2
Reply data type designation.
Definition: MitsubishiH7.h:558
rl::hal::MitsubishiH7::Hand::handSts
HandSts handSts
Hand output status.
Definition: MitsubishiH7.h:100
rl::hal::MitsubishiH7::MxtWorld::b
float b
B axis coordinate value [rad].
Definition: MitsubishiH7.h:456
rl::hal::AxisController::dof
::std::size_t dof
Degrees of freedom.
Definition: AxisController.h:53
rl::hal::MitsubishiH7::StopSignalState::isOpEmg
bool isOpEmg
O/P EMG.
Definition: MitsubishiH7.h:201
rl::hal::MitsubishiH7::RunSts::isTeach
bool isTeach
Auto / Teach.
Definition: MitsubishiH7.h:117
rl::hal::MitsubishiH7::MxtWorld::y
float y
Y axis coordinate value [mm].
Definition: MitsubishiH7.h:450
rl::hal::MitsubishiH7::RunSts::isRun
bool isRun
STOP / RUN.
Definition: MitsubishiH7.h:123
rl::hal::MitsubishiH7::RunState
Definition: MitsubishiH7.h:157
rl::hal::MitsubishiH7::MxtCommand::bitMask
uint16_t bitMask
Bit mask pattern designation (valid only for commanding) [0x0000-0xFFFF].
Definition: MitsubishiH7.h:544
rl::hal::MitsubishiH7::RunState::isTaskModeCycle
bool isTaskModeCycle
Operation mode of slot table (REP / CYC).
Definition: MitsubishiH7.h:179
rl::hal::MitsubishiH7::MxtJoint::j2
float j2
J2 axis angle [rad].
Definition: MitsubishiH7.h:470
rl::hal::MitsubishiH7::loadCmd
void loadCmd(const ::std::string &programName) const
Open the program for edit.
Definition: MitsubishiH7.cpp:733
rl::hal::MitsubishiH7::HANDSTS_CLOSED
@ HANDSTS_CLOSED
Hand closed.
Definition: MitsubishiH7.h:63
rl::hal::MitsubishiH7::MxtPulse::p3
int32_t p3
Motor 3 axis.
Definition: MitsubishiH7.h:501
rl::hal::MitsubishiH7::MxtJoint
Definition: MitsubishiH7.h:466
rl::hal::MitsubishiH7::MxtCommand::recvIoType
uint16_t recvIoType
Reply input/output signal data designation.
Definition: MitsubishiH7.h:540
rl::hal::MitsubishiH7::setInput
void setInput(const uint16_t &bitTop)
Definition: MitsubishiH7.cpp:894
rl::hal::MitsubishiH7::StopState::stopSts
StopSts stopSts
Stop status.
Definition: MitsubishiH7.h:211
rl::hal::MitsubishiH7::RunState::mechNo
int mechNo
Mech number under use.
Definition: MitsubishiH7.h:185
rl::hal::MitsubishiH7::rstalrmCmd
void rstalrmCmd() const
The error is reset.
Definition: MitsubishiH7.cpp:808
rl::hal::MitsubishiH7::MxtCommand::MxtData::pos
MxtPose pos
XYZ type [mm or rad].
Definition: MitsubishiH7.h:519
rl::hal::MitsubishiH7::getMotorPulse
void getMotorPulse(::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 > &p) const
Definition: MitsubishiH7.cpp:577
rl::hal::TcpSocket
Definition: TcpSocket.h:37
CartesianPositionSensor.h
rl::hal::MitsubishiH7::MxtCommand::dat2
MxtData dat2
Position data.
Definition: MitsubishiH7.h:562
rl::hal::MitsubishiH7::RunState::taskPri
int taskPri
Priority of slot table (1 - 31).
Definition: MitsubishiH7.h:183
Gripper.h
rl::hal::MitsubishiH7::MxtCommand::MxtData::pls
MxtPulse pls
Motor pulse type [the pulse] or current type [%].
Definition: MitsubishiH7.h:523
rl::hal::MitsubishiH7::loadProgram
void loadProgram(const ::std::string &name, const ::std::string &program) const
Definition: MitsubishiH7.cpp:751
rl::hal::MitsubishiH7::close
void close()
Definition: MitsubishiH7.cpp:191
rl::hal::MitsubishiH7::RunState::editSts
EditSts editSts
Edit status.
Definition: MitsubishiH7.h:165
rl::hal::MitsubishiH7::StopState::mechNo
int mechNo
Mech number under use.
Definition: MitsubishiH7.h:217
rl::hal::MitsubishiH7::shutIoData
uint16_t shutIoData
Definition: MitsubishiH7.h:591
rl::hal::MitsubishiH7::rstpwrCmd
void rstpwrCmd() const
Power supply reset (reboot) of the controller is executed.
Definition: MitsubishiH7.cpp:823
rl::hal::MitsubishiH7::RunSts::isRepeat
bool isRepeat
Cycle / Repeat.
Definition: MitsubishiH7.h:111
rl::hal::MitsubishiH7::MxtPulse::p6
int32_t p6
Motor 6 axis.
Definition: MitsubishiH7.h:507
rl::hal::MitsubishiH7::MxtPose::sflg1
uint32_t sflg1
Structural flag 1.
Definition: MitsubishiH7.h:489
rl::hal::MitsubishiH7::MxtCommand::reserve
uint16_t reserve
Reservation.
Definition: MitsubishiH7.h:534
rl::hal::MitsubishiH7::MxtCommand::MxtData
Definition: MitsubishiH7.h:517
rl::hal::MitsubishiH7::Hand
Definition: MitsubishiH7.h:96
rl::hal::MitsubishiH7::MxtCommand::sendType
uint16_t sendType
Transmission data type designation.
Definition: MitsubishiH7.h:530
rl::hal::MitsubishiH7::HANDTYPE_SINGLE
@ HANDTYPE_SINGLE
Single-solenoid.
Definition: MitsubishiH7.h:70
rl::hal::MitsubishiH7::MxtWorld::l1
float l1
Additional axis 1 [mm or rad].
Definition: MitsubishiH7.h:460
rl::hal::MitsubishiH7::MxtCommand::tCount
uint16_t tCount
Timeout time counter.
Definition: MitsubishiH7.h:548
rl::hal::MitsubishiH7::MxtPose::w
MxtWorld w
Definition: MitsubishiH7.h:487
rl::hal::MitsubishiH7::MxtPose::sflg2
uint32_t sflg2
Structural flag 2.
Definition: MitsubishiH7.h:491
rl::hal::MitsubishiH7::MitsubishiH7
MitsubishiH7(const ::std::size_t &dof, const ::std::string &server, const ::std::string &client, const unsigned short int &tcp=10001, const unsigned short int &udp=10000, const Mode &mode=MODE_JOINT, const uint16_t &haltIoData=0x00AA, const uint16_t &releaseIoData=0x00A6, const uint16_t &shutIoData=0x000A9)
Definition: MitsubishiH7.cpp:103
rl::hal::MitsubishiH7::TASKCOND_ERROR
@ TASKCOND_ERROR
ERROR.
Definition: MitsubishiH7.h:82
rl::hal::MitsubishiH7::Hand::handType
HandType handType
Hand type.
Definition: MitsubishiH7.h:102
rl::hal::MitsubishiH7::MxtJoint::j8
float j8
Additional axis 2 (J8 axis angle) [mm or rad].
Definition: MitsubishiH7.h:482
rl::hal::MitsubishiH7::MxtPulse::p7
int32_t p7
Additional axis 1 (Motor 7 axis).
Definition: MitsubishiH7.h:509
rl::hal::MitsubishiH7::MODE_PULSE
@ MODE_PULSE
Definition: MitsubishiH7.h:54
rl::hal::UdpSocket
Definition: UdpSocket.h:37
rl::hal::MitsubishiH7::setCartesianPosition
void setCartesianPosition(const ::rl::math::Transform &x)
Definition: MitsubishiH7.cpp:871
rl::hal::MitsubishiH7::MxtJoint::j5
float j5
J5 axis angle [rad].
Definition: MitsubishiH7.h:476
rl::hal::MitsubishiH7::MxtCommand::reserve1
uint16_t reserve1
Reservation.
Definition: MitsubishiH7.h:554
rl::hal::MitsubishiH7::setOutput
void setOutput(const uint16_t &bitTop, const uint16_t &bitMask, const uint16_t &ioData)
Definition: MitsubishiH7.cpp:988
rl::hal::MitsubishiH7::MxtCommand::recvType
uint16_t recvType
Reply data type designation.
Definition: MitsubishiH7.h:532
CartesianPositionActuator.h
rl::hal::MitsubishiH7::emdatCmd
void emdatCmd(const ::std::string &program) const
More line and position are registered in the program.
Definition: MitsubishiH7.cpp:368
rl::hal::MitsubishiH7::RunSts::isCycleStopOff
bool isCycleStopOff
Cycle stop ON / Cycle stop OFF.
Definition: MitsubishiH7.h:113
rl::hal::MitsubishiH7::release
void release()
Definition: MitsubishiH7.cpp:802
rl::hal::MitsubishiH7::StopSignalState::isIoEmg
bool isIoEmg
I/O EMG.
Definition: MitsubishiH7.h:199
rl::hal::MitsubishiH7::MxtPulse::p2
int32_t p2
Motor 2 axis.
Definition: MitsubishiH7.h:499
rl::hal::MitsubishiH7::MxtCommand::ioData
uint16_t ioData
Input or output signal data value (for monitoring) [0x0000-0xFFFF].
Definition: MitsubishiH7.h:546
rl::hal::MitsubishiH7::StopSignalState::isOp
bool isOp
O/P.
Definition: MitsubishiH7.h:197
rl::hal::MitsubishiH7::start
void start()
Definition: MitsubishiH7.cpp:1037
rl::hal::MitsubishiH7::MODE_POSE
@ MODE_POSE
Definition: MitsubishiH7.h:53
rl::hal::MitsubishiH7::RunState::programName
char programName[256]
Program name loaded into task slot.
Definition: MitsubishiH7.h:159
rl::hal::MitsubishiH7::getIoData
uint16_t getIoData() const
Definition: MitsubishiH7.cpp:537
rl::hal::MitsubishiH7::stop
void stop()
Definition: MitsubishiH7.cpp:1291
rl::hal::MitsubishiH7::RunSts
Definition: MitsubishiH7.h:109
rl::hal::MitsubishiH7::MxtCommand::sendIoType
uint16_t sendIoType
Transmission input/output signal data designation.
Definition: MitsubishiH7.h:538
rl::hal::MitsubishiH7::RunState::stepNo
int stepNo
Execution step number.
Definition: MitsubishiH7.h:173
rl::hal::MitsubishiH7::StopSts::isStopSignalOff
bool isStopSignalOff
STOP signal ON /OFF.
Definition: MitsubishiH7.h:137
rl::hal::MitsubishiH7::TASKCOND_START
@ TASKCOND_START
START.
Definition: MitsubishiH7.h:78
rl::hal::MitsubishiH7::MxtPulse::p5
int32_t p5
Motor 5 axis.
Definition: MitsubishiH7.h:505
rl::hal::MitsubishiH7::RunSts::isTeachRunning
bool isTeachRunning
Running of Teach mode.
Definition: MitsubishiH7.h:119
JointPositionSensor.h
rl::hal::MitsubishiH7::MechInfo
bool MechInfo[3]
Mech info (Mech 1, Mech 2, Mech 3).
Definition: MitsubishiH7.h:106
rl::hal::MitsubishiH7::MxtWorld
Definition: MitsubishiH7.h:446
rl::math::Transform
::Eigen::Transform< Real, 3, ::Eigen::Affine > Transform
Definition: Transform.h:42
rl::hal::MitsubishiH7::setMode
void setMode(const Mode &mode)
Definition: MitsubishiH7.cpp:942
rl::hal::MitsubishiH7::MxtCommand::MxtData::lng
int32_t lng[8]
Integer type [%% / non-unit].
Definition: MitsubishiH7.h:525
rl::hal::MitsubishiH7::CalibState::isAxis
bool isAxis[8]
Completion axis pattern (J1, J2, J3, J4, J5, J6, J7, J8).
Definition: MitsubishiH7.h:151
rl::hal::MitsubishiH7::getFilter
::std::size_t getFilter() const
Definition: MitsubishiH7.cpp:531
rl::hal::MitsubishiH7::HandType
HandType
Definition: MitsubishiH7.h:67
rl::hal::MitsubishiH7::MxtWorld::a
float a
A axis coordinate value [rad].
Definition: MitsubishiH7.h:454
JointPositionActuator.h
rl::hal::MitsubishiH7::in
MxtCommand in
Definition: MitsubishiH7.h:580
rl::hal::MitsubishiH7::RunState::lineNo
int lineNo
Execution line number.
Definition: MitsubishiH7.h:161
rl::hal::MitsubishiH7::RunState::taskPrgName
char taskPrgName[256]
Program name of slot table.
Definition: MitsubishiH7.h:177
rl::hal::MitsubishiH7::execCmd
void execCmd(const ::std::string &instruction) const
The instruction is executed directly.
Definition: MitsubishiH7.cpp:471
rl::hal::CartesianPositionSensor
Definition: CartesianPositionSensor.h:39
rl::hal::MitsubishiH7::server
::std::string server
Server ip address or hostname.
Definition: MitsubishiH7.h:589
rl::hal::MitsubishiH7::MxtJoint::j4
float j4
J4 axis angle [rad].
Definition: MitsubishiH7.h:474
rl::hal::MitsubishiH7::setJointPosition
void setJointPosition(const ::rl::math::Vector &q)
Definition: MitsubishiH7.cpp:902
rl::hal::MitsubishiH7::StopSignalState::isTbEmg
bool isTbEmg
T/B EMG.
Definition: MitsubishiH7.h:203
rl::math::Vector
::Eigen::Matrix< Real, ::Eigen::Dynamic, 1 > Vector
Definition: Vector.h:41
rl::hal::MitsubishiH7::cntlCmd
void cntlCmd(const bool &doOn) const
Operation enable or disable.
Definition: MitsubishiH7.cpp:199
rl::hal::MitsubishiH7::stopProgram
void stopProgram() const
Definition: MitsubishiH7.cpp:1342
rl::hal::MitsubishiH7::getCurrentFeedback
void getCurrentFeedback(::Eigen::Matrix< int32_t, ::Eigen::Dynamic, 1 > &c) const
Definition: MitsubishiH7.cpp:503
rl::hal::MitsubishiH7::tcp
TcpSocket * tcp
Definition: MitsubishiH7.h:593
rl::hal::MitsubishiH7::StopSts::isReserve
bool isReserve
(reserve).
Definition: MitsubishiH7.h:141
rl::hal::MitsubishiH7::inEqualsCmd
void inEqualsCmd(const ::std::size_t &inNo, const ::std::string &inVal) const
The input signal is pseudo-input.
Definition: MitsubishiH7.cpp:715
rl::hal::MitsubishiH7::EditSts::isEditing
bool isEditing
Editing.
Definition: MitsubishiH7.h:88
rl::hal::MitsubishiH7::HANDTYPE_DOUBLE
@ HANDTYPE_DOUBLE
Double-solenoid.
Definition: MitsubishiH7.h:72
Transform.h
rl::hal::MitsubishiH7::MxtCommand::reserve3
uint16_t reserve3
Reservation.
Definition: MitsubishiH7.h:566
rl::hal::MitsubishiH7::TASKCOND_ALWAYS
@ TASKCOND_ALWAYS
ALWAYS.
Definition: MitsubishiH7.h:80
rl::hal::MitsubishiH7::datinstCmd
void datinstCmd(const ::std::string &j1, const ::std::string &j2, const ::std::string &j3, const ::std::string &j4, const ::std::string &j5, const ::std::string &j6, const ::std::string &checksum) const
The origin is set by the data input.
Definition: MitsubishiH7.cpp:217
rl::hal::MitsubishiH7::filter
::std::size_t filter
Internal filter value.
Definition: MitsubishiH7.h:576
rl::hal::MitsubishiH7::MxtWorld::z
float z
Z axis coordinate value [mm].
Definition: MitsubishiH7.h:452
rl::hal::MitsubishiH7::srvCmd
void srvCmd(const bool &doOn) const
The servo power supply is turned on and off.
Definition: MitsubishiH7.cpp:1019
rl::hal::MitsubishiH7::client
::std::string client
Client ip address or hostname.
Definition: MitsubishiH7.h:573
rl::hal::MitsubishiH7::MxtCommand
Definition: MitsubishiH7.h:515
rl::hal::MitsubishiH7::Hand::outputNo
int outputNo
Signal number allocated in hand (-1: not used).
Definition: MitsubishiH7.h:98
rl::hal::MitsubishiH7::mode
Mode mode
Definition: MitsubishiH7.h:582
rl::hal::JointPositionActuator
Definition: JointPositionActuator.h:39
rl::hal::MitsubishiH7::slotinitCmd
void slotinitCmd() const
The program resets all slots.
Definition: MitsubishiH7.cpp:1004
rl::hal::MitsubishiH7::StopState::runSts
RunSts runSts
Run status.
Definition: MitsubishiH7.h:209
rl::hal::MitsubishiH7::StopState::stepNo
int stepNo
Execution step number.
Definition: MitsubishiH7.h:215
rl::hal::MitsubishiH7
Definition: MitsubishiH7.h:48
rl::hal::MitsubishiH7::RunState::taskCond
TaskCond taskCond
Stating conditions of slot table.
Definition: MitsubishiH7.h:181
rl::hal::MitsubishiH7::releaseIoData
uint16_t releaseIoData
Definition: MitsubishiH7.h:586
rl::hal::MitsubishiH7::eclrCmd
void eclrCmd() const
Clear program contents.
Definition: MitsubishiH7.cpp:353
rl::hal::Gripper
Definition: Gripper.h:37
rl::hal::MitsubishiH7::MxtWorld::x
float x
X axis coordinate value [mm].
Definition: MitsubishiH7.h:448
rl::hal::MitsubishiH7::MxtCommand::dat1
MxtData dat1
Position data.
Definition: MitsubishiH7.h:556
rl
Definition: Ati.cpp:35