Repository navigation
0.3.0
Version 0.3.0
Features
-
Added interface parameters
start_sdk_joint_limit,start_sdk_gripper_limit, the default parameter isFalse -
Added
utilspath, which contains tools for fps calculation and quaternion Euler angle calculation (external rotation sxyz)- Convert quaternion to Euler angle through
quat_convert_euler - Convert Euler angle to quaternion through
euler_convert_quat
- Convert quaternion to Euler angle through
-
Added functions
EnableFkCalandDisableFkCalto enable/disable sdk calculation fk.isCalFkis used to get whether to enable fk calculation, and then read it throughGetFKfunction. After enabling fk calculation, the reading thread will occupy a high CPU, please enable it as needed -
Added function
get_connect_statusto get the call status ofConnectPortfunction -
Reduced the frequency (20hz) of
CanMonitorthread enabled in the interface and the length of the queue for storing frame rate values (5) -
Added the friction coefficient parameter of the teach pendant in the gripper/teach pendant parameter feedback command (feedback and send)
-
Added
ModeCtrlandEmergencyStopfunctions to set the mode and perform emergency stop (replaceMotionCtrl_1andMotionCtrl_2) -
Will get CAN_ID=0x151 - Renamed the function of the arm mode control command from
GetArmCtrlCode151toGetArmModeCtrl -
Added enum in the robot status feedback. When you use the
piper_read_status.pyin the demo to print the current status of the robot, you can see an explicit formatted string representing the current status of the robot (the actual variable value is still int) -
Renamed the demo file to be standardized
-
Initialized
rx_messagetoMessage()type in theC_STD_CANclass -
Modified the location of obtaining the timestamp of the feedback information, from obtaining the current system time from the interface to obtaining the timestamp in the decoding function to increase the accuracy of the data timestamp
-
Added the
piper_param_managerfile, which contains the angle and gripper range limits and applies constraints to feedback and control messages- Use the parameters in the interface to turn on the sdk limit function:
piper = C_PiperInterface_V2("can0", start_sdk_joint_limit=True, start_sdk_gripper_limit=True) - If the feedback or control message exceeds the set limit, the value will be clamped within the boundary value
- Default limits already exist in the program. To customize the configuration limit range, use the
SetSDKJointLimitParamandSetSDKGripperRangeParamfunctions to set software constraints
See the
piper_set_sdk_param.pyfile in the demo for examples. - Use the parameters in the interface to turn on the sdk limit function:
-
Slightly reduced the joint limits to prevent exceeding the angle limit of the robot when converting radians to degrees using math.degrees. The new limits are as follows:
joint_name limit(rad) limit(angle) limit(rad/s) joint1 [-2.6179, 2.6179] [-150.0, 150.0] [0, 3.0] joint2 [0, 3.14] [0, 180.0] [0, 3.0] joint3 [-2.967, 0] [-170, 0] [0, 3.0] joint4 [-1.745, 1.745] [-100.0, 100.0] [0, 3.0] joint5 [-1.22, 1.22] [-70.0, 70.0] [0, 3.0] joint6 [-2.09439, 2.09439] [-120.0, 120.0] [0, 3.0] Note: The conversion factor from radians to degrees is 57.2957795 (180/3.1415926).
-
Added
piper_set_load.pydemo for setting load conditions (empty/half/full) -
Added
detect_arm.pyin the demo path to monitor various information of the robot arm in the terminal. Note that this file is not backward compatible
Bug Fixes
- Fixed the issue where the gripper feedback timestamp was of type
int.
Miscellaneous
- Modified the folder structure, put
fps.pyinto theutilspath, themonitorpath will be deleted after the next version - Restructured the documentation:
- Most of the documentation has been rewritten in English
- Simplified the documentation to focus only on interface usage