optimize the code

This commit is contained in:
wuchangji 2022-06-24 19:04:40 +08:00
parent ffb5a5eb68
commit fe02f05c8f

View file

@ -21,10 +21,10 @@ class Listener(object):
rospy.spin()
def callback(self, data):
"""`mycobot/angles_real` subscriber callback method.
"""`mypal260/angles_real` subscriber callback method.
Args:
data (MycobotAngles): callback argument.
data (MypalAngles): callback argument.
"""
# ini publisher object.
# 初始化发布者对象
@ -49,6 +49,7 @@ class Listener(object):
data.joint_1 * (math.pi / 180),
data.joint_2 * (math.pi / 180),
data.joint_3 * (math.pi / 180),
0,
data.joint_4 * (math.pi / 180),
# data.joint_5 * (math.pi / 180),
# data.joint_6 * (math.pi / 180),