|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_HAL_WEISSWSG50_H
28 #define RL_HAL_WEISSWSG50_H
99 const ::std::string& address =
"192.168.1.20",
100 const unsigned short int& port = 1000,
103 const unsigned int&
period = 10
120 void doGetForce(
const bool& doAutomaticUpdate,
const bool& doUpdateOnChange,
const unsigned int&
period = 0);
124 void doGetGraspingState(
const bool& doAutomaticUpdate,
const bool& doUpdateOnChange,
const unsigned int&
period = 0);
126 void doGetGraspingStatistics(
const bool& doReset,
int& numberGraspsTotal,
int& numberGraspsNoPart,
int& numberGraspsLostPart);
128 void doGetOpeningWidth(
const bool& doAutomaticUpdate,
const bool& doUpdateOnChange,
const unsigned int&
period = 0);
132 void doGetSpeed(
const bool& doAutomaticUpdate,
const bool& doUpdateOnChange,
const unsigned int&
period = 0);
134 void doGetSystemInformation(
bool& isWsg50,
int& hardwareRevision,
int& firmwareRevision,
int& serialNumber);
138 void doGetSystemState(
const bool& doAutomaticUpdate,
const bool& doUpdateOnChange,
const unsigned int&
period = 0);
166 void doPrePositionFingers(
const float& width,
const float&
speed,
const bool& doRelativeMovement =
false,
const bool& doStopOnBlock =
false);
240 ::std::uint16_t
crc(const ::std::uint8_t* buf, const ::std::size_t& len)
const;
244 ::std::size_t
recv(::std::uint8_t* buf);
246 ::std::size_t
recv(::std::uint8_t* buf, const ::std::size_t& len, const ::std::uint8_t& command);
248 void send(::std::uint8_t* buf, const ::std::size_t& len);
293 #endif // RL_HAL_WEISSWSG50_H
float getOpeningWidth() const
Definition: WeissWsg50.cpp:640
void doReleasePart(const float &width, const float &speed)
Definition: WeissWsg50.cpp:513
void doGetSoftLimits()
Definition: WeissWsg50.cpp:302
@ GRASPING_STATE_GRIPPING
Definition: WeissWsg50.h:59
void shut()
Definition: WeissWsg50.cpp:870
SystemState
Definition: WeissWsg50.h:69
float limitMinus
Definition: WeissWsg50.h:270
void close()
Definition: WeissWsg50.cpp:123
@ GRASPING_STATE_POSITIONING
Definition: WeissWsg50.h:64
@ SYSTEM_STATE_AXIS_BLOCKED_PLUS
Definition: WeissWsg50.h:85
float forceOverdrive
Definition: WeissWsg50.h:266
@ SYSTEM_STATE_OVERDRIVE_MODE
Definition: WeissWsg50.h:80
float limitPlus
Definition: WeissWsg50.h:272
void doGetForceLimit()
Definition: WeissWsg50.cpp:237
void doGetSystemInformation(bool &isWsg50, int &hardwareRevision, int &firmwareRevision, int &serialNumber)
Definition: WeissWsg50.cpp:337
static const ::std::size_t HEADER_SIZE
Definition: WeissWsg50.h:250
void doDisconnectAnnouncement()
Definition: WeissWsg50.cpp:178
void doGetAcceleration()
Definition: WeissWsg50.cpp:204
@ GRASPING_STATE_IDLE
Definition: WeissWsg50.h:58
@ SYSTEM_STATE_REFERENCED
Definition: WeissWsg50.h:88
void doFastStop()
Definition: WeissWsg50.cpp:191
@ GRASPING_STATE_NO_PART_FOUND
Definition: WeissWsg50.h:60
SystemState systemState
Definition: WeissWsg50.h:288
float getSpeed() const
Definition: WeissWsg50.cpp:646
::std::size_t recv(::std::uint8_t *buf)
Definition: WeissWsg50.cpp:676
void halt()
Definition: WeissWsg50.cpp:658
float accelerationMaximum
Definition: WeissWsg50.h:254
virtual ~WeissWsg50()
Definition: WeissWsg50.cpp:114
GraspingState getGraspingState() const
Definition: WeissWsg50.cpp:634
GraspingState graspingState
Definition: WeissWsg50.h:268
void doGetGraspingStatistics(const bool &doReset, int &numberGraspsTotal, int &numberGraspsNoPart, int &numberGraspsLostPart)
Definition: WeissWsg50.cpp:268
void doSetAcceleration(const float &acceleration)
Definition: WeissWsg50.cpp:533
void doGetSystemState(const bool &doAutomaticUpdate, const bool &doUpdateOnChange, const unsigned int &period=0)
Definition: WeissWsg50.cpp:383
::std::uint16_t crc(const ::std::uint8_t *buf, const ::std::size_t &len) const
Definition: WeissWsg50.cpp:132
void doSetSoftLimits(const float &limitMinus, const float &limitPlus)
Definition: WeissWsg50.cpp:569
void doSetForceLimit(const float &force)
Definition: WeissWsg50.cpp:552
void doPrePositionFingers(const float &width, const float &speed, const bool &doRelativeMovement=false, const bool &doStopOnBlock=false)
Definition: WeissWsg50.cpp:480
@ SYSTEM_STATE_CURRENT_FAULT
Definition: WeissWsg50.h:74
float stroke
Definition: WeissWsg50.h:286
float getAcceleration() const
Definition: WeissWsg50.cpp:616
SystemState getSystemState() const
Definition: WeissWsg50.cpp:652
Definition: CyclicDevice.h:39
float doGetTemperature()
Definition: WeissWsg50.cpp:406
void stop()
Definition: WeissWsg50.cpp:917
@ SYSTEM_STATE_FAST_STOP
Definition: WeissWsg50.h:78
unsigned int period
Definition: WeissWsg50.h:276
@ GRASPING_STATE_HOLDING
Definition: WeissWsg50.h:62
float accelerationMinimum
Definition: WeissWsg50.h:256
@ SYSTEM_STATE_SOFT_LIMIT_MINUS
Definition: WeissWsg50.h:84
@ SYSTEM_STATE_FINGER_FAULT
Definition: WeissWsg50.h:73
@ SYSTEM_STATE_SCRIPT_FAILURE
Definition: WeissWsg50.h:70
float forceMinimum
Definition: WeissWsg50.h:262
WeissWsg50(const ::std::string &address="192.168.1.20", const unsigned short int &port=1000, const float &acceleration=3.0f, const float &forceLimit=40.0f, const unsigned int &period=10)
Definition: WeissWsg50.cpp:82
@ SYSTEM_STATE_TEMPERATURE_FAULT
Definition: WeissWsg50.h:76
void step()
Definition: WeissWsg50.cpp:902
Weiss Robotics Universal Gripper WSG 50.
Definition: WeissWsg50.h:54
float forceNominal
Definition: WeissWsg50.h:264
void doGetOpeningWidth(const bool &doAutomaticUpdate, const bool &doUpdateOnChange, const unsigned int &period=0)
Definition: WeissWsg50.cpp:286
float getForce() const
Definition: WeissWsg50.cpp:622
@ GRASPING_STATE_RELEASING
Definition: WeissWsg50.h:63
void doGetSpeed(const bool &doAutomaticUpdate, const bool &doUpdateOnChange, const unsigned int &period=0)
Definition: WeissWsg50.cpp:321
void open()
Definition: WeissWsg50.cpp:666
void doGetForce(const bool &doAutomaticUpdate, const bool &doUpdateOnChange, const unsigned int &period=0)
Definition: WeissWsg50.cpp:221
void release()
Definition: WeissWsg50.cpp:826
@ SYSTEM_STATE_AXIS_BLOCKED_MINUS
Definition: WeissWsg50.h:86
@ SYSTEM_STATE_TEMPERATURE_WARNING
Definition: WeissWsg50.h:77
@ SYSTEM_STATE_MOVING
Definition: WeissWsg50.h:87
void doAcknowledgeFaults()
Definition: WeissWsg50.cpp:146
void doTareForceSensor()
Definition: WeissWsg50.cpp:603
float speedMinimum
Definition: WeissWsg50.h:284
void doClearSoftLimits()
Definition: WeissWsg50.cpp:162
float speedMaximum
Definition: WeissWsg50.h:282
@ GRASPING_STATE_ERROR
Definition: WeissWsg50.h:65
@ SYSTEM_STATE_FORCE_CONTROL_MODE
Definition: WeissWsg50.h:79
float openingWidth
Definition: WeissWsg50.h:274
float acceleration
Definition: WeissWsg50.h:252
float forceLimit
Definition: WeissWsg50.h:260
void doOverdriveMode(const bool &doOverdriveMode)
Definition: WeissWsg50.cpp:461
void doGetGraspingState(const bool &doAutomaticUpdate, const bool &doUpdateOnChange, const unsigned int &period=0)
Definition: WeissWsg50.cpp:252
void start()
Definition: WeissWsg50.cpp:878
@ SYSTEM_STATE_SCRIPT_RUNNING
Definition: WeissWsg50.h:71
float force
Definition: WeissWsg50.h:258
@ SYSTEM_STATE_TARGET_POSITION_REACHED
Definition: WeissWsg50.h:81
void doStop()
Definition: WeissWsg50.cpp:590
GraspingState
Definition: WeissWsg50.h:57
float speed
Definition: WeissWsg50.h:280
@ SYSTEM_STATE_AXIS_STOPPED
Definition: WeissWsg50.h:82
Socket socket
Definition: WeissWsg50.h:278
void doGetSystemLimits()
Definition: WeissWsg50.cpp:355
void doHomingMotion(const unsigned int &direction=0)
Perform necessary homing motion for calibration.
Definition: WeissWsg50.cpp:445
float getForceLimit() const
Definition: WeissWsg50.cpp:628
@ SYSTEM_STATE_POWER_FAULT
Definition: WeissWsg50.h:75
void send(::std::uint8_t *buf, const ::std::size_t &len)
Definition: WeissWsg50.cpp:834
@ SYSTEM_STATE_COMMAND_FAILURE
Definition: WeissWsg50.h:72
void doGraspPart(const float &width, const float &speed)
Definition: WeissWsg50.cpp:423
@ GRASPING_STATE_PART_LOST
Definition: WeissWsg50.h:61
Robotics Library.
Definition: AnalogInput.cpp:30
@ SYSTEM_STATE_SOFT_LIMIT_PLUS
Definition: WeissWsg50.h:83