Robotics Library
0.7.0
|
Mitsubishi Electric MELFA Ethernet interface (software version H7 or later). More...
#include <MitsubishiH7.h>
Classes | |
struct | Command |
struct | Joint |
struct | Pose |
struct | Pulse |
struct | World |
Public Types | |
enum | Mode { MODE_JOINT = 1, MODE_POSE = 0, MODE_PULSE = 2 } |
Public Member Functions | |
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) | |
virtual | ~MitsubishiH7 () |
void | close () |
::rl::math::Transform | getCartesianPosition () const |
::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1 > | getCurrentFeedback () const |
::std::size_t | getFilter () const |
::std::uint16_t | getIoData () const |
::rl::math::Vector | getJointPosition () const |
Mode | getMode () const |
::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1 > | getMotorPulse () const |
void | halt () |
void | loadProgram (const ::std::string &name, const ::std::string &program) |
void | open () |
void | release () |
void | setCartesianPosition (const ::rl::math::Transform &x) |
void | setFilter (const ::std::size_t &filter) |
void | setInput (const ::std::uint16_t &bitTop) |
void | setJointPosition (const ::rl::math::Vector &q) |
void | setMode (const Mode &mode) |
void | setMotorPulse (const ::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1 > &p) |
void | setOutput (const ::std::uint16_t &bitTop, const ::std::uint16_t &bitMask, const ::std::uint16_t &ioData) |
void | shut () |
void | start () |
void | startProgram (const ::std::string &name) |
void | step () |
void | stop () |
void | stopProgram () |
Public Member Functions inherited from rl::hal::CartesianPositionActuator | |
CartesianPositionActuator (const ::std::size_t &dof) | |
virtual | ~CartesianPositionActuator () |
Public Member Functions inherited from rl::hal::AxisController | |
AxisController (const ::std::size_t &dof) | |
virtual | ~AxisController () |
::std::size_t | getDof () const |
Public Member Functions inherited from rl::hal::Device | |
Device () | |
virtual | ~Device () |
bool | isConnected () const |
bool | isRunning () const |
Public Member Functions inherited from rl::hal::CartesianPositionSensor | |
CartesianPositionSensor (const ::std::size_t &dof) | |
virtual | ~CartesianPositionSensor () |
Public Member Functions inherited from rl::hal::CyclicDevice | |
CyclicDevice (const ::std::chrono::nanoseconds &updateRate) | |
virtual | ~CyclicDevice () |
virtual ::std::chrono::nanoseconds | getUpdateRate () const |
Public Member Functions inherited from rl::hal::Gripper | |
Gripper () | |
virtual | ~Gripper () |
Public Member Functions inherited from rl::hal::JointPositionActuator | |
JointPositionActuator (const ::std::size_t &dof) | |
virtual | ~JointPositionActuator () |
Public Member Functions inherited from rl::hal::JointPositionSensor | |
JointPositionSensor (const ::std::size_t &dof) | |
virtual | ~JointPositionSensor () |
Static Protected Attributes | |
static const ::std::uint16_t | MXT_COMMAND_NULL = 0 |
Real-time external command invalid. More... | |
static const ::std::uint16_t | MXT_COMMAND_MOVE = 1 |
Real-time external command valid. More... | |
static const ::std::uint16_t | MXT_COMMAND_END = 255 |
Real-time external command end. More... | |
static const ::std::uint16_t | MXT_IO_NULL = 0 |
No data. More... | |
static const ::std::uint16_t | MXT_IO_OUT = 1 |
Output signal. More... | |
static const ::std::uint16_t | MXT_IO_IN = 2 |
Input signal. More... | |
static const ::std::uint16_t | MXT_TYPE_NULL = 0 |
No data. More... | |
static const ::std::uint16_t | MXT_TYPE_POSE = 1 |
XYZ data. More... | |
static const ::std::uint16_t | MXT_TYPE_JOINT = 2 |
Joint data. More... | |
static const ::std::uint16_t | MXT_TYPE_PULSE = 3 |
Motor pulse data. More... | |
static const ::std::uint16_t | MXT_TYPE_POSE_FILTER = 4 |
XYZ data (position after filter process). More... | |
static const ::std::uint16_t | MXT_TYPE_JOINT_FILTER = 5 |
Joint data (position after filter process). More... | |
static const ::std::uint16_t | MXT_TYPE_PULSE_FILTER = 6 |
Motor pulse data (position after filter process). More... | |
static const ::std::uint16_t | MXT_TYPE_POSE_FEEDBACK = 7 |
XYZ data (encoder feedback value). More... | |
static const ::std::uint16_t | MXT_TYPE_JOINT_FEEDBACK = 8 |
Joint data (encoder feedback value). More... | |
static const ::std::uint16_t | MXT_TYPE_PULSE_FEEDBACK = 9 |
Motor pulse data (encoder feedback value). More... | |
static const ::std::uint16_t | MXT_TYPE_CURRENT_COMMAND = 10 |
Current command [%]. More... | |
static const ::std::uint16_t | MXT_TYPE_CURRENT_FEEDBACK = 11 |
Current feedback [%]. More... | |
Private Attributes | |
::std::string | addressClient |
Client ip address or hostname. More... | |
::std::string | addressServer |
Server ip address or hostname. More... | |
::std::size_t | filter |
Internal filter value. More... | |
::std::uint16_t | haltIoData |
Command | in |
Mode | mode |
Command | out |
MitsubishiR3 | r3 |
::std::uint16_t | releaseIoData |
::std::uint16_t | shutIoData |
Socket | socket |
Additional Inherited Members | |
Protected Member Functions inherited from rl::hal::Device | |
void | setConnected (const bool &connected) |
void | setRunning (const bool &running) |
Mitsubishi Electric MELFA Ethernet interface (software version H7 or later).
rl::hal::MitsubishiH7::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 |
||
) |
|
virtual |
|
virtual |
Implements rl::hal::Device.
|
virtual |
Implements rl::hal::CartesianPositionSensor.
Eigen::Matrix<::std::int32_t,::Eigen::Dynamic, 1 > rl::hal::MitsubishiH7::getCurrentFeedback | ( | ) | const |
std::size_t rl::hal::MitsubishiH7::getFilter | ( | ) | const |
std::uint16_t rl::hal::MitsubishiH7::getIoData | ( | ) | const |
|
virtual |
Implements rl::hal::JointPositionSensor.
MitsubishiH7::Mode rl::hal::MitsubishiH7::getMode | ( | ) | const |
Eigen::Matrix<::std::int32_t,::Eigen::Dynamic, 1 > rl::hal::MitsubishiH7::getMotorPulse | ( | ) | const |
|
virtual |
Implements rl::hal::Gripper.
void rl::hal::MitsubishiH7::loadProgram | ( | const ::std::string & | name, |
const ::std::string & | program | ||
) |
|
virtual |
Implements rl::hal::Device.
|
virtual |
Implements rl::hal::Gripper.
|
virtual |
Implements rl::hal::CartesianPositionActuator.
void rl::hal::MitsubishiH7::setFilter | ( | const ::std::size_t & | filter | ) |
void rl::hal::MitsubishiH7::setInput | ( | const ::std::uint16_t & | bitTop | ) |
|
virtual |
Implements rl::hal::JointPositionActuator.
void rl::hal::MitsubishiH7::setMode | ( | const Mode & | mode | ) |
void rl::hal::MitsubishiH7::setMotorPulse | ( | const ::Eigen::Matrix< ::std::int32_t, ::Eigen::Dynamic, 1 > & | p | ) |
void rl::hal::MitsubishiH7::setOutput | ( | const ::std::uint16_t & | bitTop, |
const ::std::uint16_t & | bitMask, | ||
const ::std::uint16_t & | ioData | ||
) |
|
virtual |
Implements rl::hal::Gripper.
|
virtual |
Implements rl::hal::Device.
void rl::hal::MitsubishiH7::startProgram | ( | const ::std::string & | name | ) |
|
virtual |
Implements rl::hal::CyclicDevice.
|
virtual |
Implements rl::hal::Device.
void rl::hal::MitsubishiH7::stopProgram | ( | ) |
|
private |
Client ip address or hostname.
|
private |
Server ip address or hostname.
|
private |
Internal filter value.
|
private |
|
private |
|
private |
|
staticprotected |
Real-time external command end.
|
staticprotected |
Real-time external command valid.
|
staticprotected |
Real-time external command invalid.
|
staticprotected |
Input signal.
|
staticprotected |
No data.
|
staticprotected |
Output signal.
|
staticprotected |
Current command [%].
|
staticprotected |
Current feedback [%].
|
staticprotected |
Joint data.
|
staticprotected |
Joint data (encoder feedback value).
|
staticprotected |
Joint data (position after filter process).
|
staticprotected |
No data.
|
staticprotected |
XYZ data.
|
staticprotected |
XYZ data (encoder feedback value).
|
staticprotected |
XYZ data (position after filter process).
|
staticprotected |
Motor pulse data.
|
staticprotected |
Motor pulse data (encoder feedback value).
|
staticprotected |
Motor pulse data (position after filter process).
|
private |
|
private |
|
private |
|
private |
|
private |