mirror of
https://github.com/Ascend/ascend_community_projects.git
synced 2025-09-26 20:01:17 +08:00
modify for code check
This commit is contained in:
@@ -50,12 +50,12 @@ if __name__ == '__main__':
|
||||
GROUP_NAME = "panda_arm"
|
||||
move_group = moveit_commander.MoveGroupCommander(GROUP_NAME)
|
||||
|
||||
uart_path = '/dev/ttyAMA0'
|
||||
if os.path.exists(uart_path) == False:
|
||||
UART_PATH = '/dev/ttyAMA0'
|
||||
if os.path.exists(UART_PATH) is False:
|
||||
print("dev path is not exist!")
|
||||
exit()
|
||||
|
||||
ser = serial.Serial(uart_path, 3000000, 8, 'N', 1)
|
||||
ser = serial.Serial(UART_PATH, 3000000, 8, 'N', 1)
|
||||
flag = ser.is_open
|
||||
|
||||
if flag:
|
||||
|
Reference in New Issue
Block a user