mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
Add English annotation
This commit is contained in:
parent
3a736bda49
commit
4dcf049350
1 changed files with 6 additions and 3 deletions
|
|
@ -30,14 +30,17 @@ class MoveItPlanningDemo:
|
|||
# Get the name of the terminal link. 获取终端link的名称
|
||||
self.end_effector_link = self.arm.get_end_effector_link()
|
||||
|
||||
# Set the reference coordinate system used for the target position. 设置目标位置所使用的参考坐标系
|
||||
# Set the reference coordinate system used for the target position.
|
||||
# 设置目标位置所使用的参考坐标系
|
||||
self.reference_frame = "joint1"
|
||||
self.arm.set_pose_reference_frame(self.reference_frame)
|
||||
|
||||
# Allow replanning when motion planning fails. 当运动规划失败后,允许重新规划
|
||||
# Allow replanning when motion planning fails.
|
||||
# 当运动规划失败后,允许重新规划
|
||||
self.arm.allow_replanning(True)
|
||||
|
||||
# Set the allowable error of position (unit: meter) and attitude (unit: radian). 设置位置(单位:米)和姿态(单位:弧度)的允许误差
|
||||
# Set the allowable error of position (unit: meter) and attitude (unit: radian).
|
||||
# 设置位置(单位:米)和姿态(单位:弧度)的允许误差
|
||||
self.arm.set_goal_position_tolerance(0.01)
|
||||
self.arm.set_goal_orientation_tolerance(0.05)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue