mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
update mercury ros
This commit is contained in:
parent
57b32ed942
commit
03abc597d5
1 changed files with 1 additions and 4 deletions
|
|
@ -20,10 +20,7 @@ mc = None
|
||||||
|
|
||||||
|
|
||||||
def callback(data):
|
def callback(data):
|
||||||
# rospy.loginfo(rospy.get_caller_id() + "%s", data.position)
|
|
||||||
# print(data.position)
|
|
||||||
rounded_data_tuple = tuple(round(value, 2) for value in data.position)
|
|
||||||
rospy.loginfo(rospy.get_caller_id() + "%s", rounded_data_tuple)
|
|
||||||
data_list = []
|
data_list = []
|
||||||
for index, value in enumerate(data.position):
|
for index, value in enumerate(data.position):
|
||||||
radians_to_angles = round(math.degrees(value), 2)
|
radians_to_angles = round(math.degrees(value), 2)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue