Skip to content

0.3.0

Choose a tag to compare

@RosenYin RosenYin released this 25 Jun 10:42
· 134 commits to master since this release

Version 0.3.0

Features

  • Added interface parameters start_sdk_joint_limit, start_sdk_gripper_limit, the default parameter is False

  • Added utils path, 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
  • Added functions EnableFkCal and DisableFkCal to enable/disable sdk calculation fk. isCalFk is used to get whether to enable fk calculation, and then read it through GetFK function. After enabling fk calculation, the reading thread will occupy a high CPU, please enable it as needed

  • Added function get_connect_status to get the call status of ConnectPort function

  • Reduced the frequency (20hz) of CanMonitor thread 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 ModeCtrl and EmergencyStop functions to set the mode and perform emergency stop (replace MotionCtrl_1 and MotionCtrl_2)

  • Will get CAN_ID=0x151 - Renamed the function of the arm mode control command from GetArmCtrlCode151 to GetArmModeCtrl

  • Added enum in the robot status feedback. When you use the piper_read_status.py in 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_message to Message() type in the C_STD_CAN class

  • 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_manager file, 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 SetSDKJointLimitParam and SetSDKGripperRangeParam functions to set software constraints

    See the piper_set_sdk_param.py file in the demo for examples.

  • 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.py demo for setting load conditions (empty/half/full)

  • Added detect_arm.py in 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.py into the utils path, the monitor path 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