update scipts files to python3

This commit is contained in:
weijian 2022-09-13 14:01:44 +08:00
parent c3ee0c08c7
commit 6fbf914cee
7 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from cgi import print_environ
import time
import rospy

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# license removed for brevity
import time
@ -28,7 +28,7 @@ def talker():
"joint6_to_joint5",
"joint6output_to_joint6",
]
joint_state_send.velocity = [0]
joint_state_send.velocity = [0.0]
joint_state_send.effort = []
# waiting util server `get_joint_angles` enable.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import Tkinter as tk
import tkinter as tk
from mycobot_communication.srv import GetCoords, SetCoords, GetAngles, SetAngles, GripperStatus
import rospy
import time

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""[summary]
@ -28,6 +28,7 @@ def callback(data):
mc.send_radians(data_list, 80)
print('data_list:', data_list)
# time.sleep(0.5)

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env pytho3
# -*- coding: utf-8 -*-
from __future__ import print_function
from mycobot_communication.srv import GetCoords, SetCoords, GetAngles, SetAngles, GripperStatus